/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/poppins-v24-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/assets/fonts/poppins-v24-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/poppins-v24-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/assets/fonts/poppins-v24-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('/assets/fonts/poppins-v24-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/assets/fonts/poppins-v24-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
    --bg-dark: #12142B; /* Dark background from image */
    --card-bg: #1E1B4B;
    --text-main: #FFFFFF;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --btn-gradient: linear-gradient(90deg, #FF7E5F, #66A6FF); /* Pink to Blue */
    --btn-border: #66A6FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #0f1123;
    border-bottom: 1px solid #2a2d52;
}

.logo h1 {
    font-size: 24px;
    background: linear-gradient(to right, #00D2FF, #3A7BD5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold-light);
}

/* Buttons */
.btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: white;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--btn-border);
    margin-right: 10px;
}

.btn-register {
    background: var(--btn-gradient);
}

/* Footer */
footer {
    background-color: #0a0b17;
    padding: 40px 5% 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 13px;
}

.warning-18 {
    border: 1px solid #ff4444;
    color: #ff4444;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
}

.logo img {
    height: 45px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
}

/* Desktop defaults */
.hamburger {
    display: none;
    font-size: 28px;
    color: var(--text-main);
    cursor: pointer;
}

.nav-menu {
    align-items: center;
    gap: 30px;
}

/* Mobile responsive */
/* --- DESKTOP HEADER DEFAULTS --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #0f1123;
    border-bottom: 1px solid #2a2d52;
    position: relative; /* Needed for dropdown */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.header-action-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none; /* Hidden on Desktop */
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* --- MOBILE HEADER & DROPDOWN --- */
@media (max-width: 768px) {
    header {
        padding: 12px 3%; /* Less padding to save space */
    }

    /* Shrink Logo slightly to fit everything */
    .logo h1 {
        font-size: 18px; 
    }

    /* Shrink Buttons slightly so they fit next to the hamburger */
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 12px; 
        margin: 0;
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    /* The Dropdown Menu (Contains ONLY pages now) */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f1123;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 250px; /* Expand menu */
        border-bottom: 2px solid var(--btn-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }
}

/* --- NEW INDEX PAGE STYLES --- */

/* General Sections */
section { padding: 60px 5%; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; color: var(--gold-light); }

/* Hero Section */
.hero { text-align: center; padding: 100px 5%; background: linear-gradient(180deg, #12142B 0%, #1E1B4B 100%); }
.hero h2 { font-size: 48px; margin-bottom: 20px; background: var(--btn-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; margin-bottom: 30px; color: #d1d5db; }
.hero .cta-buttons { display: flex; justify-content: center; gap: 20px; }
.hero .btn { padding: 12px 30px; font-size: 18px; }

/* --- STRICT RESPONSIVE GRIDS --- */
.grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}

/* Desktop: 3 Columns for Games/Features, 4 Columns for Stats */
@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet: 2 Columns */
@media (min-width: 768px) and (max-width: 991px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 Column */
@media (max-width: 767px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- ICONS & IMAGE PLACEHOLDERS --- */
.game-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #2a2d52;
}

.icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gold-light);
    font-size: 20px;
}

.feature-box .icon-title, .security-box .icon-title {
    justify-content: flex-start;
}

.security-box .icon-title {
    color: #00C851;
}

.icon-title i {
    font-size: 22px;
}

/* Game Cards */
.game-card { background-color: var(--card-bg); border-radius: 15px; padding: 20px; text-align: center; border: 1px solid #2a2d52; transition: transform 0.3s; }
.game-card:hover { transform: translateY(-10px); border-color: var(--gold-light); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.game-card h3 { color: var(--gold-light); margin-bottom: 10px; }
.game-card .play-btn { display: inline-block; margin-top: 15px; background: var(--btn-gradient); padding: 8px 20px; border-radius: 20px; color: #fff; text-decoration: none; font-weight: bold; }

/* Stats / Counters */
.stats-section { background-color: #0f1123; border-top: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); }
.stat-box { text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; color: var(--gold-light); }
.stat-text { font-size: 16px; color: #a0a0a0; text-transform: uppercase; letter-spacing: 1px; }

/* Features & Security */
.feature-box, .security-box { background-color: #1a1c35; padding: 25px; border-radius: 10px; border-left: 4px solid var(--btn-border); }
.security-box { border-left: 4px solid #00C851; /* Green for security */ }
.security-box h4 { color: #00C851; margin-bottom: 10px; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
details { background-color: var(--card-bg); margin-bottom: 15px; border-radius: 8px; border: 1px solid #2a2d52; overflow: hidden; }
summary { padding: 20px; font-size: 18px; font-weight: 600; cursor: pointer; outline: none; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--gold-light); }
details[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px; color: #d1d5db; border-top: 1px solid #2a2d52; padding-top: 15px; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero h2 { font-size: 32px; }
    .hero .cta-buttons { flex-direction: column; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- AUTHENTICATION FORMS --- */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 50px 5%;
}

.auth-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #2a2d52;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-container h2 {
    text-align: center;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #12142B;
    border: 1px solid #2a2d52;
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--btn-border);
    box-shadow: 0 0 8px rgba(102, 166, 255, 0.3);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--btn-gradient);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--btn-border);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.alert-error { background-color: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid #ff4444; }
.alert-success { background-color: rgba(0, 200, 81, 0.1); color: #00C851; border: 1px solid #00C851; }

/* --- STATIC TEXT PAGES --- */
.page-header {
    background: linear-gradient(180deg, #12142B 0%, #1E1B4B 100%);
    padding: 80px 5% 40px;
    text-align: center;
    border-bottom: 1px solid #2a2d52;
}
.page-header h1 {
    color: var(--gold-light);
    font-size: 40px;
    margin-bottom: 15px;
}
.page-content {
    padding: 50px 5%;
    max-width: 900px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.8;
}
.page-content h2 {
    color: #fff;
    margin: 20px 0 20px;
    font-size: 28px;
    border-bottom: 2px solid var(--btn-border);
    padding-bottom: 10px;
    display: inline-block;
}
.page-content h3 {
    color: var(--gold-light);
    margin: 25px 0 15px;
    font-size: 22px;
}
.page-content p {
    margin-bottom: 20px;
}
.page-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}
.page-content li {
    margin-bottom: 10px;
}
.page-content a {
    color: var(--btn-border);
    text-decoration: none;
}
.page-content a:hover {
    text-decoration: underline;
}

/* --- BLOG & ARTICLE STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2d52;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-light);
}

.blog-date {
    color: var(--btn-border);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.blog-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 20px;
}

.read-more {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Single Article Styling */
.article-header {
    text-align: center;
    padding: 60px 5% 40px;
    background: linear-gradient(180deg, #12142B 0%, #1E1B4B 100%);
    border-bottom: 1px solid #2a2d52;
}

.article-header h1 {
    color: var(--gold-light);
    font-size: 36px;
    max-width: 800px;
    margin: 0 auto 15px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 5%;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.8;
}

.article-body h2 {
    color: #fff;
    margin: 40px 0 20px;
    font-size: 26px;
    border-bottom: 1px solid #2a2d52;
    padding-bottom: 10px;
}

.article-body h3 {
    color: var(--gold-light);
    margin: 25px 0 15px;
}

.article-body ul, .article-body ol {
    margin-left: 20px;
    margin-bottom: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.step-box {
    background-color: #1a1c35;
    padding: 20px;
    border-left: 4px solid var(--btn-border);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- TELEGRAM CTA SECTION --- */
.telegram-cta {
    background-color: #0f1123; /* Same dark bg as stats */
    padding: 60px 5%;
    text-align: center;
    border-top: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
}

.telegram-cta .icon {
    font-size: 48px;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.telegram-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #d1d5db;
    font-size: 18px;
}

.telegram-cta .btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
}

/* --- 1. Add a smooth transition to all links & buttons --- */
a, .btn, .game-card, .blog-card, details summary {
    transition: all 0.3s ease;
}

/* --- 2. Navigation & Footer Links Hover Effect --- */
.nav-links a:hover, .footer-links a:hover {
    color: var(--gold-light);
    transform: translateY(-2px); /* Subtle lift effect */
}

/* --- 3. General Button Hover Effects --- */
.btn:hover {
    transform: translateY(-3px); /* A slightly more noticeable lift */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Specific effect for the main gradient button */
.btn-register:hover {
    filter: brightness(1.1); /* Makes the gradient pop */
}

/* Specific effect for the outline login button */
.btn-login:hover {
    background-color: rgba(102, 166, 255, 0.1); /* Faint blue glow */
    border-color: #fff;
    color: #fff;
}

/* --- 4. Game & Blog Card Hover Effects --- */
/* These already had a transform, so we just ensure it's smooth. */
.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-light);
}

/* --- 5. Text Links (in articles, etc.) Hover Effect --- */
.page-content a:hover, .article-body a:hover:not(.btn) {
    color: var(--gold-light);
    text-decoration: none;
}

/* --- 6. FAQ Accordion Hover Effect --- */
details summary:hover {
    background-color: rgba(102, 166, 255, 0.05);
}

i.fas {
    padding-right:10px;
}