/* ═══════════════════════════════════════════════
   LW Hub — Styles
   ═══════════════════════════════════════════════ */

:root {
    --bg: #050507;
    --surface: #0e0e14;
    --surface-2: #151520;
    --glass: rgba(18, 18, 28, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --border: #1a1a28;
    --text: #eaeaf0;
    --text-muted: #55556a;
    --accent: #7c6cff;
    --accent-dim: rgba(124, 108, 255, 0.10);
    --accent-glow: rgba(124, 108, 255, 0.25);
    --green: #34d399;
    --yellow: #fbbf24;
    --radius: 18px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Glossy Nav (iOS 26 style) ─────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
}
.nav-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.03);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.nav-tab {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    background: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.active {
    background: rgba(124, 108, 255, 0.15);
    color: var(--text);
    box-shadow: 0 1px 8px rgba(124, 108, 255, 0.1);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.nav-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.nav-rank {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.nav-auth-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.nav-auth-links a {
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.link-login {
    color: var(--text-muted);
}
.link-login:hover { color: var(--text); }
.link-register {
    background: var(--accent);
    color: #fff;
}
.link-register:hover { background: #6b5ce7; }

/* ── Page ──────────────────────────────────── */
.page {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

/* ── Section Tabs Content ──────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; }

.section-header {
    margin: 2rem 0 1.25rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

/* ── User Card (wenn eingeloggt) ───────────── */
.user-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}
.user-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a78bfa, #818cf8);
    opacity: 0.6;
}
.user-avatar-lg {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.user-info h3 {
    font-size: 1rem;
    font-weight: 700;
}
.user-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.user-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Guest CTA */
.guest-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}
.guest-cta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.guest-cta p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.guest-cta-btns {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}
.cta-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.cta-primary {
    background: var(--accent);
    color: #fff;
}
.cta-primary:hover { background: #6b5ce7; transform: translateY(-1px); }
.cta-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.cta-secondary:hover { border-color: var(--accent-glow); color: var(--text); }

/* ── Card Grid ─────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,108,255,0.04), transparent 40%);
}
.card:hover::after { opacity: 1; }
.card:hover {
    border-color: rgba(124, 108, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card.disabled { opacity: 0.45; pointer-events: none; }
.card.playable { cursor: pointer; }
.card.playable:hover { border-color: rgba(52, 211, 153, 0.3); }

.card-icon { font-size: 2rem; line-height: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-name { font-size: 1rem; font-weight: 700; }
.card-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-live {
    background: rgba(52, 211, 153, 0.10);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge-wip {
    background: rgba(251, 191, 36, 0.10);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.badge-planned {
    background: rgba(85, 85, 106, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(85, 85, 106, 0.2);
}

/* ── Dev Banner ────────────────────────────── */
.dev-banner {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--yellow);
    text-align: center;
    margin-bottom: 1rem;
}

/* ── Footer ────────────────────────────────── */
footer {
    text-align: center;
    padding: 3rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 700px) {
    .nav-inner { padding: 0 1rem; height: 50px; }
    .nav-tabs { gap: 0.15rem; }
    .nav-tab { padding: 0.3rem 0.65rem; font-size: 0.72rem; }
    .nav-username { display: none; }
    .nav-rank { display: none; }
    .page { padding: 1rem 1rem 3rem; }
    .grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.2rem; }
    .user-card { flex-direction: column; text-align: center; }
    .user-meta { justify-content: center; }
    .guest-cta-btns { flex-direction: column; }
}
