/* ============================================================
   homepage_new.css — Synthwave / Retro 80s Arcade Home
   Copyright © Martin Gregson and Chris Bronz, March 16, 2026.
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.retro-body {
    background: #07071a;
    color: #e0e0ff;
    font-family: 'Orbitron', 'Arial', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Suppress header.php injected elements on this page ──── */
/* .arcade-bg is a position:fixed full-screen overlay with the old arcade   */
/* background image — hide it so the synthwave design shows through.        */
body.retro-body .arcade-bg      { display: none !important; }
/* Logo splash fires on every page visit — not needed on a standalone page  */
body.retro-body #logoSplash     { display: none !important; }

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 60%, #1a0033 0%, #07071a 70%);
    padding: 80px 20px 60px;
}

/* Perspective neon grid floor */
.grid-floor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 55%;
    background-image:
        linear-gradient(to bottom, transparent 0%, rgba(0,255,231,0.08) 100%),
        repeating-linear-gradient(90deg, rgba(0,255,231,0.18) 0px, transparent 1px, transparent 60px, rgba(0,255,231,0.18) 61px),
        repeating-linear-gradient(180deg, rgba(255,0,200,0.18) 0px, transparent 1px, transparent 40px, rgba(255,0,200,0.18) 41px);
    transform-origin: bottom center;
    transform: translateX(-50%) perspective(400px) rotateX(55deg);
    animation: gridPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes gridPulse {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* Horizon glow line */
.hero::before {
    content: '';
    position: absolute;
    bottom: 45%;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffe7, #ff00c8, #00ffe7, transparent);
    box-shadow: 0 0 20px #00ffe7, 0 0 40px #ff00c8;
    animation: horizonGlow 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes horizonGlow {
    from { opacity: 0.6; box-shadow: 0 0 15px #00ffe7, 0 0 30px #ff00c8; }
    to   { opacity: 1;   box-shadow: 0 0 30px #00ffe7, 0 0 60px #ff00c8; }
}

/* Floating neon shapes */
.shapes-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape {
    position: absolute;
    opacity: 0.55;
    animation: floatShape linear infinite;
}

.shape-triangle {
    width: 0; height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 48px solid transparent;
    border-bottom-color: transparent;
    outline: none;
    filter: drop-shadow(0 0 8px #00ffe7);
    /* Use outline trick for hollow triangle */
    background: transparent;
    top: 20%; left: 8%;
    animation-duration: 14s;
    animation-delay: 0s;
}
/* Neon outline triangles via CSS clip-path */
.shape-triangle,
.shape-triangle2 {
    width: 50px; height: 50px;
    background: transparent;
    border: 2px solid #00ffe7;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 0 6px #00ffe7) drop-shadow(0 0 12px #00ffe7);
}
.shape-triangle  { top: 18%; left: 7%;  animation-duration: 16s; animation-delay: -3s; }
.shape-triangle2 { top: 65%; left: 85%; width: 35px; height: 35px; border-color: #ff00c8; filter: drop-shadow(0 0 8px #ff00c8); animation-duration: 12s; animation-delay: -7s; }

.shape-circle,
.shape-circle2 {
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ff00c8;
    filter: drop-shadow(0 0 8px #ff00c8) drop-shadow(0 0 16px #ff00c8);
}
.shape-circle  { width: 60px; height: 60px; top: 55%; left: 12%; animation-duration: 18s; animation-delay: -5s; }
.shape-circle2 { width: 40px; height: 40px; top: 25%; left: 80%; border-color: #ffe700; filter: drop-shadow(0 0 8px #ffe700); animation-duration: 11s; animation-delay: -2s; }

.shape-square {
    width: 36px; height: 36px;
    background: transparent;
    border: 2px solid #a855f7;
    filter: drop-shadow(0 0 8px #a855f7) drop-shadow(0 0 16px #a855f7);
    top: 40%; left: 88%;
    animation-duration: 20s; animation-delay: -9s;
}

.shape-diamond {
    width: 32px; height: 32px;
    background: transparent;
    border: 2px solid #00ffe7;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 6px #00ffe7);
    top: 70%; left: 55%;
    animation-duration: 15s; animation-delay: -4s;
}

@keyframes floatShape {
    0%   { transform: translateY(0)   rotate(0deg);   opacity: 0.4; }
    25%  { transform: translateY(-22px) rotate(5deg);  opacity: 0.7; }
    50%  { transform: translateY(-8px)  rotate(-3deg); opacity: 0.55; }
    75%  { transform: translateY(-28px) rotate(8deg);  opacity: 0.7; }
    100% { transform: translateY(0)   rotate(0deg);   opacity: 0.4; }
}

/* Scanlines overlay */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.12) 3px,
        rgba(0,0,0,0.12) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 720px;
}

.hero-greeting {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #00ffe7;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    text-shadow: 0 0 10px #00ffe7;
    animation: flicker 5s infinite;
}

.neon-name {
    color: #ffe700;
    text-shadow: 0 0 10px #ffe700, 0 0 20px #ffe700;
}

@keyframes flicker {
    0%, 93%, 95%, 100% { opacity: 1; }
    94%                { opacity: 0.6; }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.title-mr   { color: #00ffe7; text-shadow: 0 0 15px #00ffe7, 0 0 30px #00ffe7; }
.title-bronz{ color: #ffffff; text-shadow: 0 0 15px #fff, 0 0 30px rgba(255,255,255,0.5); }
.title-dot  { color: #ff00c8; text-shadow: 0 0 15px #ff00c8; }
.title-uk   { color: #ff00c8; text-shadow: 0 0 15px #ff00c8, 0 0 30px #ff00c8; }

.hero-tagline {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.45rem, 1.5vw, 0.65rem);
    color: #a855f7;
    letter-spacing: 0.25em;
    margin-bottom: 28px;
    text-shadow: 0 0 8px #a855f7;
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num  { font-size: 1.8rem; font-weight: 900; color: #ffe700; text-shadow: 0 0 12px #ffe700; line-height: 1; }
.stat-label{ font-family: 'Press Start 2P', monospace; font-size: 0.38rem; color: #a0a0c0; letter-spacing: 0.2em; }
.stat-sep  { font-size: 1.4rem; color: #3a3a6a; }

/* CTA buttons */
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-cta {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #00ffe7, #00b3a0);
    color: #07071a;
    border-color: #00ffe7;
    box-shadow: 0 0 20px rgba(0,255,231,0.5), inset 0 0 10px rgba(0,255,231,0.1);
}
.btn-primary:hover {
    background: #00ffe7;
    box-shadow: 0 0 35px rgba(0,255,231,0.9), 0 0 60px rgba(0,255,231,0.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: #ff00c8;
    border-color: #ff00c8;
    box-shadow: 0 0 15px rgba(255,0,200,0.3);
}
.btn-secondary:hover {
    background: rgba(255,0,200,0.15);
    box-shadow: 0 0 30px rgba(255,0,200,0.7);
    transform: translateY(-2px);
}

/* ── GAME SECTION ─────────────────────────────────────────── */
.game-section {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

.section-header { text-align: center; margin-bottom: 36px; }

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: #00ffe7;
    text-shadow: 0 0 12px #00ffe7, 0 0 24px rgba(0,255,231,0.4);
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.section-subtitle { color: #8080b0; font-size: 0.85rem; }

.neon-link { color: #ff00c8; text-decoration: none; text-shadow: 0 0 8px #ff00c8; }
.neon-link:hover { text-shadow: 0 0 16px #ff00c8; }

/* ── Neon divider above game section ─────────────────────── */
.game-section::before {
    content: '';
    display: block;
    height: 2px;
    margin-bottom: 48px;
    background: linear-gradient(90deg, transparent 0%, #00ffe7 30%, #ff00c8 70%, transparent 100%);
    box-shadow: 0 0 12px #00ffe7, 0 0 24px #ff00c8;
}
.game-section { padding-top: 0; }

/* Game grid */
.neon-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.neon-game-grid.locked .game-card { opacity: 0.45; pointer-events: none; }
.neon-game-grid.locked .game-card:hover { transform: none; }

/* Game cards */
.game-card {
    position: relative;
    background: #0d0d2b;
    border: 1px solid rgba(0,255,231,0.25);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
    /* Neon top accent line */
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffe7, #ff00c8);
    opacity: 0.5;
    transition: opacity 0.22s ease;
    z-index: 3;
}
.game-card:hover::before { opacity: 1; }
.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0,255,231,0.7);
    box-shadow: 0 8px 32px rgba(0,255,231,0.25), 0 2px 8px rgba(0,0,0,0.6);
}
.game-card a { display: block; text-decoration: none; color: inherit; }

/* Original card proportion */
.game-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    background: #08082a;
}
.game-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.game-card:hover .game-thumb { transform: scale(1.1); }

/* Full overlay on hover (play button) */
.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.25s ease, opacity 0.25s ease;
    z-index: 2;
}
.game-card:hover .game-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.45);
}

.play-icon {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #fff;
    background: rgba(0,255,231,0.2);
    border: 1px solid #00ffe7;
    padding: 8px 14px;
    border-radius: 4px;
    text-shadow: 0 0 10px #00ffe7;
    box-shadow: 0 0 16px rgba(0,255,231,0.4);
    letter-spacing: 0.12em;
    backdrop-filter: blur(4px);
}

/* Badges */
.badge {
    position: absolute;
    top: 7px;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 3px;
    line-height: 1;
    z-index: 3;
    backdrop-filter: blur(4px);
}
.badge-mobile { right: 8px;  background: rgba(0,255,231,0.15); border: 1px solid rgba(0,255,231,0.6); color: #00ffe7; }
.badge-pc     { right: 44px; background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.6); color: #a855f7; }
.badge-free   { left: 8px; right: auto; background: rgba(0,255,100,0.2); border: 1px solid rgba(0,255,100,0.7); color: #00ff64; font-weight: 700; }

/* Locked game cards for free-tier users */
.game-card.game-locked { opacity: 0.4; }
.game-card.game-locked:hover { opacity: 0.7; }
.game-card.game-locked .game-thumb { filter: grayscale(0.6); }

/* Title inside card — tight strip at the very bottom only */
.game-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 10px 7px;
    background: linear-gradient(to top, rgba(5,5,20,0.97) 0%, rgba(5,5,20,0.85) 40%, transparent 100%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #e8e8ff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.05em;
    z-index: 2;
}

.game-missing { opacity: 0.35 !important; filter: grayscale(60%); }
.no-games { text-align: center; color: #ff5555; font-size: 0.9rem; padding: 40px; }

/* Lock banner */
.lock-banner {
    margin-top: 32px;
    text-align: center;
    padding: 18px 24px;
    background: rgba(255,0,200,0.08);
    border: 1px solid rgba(255,0,200,0.3);
    border-radius: 6px;
    color: #c080c0;
    font-size: 0.9rem;
}
.lock-banner a { color: #ff00c8; font-weight: bold; }

/* ── FOOTER ───────────────────────────────────────────────── */
.retro-footer {
    text-align: center;
    padding: 20px;
    color: #40405a;
    font-size: 0.75rem;
    border-top: 1px solid rgba(0,255,231,0.08);
}

/* ── MISSION STATEMENT ─────────────────────────────────────── */
.mission-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0,255,231,0.03), transparent);
}
.mission-content {
    max-width: 760px;
    margin: 0 auto;
}
.mission-title {
    font-family: 'Orbitron', sans-serif;
    color: #00ffe7;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-shadow: 0 0 18px rgba(0,255,231,0.5);
}
.mission-text {
    color: #bbb;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.05em;
    line-height: 1.8;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero { min-height: auto; padding: 56px 16px 20px; }
    .hero-greeting { margin-bottom: 8px; }
    .hero-tagline { margin-bottom: 16px; }
    .hero-stats { gap: 8px; margin-bottom: 18px; }
    .stat-num { font-size: 1.3rem; }
    .btn-cta { font-size: 0.55rem; padding: 12px 18px; }
    .game-section { padding: 0 12px 40px; }
    .game-section::before { margin-bottom: 24px; }
    .section-header { margin-bottom: 18px; }
    .neon-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .game-title { font-size: 0.58rem; padding: 14px 6px 5px; }
}

@media (max-width: 380px) {
    /* Very small phones — still 2 cols but tighter */
    .neon-game-grid { gap: 8px; }
    .game-section { padding-left: 8px; padding-right: 8px; }
}
