/* ==========================================================================
   ALCO-TIER // GAMES HUB & ARCADE PORTAL CSS v1.0
   Dark Tactical Endfield Cyberpunk Theme
   ========================================================================== */

:root {
    --ef-yellow: #fffa00;
    --ef-amber: #f59e0b;
    --ef-cyan: #00d4ff;
    --ef-purple: #a855f7;
    --ef-green: #22c55e;
    --ef-red: #ff334b;
    --bg-dark: #07090d;
    --card-bg: #0d121c;
    --card-hover: #121824;
    --border-color: #1a2233;
    --border-light: rgba(255, 255, 255, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Unbounded', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Tactical Grid */
.tactical-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* 1. Header Navbar */
.hub-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.hub-logo-icon {
    color: var(--ef-yellow);
    font-size: 1.3rem;
}

.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-back:hover {
    background: rgba(255, 250, 0, 0.12);
    color: var(--ef-yellow);
    border-color: var(--ef-yellow);
}

.hub-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 4px;
    background: #0f1420;
    border: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}

/* 2. Main Wrapper */
.hub-main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

/* 3. Hero Header */
.hub-hero {
    text-align: center;
    margin-bottom: 40px;
}

.hub-hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ef-yellow);
    background: rgba(255, 250, 0, 0.08);
    border: 1px solid rgba(255, 250, 0, 0.3);
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hub-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hub-hero-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Secret Mode Banner */
.secret-access-banner {
    display: none;
    max-width: 740px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    padding: 12px 20px;
    animation: secretGlow 3s infinite alternate ease-in-out;
}

.secret-access-banner.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@keyframes secretGlow {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.35); }
}

.secret-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secret-banner-icon {
    font-size: 1.8rem;
}

.secret-banner-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.secret-banner-sub {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.secret-badge-chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
    background: #ffd700;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 4. Games Grid */
.hub-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* 5. Game Card */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 250, 0, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 250, 0, 0.1);
    background: var(--card-hover);
}

.game-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.game-card-icon {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.game-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.game-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge.primary {
    background: rgba(255, 250, 0, 0.15);
    color: var(--ef-yellow);
    border: 1px solid rgba(255, 250, 0, 0.4);
}

.game-badge.accent {
    background: rgba(6, 182, 212, 0.15);
    color: var(--ef-cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.game-badge.default {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid var(--border-light);
}

.game-badge.secret {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.game-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.game-card-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748b;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card-meta strong {
    color: var(--ef-yellow);
}

.btn-play-game {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--ef-yellow);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(255, 250, 0, 0.3);
}

.btn-play-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 250, 0, 0.5);
    background: #fff;
}

/* Secret Special Card */
.game-card.secret-card {
    border-color: rgba(255, 215, 0, 0.45);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(168, 85, 247, 0.05) 50%, #0d121c 100%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 215, 0, 0.15);
}

.game-card.secret-card:hover {
    border-color: #ffd700;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 215, 0, 0.35);
}

.game-card.secret-card .btn-play-game {
    background: linear-gradient(90deg, #ffd700 0%, #f59e0b 100%);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.game-card.secret-card .btn-play-game:hover {
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
    background: #fff;
}

/* Placeholder Card (Coming Soon / Expandable) */
.game-card.placeholder-card {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    background: rgba(13, 18, 28, 0.4);
    box-shadow: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.game-card.placeholder-card:hover {
    border-color: var(--border-light);
    transform: none;
    background: rgba(13, 18, 28, 0.6);
}

.placeholder-icon {
    font-size: 2.2rem;
    color: #475569;
    margin-bottom: 12px;
}

.placeholder-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.placeholder-desc {
    font-size: 0.8rem;
    color: #475569;
    max-width: 240px;
    line-height: 1.4;
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .hub-navbar {
        padding: 10px 16px;
    }
    .hub-hero-title {
        font-size: 1.8rem;
    }
    .hub-games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .secret-access-banner.active {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
