/* ==========================================================================
   PREMIUM GLASSMORPHIC & NEON GAMES COLLECTION STYLESHEET
   ========================================================================== */

:root {
    --bg-primary: #f8fafc;
    --bg-gradient: radial-gradient(900px 450px at 12% -5%, rgba(99, 102, 241, 0.08), transparent 70%), linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    --panel-bg: rgba(255, 255, 255, 0.65);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(226, 232, 240, 0.8);
    --primary-color: #2563eb;
    --accent-color: #3b82f6;
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
    --neon-glow: 0 0 10px rgba(37, 99, 235, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 14px;
}

[data-theme="dark"] {
    --bg-primary: #070f1d;
    --bg-gradient: radial-gradient(900px 450px at 12% -5%, rgba(79, 140, 255, 0.25), transparent 70%), linear-gradient(180deg, #070f1d 0%, #0b1220 55%, #070f1d 100%);
    --panel-bg: rgba(17, 26, 44, 0.75);
    --text-primary: #e6eefc;
    --text-secondary: #a9bddf;
    --border-color: rgba(36, 54, 85, 0.6);
    --primary-color: #4f8cff;
    --accent-color: #a855f7;
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.35);
    --neon-glow: 0 0 15px rgba(79, 140, 255, 0.25);
}

/* Ensure body dark theme gets set correctly since layout.js adds data-theme="dark" to html element */
html[data-theme="dark"] body {
    background: var(--bg-gradient);
    color: var(--text-primary);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    padding: 3rem 0 2rem;
}

.eyebrow {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

[data-theme="dark"] .eyebrow {
    background: rgba(79, 140, 255, 0.13);
    color: #bfd6ff;
}

.hero h1 {
    margin: 0.75rem 0 0.5rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-weight: 800;
}

.hero p {
    color: var(--text-secondary);
    max-width: 65ch;
    font-size: 1.05rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), var(--neon-glow);
}

[data-theme="dark"] .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--neon-glow);
}

.card h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    font-size: 0.95rem;
}

.chip {
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(79, 140, 255, 0.2);
    background: rgba(79, 140, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-block;
    align-self: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
    filter: brightness(1.08);
}
