/* ========================================
   INGAGE GAMES - CSS VARIABLES
   ======================================== */
:root {
    /* Modern Gaming Colors */
    --primary-color: #d4a574;
    --secondary-color: #c89f7b;
    --accent-color: #e8d5b7;
    --success-color: #8db596;
    --danger-color: #c77e7e;
    
    /* Background Colors */
    --background-main: #f5f0e8;
    --background-dark: #3d3428;
    --background-secondary: #4a3f32;
    --background-light: #fefbf6;
    
    /* Text Colors */
    --text-dark: #2c2416;
    --text-light: #fefbf6;
    --text-muted: #6b5d4f;
    
    /* Border & Shadow */
    --border-color: #d4c4b0;
    --shadow-sm: 0 2px 8px rgba(61, 52, 40, 0.1);
    --shadow-md: 0 4px 16px rgba(61, 52, 40, 0.15);
    --shadow-lg: 0 8px 24px rgba(61, 52, 40, 0.2);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--background-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border-bottom: 3px solid var(--primary-color);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Georgia', serif;
}

.free-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.desktop-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Arial', sans-serif;
}

.nav-link:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--primary-color);
    color: var(--text-dark);
}

.cta-link {
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    z-index: 999;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    padding: 5px 10px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-menu a {
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: url('../images/hero_desktop_bg.png') center top / cover;
    background-attachment: scroll;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 52, 40, 0.7) 0%, rgba(74, 63, 50, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
    font-family: 'Georgia', serif;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
    font-family: 'Arial', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-play {
    background: var(--success-color);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-play:hover {
    background: #7aa686;
    transform: translateY(-2px);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 80px 20px;
    background: var(--background-light);
}

.features-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games-section {
    padding: 80px 20px;
    background: url('../images/section_bg.png') center / cover;
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.95);
    z-index: 1;
}

.games-section > * {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-weight: bold;
}

.games-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-desc {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.game-rating {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.game-free-tag {
    background: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 80px 20px;
    background: var(--background-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.faq-question:hover {
    background: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 80px 20px;
    background: var(--background-main);
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   LEADERBOARD SECTION
   ======================================== */
.leaderboard-section {
    padding: 80px 20px;
    background: url('../images/card_bg.png') center / cover;
    position: relative;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.9);
    z-index: 1;
}

.leaderboard-section > * {
    position: relative;
    z-index: 2;
}

.leaderboard-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.leaderboard-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-color);
    position: relative;
}

.rank-badge {
    font-size: 3rem;
    margin-bottom: 15px;
}

.rank-badge.gold {
    color: #ffd700;
}

.rank-badge.silver {
    color: #c0c0c0;
}

.rank-badge.bronze {
    color: #cd7f32;
}

.leaderboard-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.points {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.achievement {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   DISCLAIMER SECTION
   ======================================== */
.disclaimer-section {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d89393 100%);
    padding: 60px 20px;
    border-top: 4px solid var(--text-dark);
    border-bottom: 4px solid var(--text-dark);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.disclaimer-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.disclaimer-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.disclaimer-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.disclaimer-badges .badge {
    background: white;
    color: var(--danger-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    color: var(--text-light);
    padding: 60px 20px 30px;
    border-top: 3px solid var(--primary-color);
}

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

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-free {
    background: var(--success-color);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.compliance-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.compliance-logo {
    height: 40px;
    width: auto;
    background: var(--text-light);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.compliance-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.age-restriction {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 15px;
}

.helpline {
    margin-top: 10px;
}

.helpline a {
    color: var(--primary-color);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
}

.footer-bottom p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    line-height: 1.8;
}

.footer-legal strong {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   POPUPS
   ======================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-color);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.popup-content p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.popup-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

.cookie-banner.active {
    display: block;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-content .btn {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        min-height: 500px;
        padding: 130px 20px 60px;
        background: url('../images/hero_mobile_bg.png') center top / cover;
    }
    
    .features-grid,
    .games-grid,
    .testimonials-grid,
    .leaderboard-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card,
    .leaderboard-card {
        max-width: 100%;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .disclaimer-content h3 {
        font-size: 1.3rem;
    }
    
    .disclaimer-badges {
        flex-direction: column;
    }
    
    .disclaimer-badges .badge {
        width: 100%;
    }
}

/* ========================================
   LEGAL INFO STYLES
   ======================================== */
.legal-info {
    margin: 20px 0;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.legal-info p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.legal-info strong {
    color: var(--primary-color);
    font-weight: 600;
}
