/* ==========================================================================
   Modern Play Flagship - Vector Wave Edition Stylesheet
   Color Palette: Vibrant Teal (#00a8a8), Warm Orange (#ea580c), Dark Charcoal (#181e29)
   ========================================================================== */

:root[data-theme="modern_play"],
body.theme-modern_play {
    --th-primary: #00a8a8;
    --th-secondary: #00b4d8;
    --th-accent: #ea580c;
    --th-accent-warm: #f97316;
    --th-dark: #181e29;
    --th-bg-main: #f8fafc;
    --th-radius: 14px;
    background-color: var(--th-bg-main) !important;
    color: #0f172a !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body.theme-modern_play h1,
body.theme-modern_play h2,
body.theme-modern_play h3,
body.theme-modern_play h4,
body.theme-modern_play h5,
body.theme-modern_play h6 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.theme-modern_play p,
body.theme-modern_play span,
body.theme-modern_play li {
    color: #334155;
}

body.theme-modern_play a {
    color: #00a8a8;
}

/* Vector Wave Banners Styling */
.vector-wave-header-top {
    position: relative;
    z-index: 1001;
    background: #ffffff;
    border-bottom: none;
}
.vector-wave-header-top svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.vector-wave-footer-transition {
    position: relative;
    z-index: 5;
    margin-top: 50px;
}
.vector-wave-footer-transition svg {
    filter: drop-shadow(0 -4px 6px rgba(0,0,0,0.05));
}

/* Card Hover Elevation & Smooth Image Zoom */
body.theme-modern_play .th-game-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
body.theme-modern_play .th-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 168, 168, 0.12) !important;
    border-color: #00a8a8 !important;
}
body.theme-modern_play .th-game-card img {
    transition: transform 0.25s ease;
}
body.theme-modern_play .th-game-card:hover img {
    transform: scale(1.05);
}

/* Category Pills Bar with Teal & Orange */
.cat-pill {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}
.cat-pill:hover,
.cat-pill.active {
    background: linear-gradient(135deg, #00a8a8 0%, #00b4d8 100%) !important;
    color: #ffffff !important;
    border-color: #00a8a8 !important;
    box-shadow: 0 4px 12px rgba(0, 168, 168, 0.25) !important;
}

/* Dark Hero Overrides Lock to guarantee white text visibility */
body.theme-modern_play .th-hero-dark-text,
body.theme-modern_play .th-hero-dark-text h1,
body.theme-modern_play .th-hero-dark-text h2,
body.theme-modern_play .th-hero-dark-text p,
body.theme-modern_play .th-hero-dark-text span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Details / FAQ Accordion Styling */
body.theme-modern_play details summary::-webkit-details-marker {
    display: none;
}
body.theme-modern_play details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
    color: #00a8a8 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .th-modern_play-layout {
        grid-template-columns: 1fr !important;
    }
    .th-modern_play-sidebar {
        position: static !important;
        margin-bottom: 20px !important;
    }
    .th-modern_play-bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .hide-mobile-sm {
        display: none !important;
    }
    .th-modern_play-header-inner {
        flex-wrap: wrap !important;
        padding: 8px 12px !important;
    }
    .vector-wave-header-top svg {
        height: 35px !important;
    }
    .vector-wave-footer-transition svg {
        height: 50px !important;
    }
    .th-modern_play-bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }
    .th-modern_play-bento-grid > div {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        aspect-ratio: 16/10 !important;
    }
}
