/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary-green: #008955;       /* Deep Green */
    --light-green: #00b06b;         /* Bright Green */
    --gradient-green: linear-gradient(135deg, #006842 0%, #02b66e 100%);
    
    /* Accent Colors (Coins/Gold) */
    --accent-gold: #f1c40f;
    --accent-orange: #f39c12;
    --gradient-gold: linear-gradient(to bottom, #f1c40f, #d35400);
    
    /* Text & Backgrounds */
    --bg-color: #f0f4f1;           /* Very light green tint */
    --text-dark: #2d3436;
    --text-grey: #636e72;
    --white: #ffffff;
    
    /* Dimensions */
    --max-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. LAYOUT & CONTAINER
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   3. HEADER SECTION
   ========================================= */
.main-header {
    background: var(--white);
    height: var(--header-height);
    box-shadow: 0 4px 12px rgba(0, 137, 85, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

/* Telegram Button */
.telegram-btn {
    background: #229ED9;
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(34, 158, 217, 0.3);
}

.telegram-btn:hover {
    background: #1c88bd;
    transform: translateY(-2px);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   4. HERO & MARQUEE
   ========================================= */
.hero-banner {
    margin-top: 20px;
    text-align: center;
}

.responsive-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--white);
}

.marquee-container {
    background: var(--gradient-green);
    color: var(--white);
    padding: 10px 0;
    font-weight: 600;
    font-size: 15px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 137, 85, 0.4);
}

/* =========================================
   5. MAIN CONTENT & GRID
   ========================================= */
.section-title {
    text-align: center;
    margin: 30px 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    width: 100%;
}

.section-title i {
    color: var(--accent-orange);
    margin-right: 8px;
}

/* Grid System */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 50px;
}

/* =========================================
   6. APP CARD DESIGN (Matches JS Output)
   ========================================= */
.app-card {
    background: var(--white);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    border: 1px solid #e1e8e5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
    height: 100%; /* Ensures equal height in grid */
    justify-content: space-between; /* Pushes button to bottom */
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 137, 85, 0.15);
    border-color: var(--light-green);
}

/* Icon */
.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    margin-bottom: 10px;
}

/* Details Text */
.app-details {
    width: 100%;
}

.app-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-details p {
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--text-grey);
    font-weight: 500;
}

/* Specific classes from your JS */
.app-details .bonus {
    color: var(--primary-green);
}

.app-details .bonus span {
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #2e7d32;
    font-weight: bold;
    font-size: 12px;
}

.app-details .withdraw {
    color: #666;
    font-size: 12px;
}

/* Button Container */
.app-action {
    width: 100%;
    margin-top: 12px;
}

.download-btn {
    display: block;
    background: var(--gradient-gold);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(243, 156, 18, 0.3);
    border: 1px solid #e67e22;
    width: 100%;
    text-align: center;
}

.download-btn:hover {
    background: linear-gradient(to bottom, #f39c12, #d35400);
    transform: scale(1.02);
}

/* =========================================
   4. GAME DETAILS PAGE (Specific Styles)
   ========================================= */

/* Hero Section */
.game-hero {
    background: white; border-radius: 16px; padding: 30px; margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 30px;
    border: 1px solid #e1e8e5; position: relative; overflow: hidden;
}
.game-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #f1c40f, #008955); }

.g-icon img { width: 140px; height: 140px; border-radius: 20px; border: 4px solid #f0f4f1; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.g-info { flex-grow: 1; }
.g-info h1 { color: var(--primary-green); font-size: 32px; margin-bottom: 15px; font-weight: 800; line-height: 1.1; }

/* Stats Boxes (Sign-up, Withdraw, Verified) */
.g-stats { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.stat-box {
    background: #f8fff9; padding: 10px 20px; border-radius: 10px; border: 1px solid #c8e6c9;
    min-width: 110px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.stat-box span { display: block; font-size: 13px; color: #555; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box strong { font-size: 18px; color: var(--dark-green); font-weight: 900; }

/* "Verified" Tick Style */
.stat-box strong:contains("Safe") { color: #27ae60; } /* Logic handled by HTML structure, style applies to strong tag */

/* Big Download Button with Animation */
.big-download-btn {
    background: var(--gradient-gold); color: white; padding: 15px 40px; font-size: 18px; font-weight: bold; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); animation: pulse 2s infinite; border: 2px solid #e67e22; text-transform: uppercase;
}
.big-download-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5); }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Content Sections (About, Pros/Cons) */
.content-card {
    background: white; padding: 30px; margin-top: 25px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #eee;
}
.content-card h2 { color: var(--primary-green); margin-bottom: 20px; font-size: 24px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.content-card h3 { color: var(--text-dark); margin-top: 25px; margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.content-card p { color: #555; margin-bottom: 15px; font-size: 16px; line-height: 1.8; }

/* Pros & Cons Grid */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
.pc-box { padding: 25px; border-radius: 12px; }
.pc-title { display: block; font-weight: 800; font-size: 18px; margin-bottom: 15px; text-transform: uppercase; }

/* Pros Styling */
.pc-pros { background-color: #f0fdf4; border: 1px solid #bbf7d0; }
.pc-pros .pc-title { color: #15803d; }
.pc-pros ul li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #14532d; }
.pc-pros ul li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: #16a34a; font-size: 18px;
}

/* Cons Styling */
.pc-cons { background-color: #fef2f2; border: 1px solid #fecaca; }
.pc-cons .pc-title { color: #b91c1c; }
.pc-cons ul li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #7f1d1d; }
.pc-cons ul li::before {
    content: '\f00d'; /* FontAwesome Cross */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: #dc2626; font-size: 18px;
}

/* FAQs Section */
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    font-weight: 700; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 17px;
}
.faq-question i { color: var(--primary-green); transition: transform 0.3s; }
.faq-answer {
    margin-top: 12px; color: #666; display: none; padding: 15px;
    background: #f9f9f9; border-left: 4px solid var(--primary-green); border-radius: 4px;
}
/* =========================================
   8. ADSENSE
   ========================================= */
.ad-container { margin: 20px auto; text-align: center; }
.ad-placeholder { background-color: #f1f2f6; height: 100px; display: flex; justify-content: center; align-items: center; border: 2px dashed #ccc; color: #999; border-radius: 8px; }

.seo-content { background: var(--white); padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.seo-content h2 { color: var(--primary-green); margin-bottom: 15px; }

/* =========================================
   9. FOOTER & DISCLAIMER
   ========================================= */
.disclaimer-section { background-color: #fff8e1; border-top: 1px solid #ffe082; padding: 25px 0; text-align: center; color: #8d6e63; }
.main-footer { background: #1b2e25; color: #b2bec3; padding: 40px 0; text-align: center; font-size: 14px; }
.footer-links { margin-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-links a { color: #dfe6e9; padding: 0 10px; border-right: 1px solid #636e72; }
.footer-links a:last-child { border-right: none; }

/* Sticky Footer (Mobile) */
.sticky-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; padding: 10px 15px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    display: none; justify-content: center; z-index: 999; border-top: 1px solid #eee;
}
.sticky-btn {
    width: 100%; background: var(--gradient-gold); color: white; text-align: center; padding: 14px; border-radius: 8px; font-weight: bold; font-size: 16px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4); animation: pulse 2s infinite;
}

/* =========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .app-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    /* Right Side Drawer Menu */
    .nav-menu {
        position: fixed; top: var(--header-height); right: -100%; background-color: var(--white);
        flex-direction: column; width: 75%; height: calc(100vh - var(--header-height));
        padding-top: 20px; transition: 0.3s ease-in-out;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1); border-left: 1px solid #eee;
        align-items: flex-start; padding-left: 20px;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { padding: 15px 0; width: 100%; border-bottom: 1px solid #eee; color: var(--text-dark); }
    .telegram-btn { margin-top: 15px; width: 90%; justify-content: center; }

    /* App Grid - 2 Columns */
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .app-card { padding: 10px; }
    .app-icon img { width: 60px; height: 60px; }
    .app-details h3 { font-size: 14px; }
    .download-btn { padding: 6px 10px; font-size: 12px; }

    /* Details Page */
    .game-hero { flex-direction: column; text-align: center; padding: 20px; }
    .g-stats { justify-content: center; width: 100%; gap: 10px; }
    .stat-box { flex: 1; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    
    .sticky-footer { display: flex; }
    .main-footer { padding-bottom: 80px; }
    .hide-on-mobile { display: none; }
    .content-card { padding: 20px; }
    
    .footer-links { flex-direction: column; gap: 10px; }
    .footer-links a { border-right: none; }
}