/* ==========================================================================
   Modern Play - Premium Arcade Theme Stylesheet (AdSense Optimized)
   ========================================================================== */

:root {
    --mp-primary: #0284c7;
    --mp-primary-hover: #0369a1;
    --mp-accent: #06b6d4;
    --mp-accent-warm: #f59e0b;
    --mp-bg: #f8fafc;
    --mp-card-bg: #ffffff;
    --mp-text: #0f172a;
    --mp-text-muted: #64748b;
    --mp-border: #e2e8f0;
    --mp-border-hover: #cbd5e1;
    --mp-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --mp-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --mp-shadow-lg: 0 16px 36px rgba(2, 132, 199, 0.16);
    --mp-radius-sm: 8px;
    --mp-radius-md: 14px;
    --mp-radius-lg: 20px;
    --mp-radius-full: 9999px;
    --mp-font-heading: 'Outfit', sans-serif;
    --mp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --mp-bg: #0b1120;
    --mp-card-bg: #131d31;
    --mp-text: #f1f5f9;
    --mp-text-muted: #94a3b8;
    --mp-border: #1e293b;
    --mp-border-hover: #334155;
    --mp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --mp-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body {
    background-color: var(--mp-bg);
    color: var(--mp-text);
    font-family: var(--mp-font-body);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* -------------------------------------------------------------
   Container & Section Utilities
   ------------------------------------------------------------- */
.mp-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.mp-section {
    margin-bottom: 44px;
}

.mp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.mp-section-title {
    font-family: var(--mp-font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--mp-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-section-title i {
    font-size: 1.25rem;
}

.mp-section-more {
    color: var(--mp-primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.mp-section-more:hover {
    transform: translateX(4px);
    color: var(--mp-primary-hover);
}

/* -------------------------------------------------------------
   Hero Spotlight Section (Poki / CrazyGames Style)
   ------------------------------------------------------------- */
.mp-hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 24px 0 36px;
}

.mp-hero-main {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #075985 100%);
    border-radius: var(--mp-radius-lg);
    padding: 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(2, 132, 199, 0.28);
    min-height: 320px;
}

.mp-hero-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: var(--mp-radius-full);
    width: fit-content;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.mp-hero-body {
    position: relative;
    z-index: 2;
    margin: 18px 0;
}

.mp-hero-title {
    font-family: var(--mp-font-heading);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #ffffff;
}

.mp-hero-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 0 22px;
}

.mp-hero-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mp-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.mp-btn-play-lg {
    background: #ffffff;
    color: #0284c7;
    font-family: var(--mp-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: var(--mp-radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-btn-play-lg:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    color: #0369a1;
}

.mp-btn-subtle {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: var(--mp-radius-md);
    text-decoration: none;
    transition: background 0.2s ease;
}

.mp-btn-subtle:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Hero Mini Side Grid (3 Quick Picks) */
.mp-hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-hero-side-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-md);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--mp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex: 1;
}

.mp-hero-side-card:hover {
    transform: translateX(4px);
    box-shadow: var(--mp-shadow-md);
    border-color: var(--mp-primary);
}

.mp-hero-side-thumb {
    width: 86px;
    height: 60px;
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.mp-hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-hero-side-info h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1.25;
}

.mp-hero-side-info span {
    font-size: 0.78rem;
    color: var(--mp-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* -------------------------------------------------------------
   Category Ribbon (Pills Navigation)
   ------------------------------------------------------------- */
.mp-category-ribbon {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 32px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.mp-category-ribbon::-webkit-scrollbar {
    height: 6px;
}

.mp-category-ribbon::-webkit-scrollbar-thumb {
    background: var(--mp-border);
    border-radius: var(--mp-radius-full);
}

.mp-cat-pill {
    background: var(--mp-card-bg);
    color: var(--mp-text);
    border: 1px solid var(--mp-border);
    padding: 9px 18px;
    border-radius: var(--mp-radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--mp-shadow-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mp-cat-pill i {
    color: var(--mp-primary);
    font-size: 0.95rem;
}

.mp-cat-pill .mp-pill-count {
    background: rgba(2, 132, 199, 0.08);
    color: var(--mp-primary);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--mp-radius-full);
    font-weight: 800;
}

.mp-cat-pill:hover {
    border-color: var(--mp-primary);
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-md);
}

.mp-cat-pill.active {
    background: linear-gradient(135deg, var(--mp-primary), var(--mp-accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.mp-cat-pill.active i,
.mp-cat-pill.active .mp-pill-count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

/* -------------------------------------------------------------
   Game Card Grid (Poki & CrazyGames High-Conversion Style)
   ------------------------------------------------------------- */
.mp-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
}

.mp-game-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mp-game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
    border-color: var(--mp-primary);
    z-index: 10;
}

.mp-card-thumb-wrap {
    aspect-ratio: 16 / 10.5;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.mp-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.mp-game-card:hover .mp-card-thumb-img {
    transform: scale(1.08);
}

.mp-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--mp-radius-sm);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.mp-card-badge.badge-featured {
    background: #f59e0b;
}

.mp-card-play-hover {
    position: absolute;
    inset: 0;
    background: rgba(2, 132, 199, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mp-game-card:hover .mp-card-play-hover {
    opacity: 1;
}

.mp-play-circle {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--mp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.2s ease;
}

.mp-game-card:hover .mp-play-circle {
    transform: scale(1);
}

.mp-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.mp-card-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--mp-text);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--mp-text-muted);
}

.mp-card-cat {
    font-weight: 600;
}

.mp-card-plays {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--mp-primary);
    font-weight: 700;
}

/* -------------------------------------------------------------
   AdSense Safe Banner Wrappers (Policy Compliant)
   ------------------------------------------------------------- */
.mp-ad-wrapper {
    margin: 28px 0;
    text-align: center;
}

.mp-ad-wrapper:empty,
.mp-ad-inner:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
}

.mp-ad-inner {
    display: inline-block;
    background: var(--mp-card-bg);
    border: 1px dashed var(--mp-border);
    border-radius: var(--mp-radius-md);
    padding: 10px;
    max-width: 100%;
}

.mp-ad-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mp-text-muted);
    margin-bottom: 6px;
    display: block;
}

/* -------------------------------------------------------------
   Homepage SEO Editorial Article (1,200+ Words for AdSense Approval)
   ------------------------------------------------------------- */
.mp-seo-article-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 40px;
    margin: 48px 0;
    box-shadow: var(--mp-shadow-sm);
    line-height: 1.7;
    color: var(--mp-text);
}

.mp-seo-article-card h2 {
    font-family: var(--mp-font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--mp-text);
    margin: 0 0 16px;
    border-bottom: 2px solid rgba(2, 132, 199, 0.15);
    padding-bottom: 12px;
}

.mp-seo-article-card h3 {
    font-family: var(--mp-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mp-primary);
    margin: 28px 0 12px;
}

.mp-seo-article-card p {
    font-size: 0.95rem;
    color: var(--mp-text);
    opacity: 0.9;
    margin-bottom: 18px;
}

.mp-seo-article-card ul,
.mp-seo-article-card ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.mp-seo-article-card li {
    margin-bottom: 10px;
    font-size: 0.94rem;
}

.mp-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mp-faq-card {
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-md);
    padding: 18px;
}

.mp-faq-card h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--mp-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-faq-card h4 i {
    color: var(--mp-primary);
}

.mp-faq-card p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--mp-text-muted);
    line-height: 1.5;
}

/* -------------------------------------------------------------
   Trust Features Ribbon
   ------------------------------------------------------------- */
.mp-trust-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 24px 32px;
    margin-bottom: 40px;
    box-shadow: var(--mp-shadow-sm);
}

.mp-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mp-trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--mp-primary);
    border-radius: var(--mp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mp-trust-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--mp-text);
}

.mp-trust-text span {
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .mp-hero-layout {
        grid-template-columns: 1fr;
    }
    .mp-hero-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mp-hero-main {
        padding: 24px;
    }
    .mp-hero-title {
        font-size: 1.8rem;
    }
    .mp-hero-side {
        grid-template-columns: 1fr;
    }
    .mp-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .mp-card-body {
        padding: 10px;
    }
    .mp-seo-article-card {
        padding: 24px;
    }
}

/* =============================================================
   Airtight Text Visibility & Contrast Protections
   ============================================================= */
body .mp-hero-main,
body .mp-hero-main h1,
body .mp-hero-main .mp-hero-title,
body .mp-hero-main p,
body .mp-hero-main .mp-hero-desc,
body .mp-hero-main .mp-hero-meta,
body .mp-hero-main .mp-hero-meta span,
body .mp-hero-main .mp-hero-tag {
    color: #ffffff !important;
}

body .mp-hero-main .mp-hero-desc {
    color: #f8fafc !important;
    opacity: 1 !important;
}

body .mp-hero-main .mp-hero-meta span {
    color: #e2e8f0 !important;
}

/* GDPR Cookie Consent Banner High Contrast */
body #mpCookieBanner,
body #mpCookieBanner strong,
body #mpCookieBanner p,
body #mpCookieBanner span {
    color: #ffffff !important;
}

body #mpCookieBanner p {
    color: #f1f5f9 !important;
}

body #mpCookieBanner a {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

/* Footer Light Theme High Contrast & Crystal Clear Text */
body .site-footer,
body .site-footer.modern-play-footer {
    background: #ffffff !important;
    border-top: 2px solid #e2e8f0 !important;
    color: #475569 !important;
}

body .site-footer h3,
body .site-footer h4,
body .site-footer strong,
body .site-footer .mp-copyright-bar strong {
    color: #0f172a !important;
}

body .site-footer p,
body .site-footer li,
body .site-footer span,
body .site-footer a,
body .site-footer .mp-copyright-bar {
    color: #475569 !important;
}

body .site-footer a:hover {
    color: #0284c7 !important;
}

body .site-footer .safe-browsing-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

body .site-footer .safe-browsing-card p {
    color: #475569 !important;
}

body .site-footer .safe-browsing-card p strong,
body .site-footer .safe-browsing-card p:first-child {
    color: #0f172a !important;
}

body .site-footer .safe-browsing-card div {
    color: #059669 !important;
}
