@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #020617;
    /* Slate 900 background requested by user */
    --card-bg: #020617;
    /* Adjusted card to Slate 800-ish to blend nicely */
    --text-color: #ffffff;
    --accent-color: #ffd700;
    --footer-bg: #0f172a;
    /* Footer matches background seamlessly */
    --grid-gap: 8px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Content Wrapper */
main {
    flex: 1;
    padding: 10px;
    /* Reduced padding from 20px */
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    /* 14 columns on ultra-wide screens */
    gap: 12px;
    /* Increased gap for Laptop/Big Screen ("extra gap") */
}

@media (max-width: 1600px) {
    .games-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 1300px) {
    .games-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(8, 1fr);
        /* Clean layout transition for tablets */
    }
}

@media (max-width: 850px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 425px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* Increased gap for Mobile density ("add gpe extr") */
    }

    .game-card {
        max-width: 100% !important;
        /* Allow growing full cell width in mobile */
        max-height: none !important;
    }
}

/* Game Card */
.game-card {
    position: relative;
    border-radius: 13px;
    /* Highly rounded corners */
    overflow: hidden;
    cursor: pointer;
    background-color: var(--card-bg);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    aspect-ratio: 1 / 1;
    /* Force square for grid items */
    max-width: 105px;
    max-height: 105px;
    margin-top: 12px;
    /* Added explicit height boundary constraint */
    width: 100%;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.05);
    /* Slightly bigger scale */
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.15);
    /* Indigo glow inspired by tailwind shadow-indigo-500/20 */
    z-index: 10;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.game-card:hover img {
    filter: blur(2px);
    /* Blur effect requested */
    transform: scale(1.03);
}

/* absolute overlay container inside card */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
    /* Gradient bottom lift */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    z-index: 5;
    pointer-events: none;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.game-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.category {
    font-size: 0.5rem;
    font-weight: 700;
    color: #818cf8;
    /* indigo-400 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-mini {
    font-size: 0.55rem;
    color: #ffd700;
    /* Gold */
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.game-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* exact line-clamp imitation */
}

main {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.games-grid {
    padding: 12px !important;
    /* Controlled edge gutter for icons only */
}


/* Rating Badge (always visible until hover hide) */
.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1px 5px 1px 3px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.game-card:hover .rating-badge {
    opacity: 0;
    /* Hide static badge on hover as seen in snippet */
}

.rating-badge .star-icon {
    width: 12px;
    height: 12px;
    fill: var(--accent-color);
}

/* Footer Container inside Page */
#footer-container {
    width: 100%;
    margin-top: auto;
}

/* Site Footer Styles (applied to footer.html content) */
.site-footer {
    background-color: #020617;
    /* Slate-950 backdrop for seamless match */
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    margin-top: 35px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    /* standard sleek height */
    width: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
    /* match tightly */
}

.brand-sub {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    /* Tracked out */
    color: #94a3b8;
    /* Muted subtitle */
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-center {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.65rem;
    /* ~11px as reference */
    letter-spacing: 0.08em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-transform: uppercase;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    /* subtle indigo glow hint */
}

.footer-right .copyright {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }

    .footer-center {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================
   Privacy Policy Page Styles 
   ========================================== */
.privacy-container {
    max-width: 900px;
    /* narrowed for readability */
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.privacy-header {
    text-align: center;
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.header-shield {
    width: 24px;
    height: 24px;
}

.privacy-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.update-date {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.policy-card {
    background-color: rgba(15, 23, 42, 0.6);
    /* Slightly darker/transparent blend */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px;
}

.policy-section {
    margin-bottom: 35px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.policy-section p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 30px;
    /* Match icon aligned offset */
}

.inline-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .policy-card {
        padding: 25px;
    }

    .policy-section p {
        padding-left: 0;
        margin-top: 8px;
    }
}

/* ==========================================
   Contact Page Styles 
   ========================================== */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.contact-header h1 {
    font-size: 2.5rem;
    /* Large white */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.contact-header p {
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info is narrower than Form */
    gap: 30px;
    align-items: start;
}

/* Sidebar Information */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: rgba(30, 41, 59, 0.4);
    /* Slate 800 subtle transparent */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
}

.live-chat-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle .icon {
    width: 18px;
    height: 18px;
    stroke: #818cf8;
    /* indigo */
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

/* Live Chat Card */
.chat-icon {
    width: 24px;
    height: 24px;
}

.chat-content {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #818cf8;
}

.chat-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Contact Form Card */
.contact-form-card {
    background-color: rgba(30, 41, 59, 0.3);
    /* dark slate matching sidebar */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    background-color: #0d1527;
    /* Input inner background very dark slate */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #475569;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

.btn-send {
    width: 100%;
    background-color: #5850ec;
    /* Blue Purple */
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-send:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

.btn-send .send-icon {
    transform: rotate(90deg);
    /* slight plane tilt */
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ⚓ FOOTER & ANCHOR AD GAP FIX */
#footer-container {
    background-color: #020617 !important;
}



/* Ensure GPT anchor ad containers don't introduce light backgrounds */
ins.adsbygoogle[data-ad-format="autorelaxed"],
div[id^="google_ads_iframe"],
div[id^="div-gpt-ad"] {
    background-color: transparent !important;
}

/* ════════════════════════════════════════════ */
/* 🎮 GAME DETAILS PAGE STYLES                 */
/* ════════════════════════════════════════════ */

.detail-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    margin-bottom: 32px;
}

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

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    /* slate-400 */
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #f8fafc;
}

.detail-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Card Baseline */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
}

.section-card {
    margin-top: 24px;
}

/* Hero Section */
.hero-section {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 32px;
}

@media (max-width: 640px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}

.hero-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #f8fafc;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .hero-badges {
        justify-content: center;
    }
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.category-badge {
    background-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.age-badge {
    background-color: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .hero-rating {
        justify-content: center;
    }
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 18px;
    height: 18px;
    fill: #475569;
    /* off */
}

.star.active {
    fill: #f59e0b;
    /* On */
}

.rating-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: #f59e0b;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-circle.blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.stat-icon-circle.purple {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.stat-icon-circle.green {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.stat-icon-circle.orange {
    background-color: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: #f1f5f9;
}

/* Action Buttons */
.download-section {
    display: flex;
    gap: 16px;
}

@media (max-width: 640px) {
    .download-section {
        flex-direction: column;
    }
}

.btn-store {
    flex: 1;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
    text-align: center;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Text Sections */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #f8fafc;
}

.description-text {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 16px;
    color: #e2e8f0;
    font-style: italic;
    background: rgba(99, 102, 241, 0.05);
    padding: 16px;
    border-radius: 0 12px 12px 0;
}

/* How to list */
.how-to-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    background: #6366f1;
    color: #fff;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-text {
    color: #e2e8f0;
    font-size: 0.95rem;
    padding-top: 4px;
}

/* Sidebar */
.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #f8fafc;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.sidebar-item:hover {
    background: rgba(15, 23, 42, 0.4);
}

.side-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.side-info {
    display: flex;
    flex-direction: column;
}

.side-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f1f5f9;
}

.side-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}