/* ==========================================================================
   Modern Play Flagship - 100% Light High-Contrast Stylesheet
   Engine: Classic Oceanic Pro Mega Portal
   ========================================================================== */

:root[data-theme="modern_play"],
body.theme-modern_play {
    --th-primary: #0284c7;
    --th-secondary: #06b6d4;
    --th-accent: #f59e0b;
    --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: #0284c7;
}

/* Card Hover Elevation & Smooth Image Zoom */
body.theme-modern_play .th-game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.theme-modern_play .th-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    border-color: #0284c7 !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);
}

/* 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: #0284c7 !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) {
    .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;
    }
}
