/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --bg-primary: #1a0f0a;
    --bg-secondary: #2a1810;
    --bg-tertiary: #3a2418;
    --accent-gold: #ffb347;
    --accent-orange: #ff9500;
    --accent-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #442b1f;
    --card-bg: #241610;
    --hover-bg: #3a2418;
    --success: #26de81;
    --shadow: rgba(0, 0, 0, 0.5);
    /* aliases for template conventions */
    --primary: var(--accent-gold);
    --bg-card: var(--card-bg);
    --bg-dark: var(--bg-primary);
    --text-light: var(--text-primary);
    --border: var(--border-color);
    --trans: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; transition: all 0.3s ease; }

/* ===================================
   Logo
   =================================== */
.header__logo { display: flex; align-items: center; gap: 8px; }
.header__logo-img { height: 36px; width: auto; object-fit: contain; }

/* ===================================
   Header
   =================================== */
.header {
    background: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 28px; }

.logo-text {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 179, 71, 0.5);
    letter-spacing: 2px;
}

.main-nav { flex: 1; }

.nav-list { display: flex; list-style: none; gap: 4px; align-items: center; }

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover { color: var(--accent-gold); background: var(--hover-bg); transform: translateY(-2px); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.search-box { position: relative; display: inline-block; text-decoration: none; }

.search-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 13px;
    width: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-input:focus { outline: none; border-color: var(--accent-gold); width: 250px; box-shadow: 0 0 15px rgba(255, 179, 71, 0.3); }
.search-input::placeholder { color: var(--text-muted); }

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    text-align: center;
}

.btn-login { background: transparent; border: 2px solid var(--accent-gold); color: var(--accent-gold); }
.btn-login:hover { background: var(--accent-gold); color: var(--bg-primary); box-shadow: 0 5px 20px rgba(255, 179, 71, 0.4); transform: translateY(-2px); }

.btn-signup {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 25px rgba(255, 149, 0, 0.5);
    animation: pulse 2s infinite;
}
.btn-signup:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 35px rgba(255, 149, 0, 0.7); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(255, 149, 0, 0.5); }
    50% { box-shadow: 0 5px 35px rgba(255, 179, 71, 0.8); }
}

.btn-primary { background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%); color: var(--bg-primary); font-weight: 700; box-shadow: 0 5px 20px rgba(255, 149, 0, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 149, 0, 0.6); }

.btn-block { width: 100%; }

.btn-load-more { background: var(--bg-tertiary); color: var(--text-primary); padding: 14px 50px; border: 2px solid var(--border-color); }
.btn-load-more:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu-toggle { display: none; background: var(--bg-tertiary); color: var(--accent-gold); font-size: 24px; padding: 10px 15px; border-radius: 8px; }

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: var(--bg-primary);
    box-shadow: -5px 0 20px var(--shadow);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active { right: 0; }

.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 2px solid var(--border-color); }
.mobile-menu-close { background: transparent; color: var(--text-primary); font-size: 28px; padding: 5px 10px; }

.mobile-nav { display: flex; flex-direction: column; padding: 20px; }
.mobile-nav-link { padding: 15px; color: var(--text-secondary); font-size: 16px; border-radius: 8px; margin-bottom: 10px; transition: all 0.3s ease; }
.mobile-nav-link:hover { background: var(--hover-bg); color: var(--accent-gold); }

.mobile-menu-actions { padding: 20px; display: flex; flex-direction: column; gap: 15px; }

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    position: fixed;
    left: 0; top: 80px;
    width: 220px; height: calc(100vh - 80px);
    background: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--border-color);
    overflow-y: auto;
    z-index: 900;
    padding: 20px 0;
}

.sidebar-content { display: flex; flex-direction: column; gap: 5px; }

.sidebar-item { display: flex; align-items: center; padding: 15px 20px; color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: all 0.3s ease; }
.sidebar-item:hover,
.sidebar-item.active { background: var(--hover-bg); color: var(--accent-gold); border-left: 4px solid var(--accent-gold); }

/* ===================================
   Main Content
   =================================== */
.main-content { margin-left: 220px; margin-top: 20px; padding-bottom: 50px; }

.main-title {
    font-size: 42px; font-weight: 800; margin: 0 0 40px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.3; text-align: center;
}

/* ===================================
   Promo Banners
   =================================== */
.promo-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

.promo-banner { position: relative; height: 230px; border-radius: 20px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; display: block; }
.promo-banner:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(255, 179, 71, 0.3); }

.promo-banner-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: transform 0.3s ease; }
.promo-banner:hover .promo-banner-bg { transform: scale(1.05); }

.promo-banner-content { position: relative; z-index: 2; padding: 30px; height: 100%; display: flex; flex-direction: column; justify-content: center; }

.promo-badge { background: rgba(26, 15, 10, 0.8); color: var(--text-primary); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 15px; width: fit-content; }

.promo-title { font-size: 36px; font-weight: 800; color: var(--text-primary); margin-bottom: 5px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); line-height: 1.1; }

.promo-btn { display: inline-block; background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%); color: var(--bg-primary); padding: 12px 32px; border-radius: 25px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; width: fit-content; text-transform: capitalize; box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4); }
.promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 149, 0, 0.6); }

/* ===================================
   Section Titles
   =================================== */
.section-title { font-size: 32px; font-weight: 700; color: var(--accent-gold); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }

.section-filters { display: flex; gap: 10px; }

.filter-btn { display: inline-block; background: var(--bg-tertiary); color: var(--text-secondary); padding: 10px 20px; border-radius: 20px; border: 1px solid var(--border-color); font-size: 14px; font-weight: 500; transition: all 0.3s ease; text-decoration: none; }
.filter-btn:hover,
.filter-btn.active { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); transform: translateY(-2px); }

/* ===================================
   Games Grid
   =================================== */
.games-section { margin-bottom: 50px; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }

.game-card { background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 15px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; position: relative; display: block; }
.game-card:hover { transform: translateY(-10px); border-color: var(--accent-gold); box-shadow: 0 10px 30px rgba(255, 179, 71, 0.3); }

.game-image { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; display: block; }
.game-card:hover .game-image { transform: scale(1.1); }

.game-info { padding: 15px; }
.game-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-provider { font-size: 12px; color: var(--text-muted); }

.game-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.game-card:hover .game-overlay { opacity: 1; }

.play-button { background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%); color: var(--bg-primary); padding: 12px 30px; border-radius: 25px; font-weight: 700; font-size: 16px; }

.load-more { text-align: center; margin-top: 40px; }

/* ===================================
   Providers
   =================================== */
.providers-section { margin-bottom: 50px; }

.providers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 30px; }

.provider-card { background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 15px; padding: 25px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; }
.provider-card:hover { border-color: var(--accent-gold); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(255, 179, 71, 0.2); }
.provider-card img { max-width: 100%; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.provider-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }

/* ===================================
   SEO Content Section
   =================================== */
.seo-section { padding: 20px 0 60px; }

.seo-content {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
}

.seo-content h1 { font-size: 22px; font-weight: 800; color: var(--accent-gold); margin: 0 0 18px; }
.seo-content h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 32px 0 12px; }
.seo-content h3 {
    font-size: 1rem; font-weight: 700; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 0; cursor: pointer;
    padding: 14px 0; border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}
.seo-content h3.faq-open { color: var(--accent-gold); }
.seo-content h3 + p { display: none; padding: 12px 0 4px; color: var(--text-secondary); line-height: 1.75; }
.seo-content h3.faq-open + p { display: block; }
.seo-content p { margin: 0 0 14px; }
.seo-content ul, .seo-content ol { margin: 12px 0 14px 24px; }
.seo-content li { margin-bottom: 8px; }
.seo-content a { color: var(--accent-gold); }
.seo-content a:hover { text-decoration: underline; }

.seo-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; background: var(--card-bg) !important; border: 1px solid var(--border-color); }
.seo-content th { background: rgba(255, 255, 255, 0.08) !important; color: var(--text-primary); padding: 10px 14px; text-align: left; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.seo-content td { background: var(--card-bg) !important; padding: 10px 14px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); vertical-align: top; }
.seo-content tr:nth-child(even) td { background: rgba(255, 255, 255, 0.04) !important; }

/* ===================================
   Footer
   =================================== */
.footer { background: var(--bg-primary); border-top: 2px solid var(--border-color); padding: 50px 0 30px; margin-left: 220px; }

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }

.footer-title { font-size: 18px; font-weight: 700; color: var(--accent-gold); margin-bottom: 20px; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }

.payment-methods { display: flex; flex-wrap: wrap; gap: 15px; }
.payment-icon { width: 50px; height: auto; filter: brightness(0) invert(1); opacity: 0.7; transition: all 0.3s ease; }
.payment-icon:hover { opacity: 1; transform: scale(1.1); }

.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; }

/* ===================================
   Sidebar toggle (mobile floating btn)
   =================================== */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px; left: 20px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    color: var(--bg-primary);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 149, 0, 0.5);
    transition: all 0.3s ease;
}
.sidebar-toggle-btn:hover { transform: scale(1.1); }

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.active { transform: translateX(0); }
    .main-content, .footer { margin-left: 0; }
    .promo-banners { grid-template-columns: 1fr; gap: 15px; }
    .promo-banner { height: 200px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .search-box { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .promo-banners { grid-template-columns: 1fr; }
    .promo-banner { height: 180px; }
    .promo-banner-content { padding: 20px; }
    .promo-title { font-size: 28px; }
    .promo-badge { font-size: 11px; padding: 6px 12px; }
    .section-title { font-size: 24px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .game-image { height: 160px; }
    .providers-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; }
    .main-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .header-content { padding: 10px 0; }
    .logo { font-size: 22px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .promo-banner { height: 160px; }
    .promo-banner-content { padding: 15px; }
    .promo-title { font-size: 24px; }
    .promo-badge { font-size: 10px; padding: 5px 10px; }
    .promo-btn { padding: 10px 24px; font-size: 14px; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
}
