/* ══════════════════════════════════════════════════════════════════
   styles2.css — Light minimalist base + Neon Arcade enhancements
   ══════════════════════════════════════════════════════════════════ */

/* ── Font Faces ────────────────────────────────────────────────── */
@font-face {
    font-family: 'HeadingFont';
    src: url('bubble_fonts/h1.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'NormalFont';
    src: url('bubble_fonts/normal.ttf') format('truetype');
    font-display: swap;
}

/* ── CSS Custom Properties ──────────────────────────────────────── */
:root {
    --bg-primary: #fbfbfd;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --overlay: rgba(255, 255, 255, 0.72);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --container: 1200px;
    --nav-height: 52px;
    --font: 'NormalFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'HeadingFont', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ── Dark Theme ────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #00d4ff;
    --accent-hover: #33dfff;
    --overlay: rgba(10, 10, 15, 0.85);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 15, 0.85);
}

[data-theme="dark"] .glow-orb {
    opacity: 0.12;
}

[data-theme="dark"] .grid-bg {
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] .modal-close:hover {
    background: #2a2a3a;
}

[data-theme="dark"] .carousel-btn {
    background: rgba(30, 30, 45, 0.9);
}

[data-theme="dark"] .carousel-btn:hover {
    background: #2a2a3a;
}

[data-theme="dark"] .stat-value {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

[data-theme="dark"] .navbar-logo img {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .hero-logo {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
}

[data-theme="dark"] .hero-highlight {
    background: linear-gradient(90deg, #00d4ff, #ff2d95, #b44dff, #00d4ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .section-separator {
    background-image:
        radial-gradient(circle, #E8318A 1.5px, #0a0a0f 2px),
        radial-gradient(circle, #3B8BDB 2.5px, #0a0a0f 3px),
        radial-gradient(circle, #FACE1D 3.5px, #0a0a0f 4px),
        radial-gradient(circle, #8B7BB8 4.5px, #0a0a0f 5px),
        radial-gradient(circle, #5FC243 3.5px, #0a0a0f 4px),
        radial-gradient(circle, #D9184D 2.5px, #0a0a0f 3px),
        radial-gradient(circle, #C8D930 1.5px, #0a0a0f 2px);
}

[data-theme="dark"] .navbar-logo span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

[data-theme="dark"] .navbar-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 212, 255, 0.6);
}

[data-theme="dark"] .navbar-links a::after {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Theme Toggle Button ──────────────────────────────────────── */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--bg-secondary));
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ══════════════════════════════════════════════════════════════════
   NEON ARCADE ENHANCEMENTS (light version)
   ══════════════════════════════════════════════════════════════════ */

/* ── Animated Grid Background (light) ──────────────────────────── */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 113, 227, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 25s linear infinite;
}

@keyframes gridScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* ── Pulsating Neon Orbs ───────────────────────────────────────── */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: orbPulse 8s ease-in-out infinite;
}

.glow-orb--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.glow-orb--2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -120px;
    animation-delay: -2s;
}

.glow-orb--3 {
    width: 450px;
    height: 450px;
    bottom: 20%;
    left: 10%;
    animation-delay: -4s;
}

.glow-orb--4 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: 20%;
    animation-delay: -6s;
}

.glow-orb--5 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.12; transform: scale(1.15); }
}

/* Fix: orb--5 needs separate animation to keep translate */
.glow-orb--5 {
    animation: orbPulse5 8s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes orbPulse5 {
    0%, 100% { opacity: 0.06; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Scanline Overlay (disabled) ──────────────────────────────── */
.scanline-overlay {
    display: none;
}

/* ── Section Separator (colored line after headers) ────────────── */
.section-separator {
    display: block;
    width: 110px;
    height: 10px;
    margin: 16px auto 0;
    background-image:
        radial-gradient(circle, #E8318A 1.5px, transparent 2px),
        radial-gradient(circle, #3B8BDB 2.5px, transparent 3px),
        radial-gradient(circle, #FACE1D 3.5px, transparent 4px),
        radial-gradient(circle, #8B7BB8 4.5px, transparent 5px),
        radial-gradient(circle, #5FC243 3.5px, transparent 4px),
        radial-gradient(circle, #D9184D 2.5px, transparent 3px),
        radial-gradient(circle, #C8D930 1.5px, transparent 2px);
    background-size: 4px 4px, 6px 6px, 8px 8px, 10px 10px, 8px 8px, 6px 6px, 4px 4px;
    background-repeat: no-repeat;
    background-position: 0 3px, 16px 2px, 33px 1px, 50px 0, 68px 1px, 85px 2px, 102px 3px;
}

/* ── Section Subtitle ──────────────────────────────────────────── */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 56px;
    letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════
   LAYOUT (relative z-index to be above grid/orbs)
   ══════════════════════════════════════════════════════════════════ */

.navbar,
.hero,
.section,
.footer,
.modal-overlay,
.lightbox {
    position: relative;
    z-index: 1;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scroll Reveal ─────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(251, 251, 253, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-logo {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    text-decoration: none;
}

.navbar-logo img {
    width: auto;
    height: 36px;
}

.navbar-logo span {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 0.5;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width var(--transition);
}

.navbar-links a:hover::after {
    width: 100%;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-brand {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

/* ── Logo floating animation ───────────────────────────────────── */
.hero-logo {
    width: auto;
    height: 130px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-brand-name {
    font-family: var(--font);
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    line-height: 0.5;
}

/* ── Hero tagline typography (matching v1-neon-arcade) ─────────── */
.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ── Hero shimmer gradient ─────────────────────────────────────── */
.hero-highlight {
    background: linear-gradient(90deg, #E8318A, #FACE1D, #5FC243, #3B8BDB, #8B2384, #E8318A);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

/* ── Neon Glow Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    font-weight: 700;
    transition: all var(--transition);
    letter-spacing: 0.01em;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.btn-neon {
    padding: 14px 32px;
    font-size: 1rem;
    color: var(--btn-accent, var(--accent));
    border: 2px solid var(--btn-accent, var(--accent));
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
}

.btn-neon:hover {
    background: color-mix(in srgb, var(--btn-accent, var(--accent)) 8%, transparent);
    box-shadow:
        0 0 20px color-mix(in srgb, var(--btn-accent, var(--accent)) 25%, transparent),
        inset 0 0 20px color-mix(in srgb, var(--btn-accent, var(--accent)) 5%, transparent);
    transform: translateY(-2px);
}

.btn-details {
    padding: 12px 28px;
    font-size: 0.92rem;
    width: fit-content;
}

/* ── Section ───────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section--alt {
    background: transparent;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ── Games Grid ────────────────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════════
   FEATURED GAME — with gradient border on hover
   ══════════════════════════════════════════════════════════════════ */
.featured-game {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    /* Gradient border setup */
    border: 2px solid var(--border-color);
}

.featured-game:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(135deg, var(--accent), #E8318A, #FACE1D, #5FC243, var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

@media (min-width: 768px) {
    .featured-game {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .featured-game-content,
    .featured-game-visual {
        min-width: 0;
    }
}

.featured-game-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-game-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.featured-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.featured-game-name {
    font-family: var(--font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.featured-game-tagline {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--accent);
    margin-top: 4px;
}

.featured-game-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.featured-game-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.featured-game-proof span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 5px 14px;
    background: var(--bg-secondary);
    border-radius: 980px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.featured-game-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.featured-game-stores {
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-store-link {
    display: flex;
    align-items: center;
    transition: opacity var(--transition);
}

.featured-store-link img {
    height: 45px;
    width: auto;
}

.featured-store-link:hover {
    opacity: 0.65;
}

/* ── Featured Game Visual ─────────────────────────────────────── */
.featured-game-visual {
    padding: 24px 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-game-frame {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.featured-game-frame .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.featured-game-frame .carousel-btn--prev {
    left: 6px;
    display: none;
}

.featured-game-frame .carousel-btn--next {
    right: 6px;
}

.featured-game-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px;
}

.featured-game-screenshots::-webkit-scrollbar {
    display: none;
}

.featured-screenshot {
    flex: 0 0 auto;
    width: 166px;
    max-height: 296px;
    object-fit: contain;
    scroll-snap-align: start;
    display: block;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: transform var(--transition);
}

.featured-screenshot:hover {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .featured-game-visual {
        padding: 0 20px 20px;
    }

    .featured-game-content {
        padding: 28px 20px 20px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   GAME CARD — with gradient border on hover
   ══════════════════════════════════════════════════════════════════ */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(135deg, var(--accent, #0071e3), color-mix(in srgb, var(--accent, #0071e3) 60%, #E8318A), var(--accent, #0071e3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.game-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.game-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card-info {
    flex: 1;
    min-width: 0;
}

.game-card-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.game-card-tagline {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 3px;
}

.game-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.game-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.store-badge img,
.game-page-store-link img {
    border: 1px solid #fff;
    border-radius: 10px;
}

.store-badge img {
    height: 45px;
    width: auto;
    transition: opacity var(--transition);
}

.store-badge:hover img {
    opacity: 0.7;
}

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(24px);
    transition: transform var(--transition), border-color var(--transition), background-image var(--transition);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(135deg, var(--accent, #0071e3), color-mix(in srgb, var(--accent, #0071e3) 60%, #E8318A), var(--accent, #0071e3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 50%;
    z-index: 10;
    margin: 12px 12px 0 0;
    transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: #e8e8ed;
}

.modal-body {
    padding: 12px 32px 32px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-tagline {
    font-family: var(--font);
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}

.modal-features li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Carousel ──────────────────────────────────────────────────── */
.carousel-wrapper {
    position: relative;
    margin-bottom: 28px;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    max-width: 166px;
    max-height: 296px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.carousel-item:hover {
    border-color: rgba(0, 113, 227, 0.3);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.carousel-btn--prev {
    left: -8px;
}

.carousel-btn--next {
    right: -8px;
}

[dir="rtl"] .carousel-btn--prev {
    left: auto;
    right: -8px;
}

[dir="rtl"] .carousel-btn--next {
    right: auto;
    left: -8px;
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.modal-badges .store-badge img {
    height: 44px;
}

.modal-blog-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.modal-blog-link:hover {
    color: var(--text);
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT / STATS — with neon glow on stat-value
   ══════════════════════════════════════════════════════════════════ */
.about-text {
    text-align: center;
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 0 24px rgba(0, 113, 227, 0.12), var(--shadow-md);
    transform: translateY(-3px);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 113, 227, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-link:hover {
    background: var(--bg-card);
    border-color: rgba(0, 113, 227, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    padding: 56px 0 0;
    background: rgba(251, 251, 253, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: rgba(10, 10, 15, 0.85);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand-col .navbar-logo {
    display: inline-flex;
    margin-bottom: 12px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-col-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-privacy:hover {
    color: var(--accent);
}

/* ── Blog Chooser (no-category landing) ──────────────────────── */
.blog-chooser {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .blog-chooser {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-chooser-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-chooser-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(135deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 60%, #E8318A), var(--card-accent, var(--accent)));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.blog-chooser-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.blog-chooser-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-chooser-card .blog-card-link {
    margin-top: auto;
}

/* ── Language Switcher ─────────────────────────────────────────── */
.language-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 200px;
}

.language-select-flag {
    position: absolute;
    left: 14px;
    pointer-events: none;
    border-radius: 2px;
    object-fit: cover;
}

.language-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 10px 40px 10px 46px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: var(--shadow-sm);
}

.language-select:hover {
    border-color: rgba(0, 113, 227, 0.4);
}

.language-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.language-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px;
}

/* ── RTL Overrides ─────────────────────────────────────────────── */
[dir="rtl"] .navbar-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .game-card-header,
[dir="rtl"] .featured-game-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-close {
    float: left;
    margin: 12px 0 0 12px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .navbar-logo span {
        display: none;
    }

    .navbar-links {
        gap: 20px;
    }

    .navbar-links a {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 24px);
        padding-bottom: 60px;
    }

    .hero-inner {
        padding: 0 16px;
    }

    .hero-logo {
        height: 90px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-subtitle {
        margin-top: -20px;
        margin-bottom: 36px;
        font-size: 0.95rem;
    }

    .game-card-content {
        padding: 20px;
    }

    .modal-body {
        padding: 12px 20px 24px;
    }

    .carousel-item {
        max-width: 166px;
    }

    .carousel-btn {
        display: none;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .featured-game-actions .btn {
        flex: 1;
    }
}

@media (max-width: 400px) {
    .game-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-card-desc {
        text-align: center;
    }

    .game-card-actions {
        justify-content: center;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   BLOG — listing & article styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Blog Hero (shorter variant) ─────────────────────────────────── */
.blog-hero {
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 0 48px;
    position: relative;
    z-index: 1;
}
.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.blog-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ── Blog Filters ─────────────────────────────────────────────────── */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.blog-filter-btn {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 980px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.blog-filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.blog-filter-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* ── Blog Grid ────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Blog Card ────────────────────────────────────────────────────── */
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(135deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 60%, #E8318A), var(--card-accent, var(--accent)));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.blog-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Typographic Placeholder ──────────────────────────────────────── */
.blog-card-image--placeholder {
    position: relative;
    overflow: hidden;
    background: var(--ph-bg, #4f46e5);
}

/* Repeating icon pattern */
.blog-card-image--placeholder::before {
    content: '';
    position: absolute;
    inset: -60%;
    width: 220%;
    height: 220%;
    background-repeat: repeat;
    background-size: 52px 52px;
    opacity: 0.13;
    transform: rotate(-25deg);
    pointer-events: none;
}

/* ── Icon patterns per letter ─────────────────────────────────────── */
/* star – A */
.ph-icon-star::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='20,4 24.5,15.5 37,15.5 27,23 30.5,35 20,27 9.5,35 13,23 3,15.5 15.5,15.5' fill='white'/%3E%3C/svg%3E");
}
/* bolt – B, Y */
.ph-icon-bolt::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='24,2 10,22 19,22 16,38 30,16 21,16' fill='white'/%3E%3C/svg%3E");
}
/* target – C, T */
.ph-icon-target::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='20' cy='20' r='9' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='20' cy='20' r='3' fill='white'/%3E%3C/svg%3E");
}
/* diamond – D, V */
.ph-icon-diamond::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='20,3 36,20 20,37 4,20' fill='none' stroke='white' stroke-width='3'/%3E%3Cline x1='4' y1='20' x2='36' y2='20' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
}
/* bulb – E, U */
.ph-icon-bulb::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='15' r='11' fill='none' stroke='white' stroke-width='3'/%3E%3Crect x='15' y='26' width='10' height='6' rx='1' fill='white'/%3E%3Cline x1='16' y1='35' x2='24' y2='35' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* flame – F */
.ph-icon-flame::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 3C20 3 32 14 32 25C32 31 27 37 20 37C13 37 8 31 8 25C8 14 20 3 20 3Z' fill='none' stroke='white' stroke-width='3'/%3E%3Cpath d='M20 20C20 20 25 25 25 29C25 32 23 34 20 34C17 34 15 32 15 29C15 25 20 20 20 20Z' fill='white'/%3E%3C/svg%3E");
}
/* trophy – G */
.ph-icon-trophy::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M12 6L28 6L26 22C25 25 23 27 20 27C17 27 15 25 14 22Z' fill='none' stroke='white' stroke-width='3'/%3E%3Cline x1='20' y1='27' x2='20' y2='32' stroke='white' stroke-width='3'/%3E%3Cline x1='13' y1='35' x2='27' y2='35' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M12 8C8 8 6 10 6 13C6 16 9 17 12 15' fill='none' stroke='white' stroke-width='2.5'/%3E%3Cpath d='M28 8C32 8 34 10 34 13C34 16 31 17 28 15' fill='none' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E");
}
/* crown – H, W */
.ph-icon-crown::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='4,28 8,10 16,20 20,6 24,20 32,10 36,28' fill='none' stroke='white' stroke-width='3' stroke-linejoin='round'/%3E%3Crect x='4' y='28' width='32' height='5' rx='1' fill='white'/%3E%3C/svg%3E");
}
/* eye – I */
.ph-icon-eye::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M4 20C4 20 10 8 20 8C30 8 36 20 36 20C36 20 30 32 20 32C10 32 4 20 4 20Z' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='20' cy='20' r='5' fill='white'/%3E%3C/svg%3E");
}
/* question – J, Q */
.ph-icon-question::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M14 14C14 8 18 5 22 5C26 5 30 8 30 13C30 17 26 19 23 21C21 22 20 23 20 26' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='33' r='2.5' fill='white'/%3E%3C/svg%3E");
}
/* medal – K */
.ph-icon-medal::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='14,4 12,18 20,14 28,18 26,4' fill='white' opacity='0.5'/%3E%3Ccircle cx='20' cy='25' r='11' fill='none' stroke='white' stroke-width='3'/%3E%3Cpolygon points='20,18 22,23 27,23 23,26.5 24.5,32 20,28.5 15.5,32 17,26.5 13,23 18,23' fill='white'/%3E%3C/svg%3E");
}
/* search – L */
.ph-icon-search::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='17' cy='17' r='11' fill='none' stroke='white' stroke-width='3'/%3E%3Cline x1='25' y1='25' x2='35' y2='35' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* heart – M */
.ph-icon-heart::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 35L7 22C3 18 3 11 7 7C11 3 17 4 20 8C23 4 29 3 33 7C37 11 37 18 33 22Z' fill='white'/%3E%3C/svg%3E");
}
/* flag – N, Z */
.ph-icon-flag::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cline x1='8' y1='4' x2='8' y2='36' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M8 6L33 12L8 22Z' fill='white'/%3E%3C/svg%3E");
}
/* gear – O, X */
.ph-icon-gear::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='20' cy='20' r='2.5' fill='white'/%3E%3Cline x1='20' y1='2' x2='20' y2='10' stroke='white' stroke-width='4'/%3E%3Cline x1='20' y1='30' x2='20' y2='38' stroke='white' stroke-width='4'/%3E%3Cline x1='2' y1='20' x2='10' y2='20' stroke='white' stroke-width='4'/%3E%3Cline x1='30' y1='20' x2='38' y2='20' stroke='white' stroke-width='4'/%3E%3Cline x1='7.3' y1='7.3' x2='12.7' y2='12.7' stroke='white' stroke-width='4'/%3E%3Cline x1='27.3' y1='27.3' x2='32.7' y2='32.7' stroke='white' stroke-width='4'/%3E%3Cline x1='7.3' y1='32.7' x2='12.7' y2='27.3' stroke='white' stroke-width='4'/%3E%3Cline x1='27.3' y1='12.7' x2='32.7' y2='7.3' stroke='white' stroke-width='4'/%3E%3C/svg%3E");
}
/* check – P */
.ph-icon-check::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='white' stroke-width='3'/%3E%3Cpolyline points='12,20 18,27 28,13' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* rocket – R */
.ph-icon-rocket::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4C20 4 30 12 30 24L25 30L15 30L10 24C10 12 20 4 20 4Z' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='20' cy='18' r='3.5' fill='white'/%3E%3Cpath d='M10 24L4 32' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M30 24L36 32' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* shield – S */
.ph-icon-shield::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4L34 10L34 22C34 30 20 37 20 37C20 37 6 30 6 22L6 10Z' fill='none' stroke='white' stroke-width='3'/%3E%3Cpolyline points='14,20 18,25 26,15' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Title text overlay */
.ph-title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 12px 14px;
    text-transform: uppercase;
}

/* Tag badge on placeholder */
.ph-tag {
    display: inline-block;
    padding: 4px 16px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.15),
        inset 0 0 8px rgba(255, 255, 255, 0.08);
    animation: ph-tag-pulse 2.5s ease-in-out infinite;
    margin-bottom: 2px;
}

@keyframes ph-tag-pulse {
    0%, 100% { border-color: rgba(255,255,255,0.6); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { border-color: rgba(255,255,255,0.9); text-shadow: 0 0 16px rgba(255,255,255,0.8); }
}
.ph-line1 {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ph-line2 {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.12em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.blog-card-image--has-img {
    padding: 0;
    background: none;
}
.blog-card-image--has-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.blog-card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: auto;
}
.blog-card-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 12px;
    transition: opacity var(--transition);
}
.blog-card-link:hover { opacity: 0.7; }
.blog-no-articles {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 0;
    grid-column: 1 / -1;
}

/* ── Article Header ───────────────────────────────────────────────── */
.article-header {
    text-align: center;
    padding: calc(var(--nav-height) + 32px) 0 32px;
    position: relative;
    z-index: 1;
}
.article-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition);
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { color: var(--text-muted); }
.article-category-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 980px;
    color: #fff;
    margin-bottom: 12px;
}
.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 12px;
}
.article-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Article Hero Image ──────────────────────────────────────────── */
.article-hero {
    position: relative;
    max-width: 720px;
    margin: 32px auto 0;
    border-radius: 16px;
    overflow: hidden;
}
.article-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}
.article-hero:hover img {
    transform: scale(1.015);
}
.article-hero-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        var(--hero-accent),
        color-mix(in srgb, var(--hero-accent) 50%, #E8318A),
        var(--hero-accent)
    );
    opacity: 0.6;
    filter: blur(16px);
    z-index: 0;
    transition: opacity 0.4s ease;
}
.article-hero:hover .article-hero-glow {
    opacity: 0.85;
}
@media (max-width: 600px) {
    .article-hero {
        margin: 24px 16px 0;
        border-radius: 12px;
    }
    .article-hero img { border-radius: 12px; }
    .article-hero-glow { border-radius: 14px; }
}

/* ── Article Body — prose typography ──────────────────────────────── */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 48px;
    position: relative;
    z-index: 1;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text-primary);
}
.article-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.article-body ul, .article-body ol {
    margin: 0 0 18px 24px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 24px 0;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity var(--transition);
}
.article-body a:hover { opacity: 0.7; }
.article-body strong { color: var(--text-primary); }

/* ── Article CTA Block ────────────────────────────────────────────── */
.article-cta {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 28px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    z-index: 1;
}
.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.article-cta .btn-neon { font-size: 0.88rem; padding: 10px 24px; }

/* ── Article FAQ Accordion ────────────────────────────────────────── */
.article-faq {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.article-faq h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.article-faq details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
    overflow: hidden;
}
.article-faq summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: background var(--transition);
    list-style: none;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-weight: 700;
    color: var(--accent);
}
.article-faq details[open] summary::before { content: '\2212'; }
.article-faq details[open] summary { background: var(--bg-secondary); }
.article-faq .faq-answer {
    padding: 12px 18px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Article Related ──────────────────────────────────────────────── */
.article-related {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.article-related h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.article-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) {
    .article-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Blog Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero { padding-top: calc(var(--nav-height) + 24px); padding-bottom: 32px; }
    .article-header { padding-top: calc(var(--nav-height) + 20px); }
}
@media (max-width: 600px) {
    .blog-card-image { height: 120px; }
    .blog-card-body { padding: 16px; }
    .article-body { padding: 0 16px 32px; }
    .article-faq { padding: 0 16px; }
    .article-related { padding: 0 16px; }
    .article-cta { margin-left: 16px; margin-right: 16px; padding: 20px; }
}
