/* ─────────────────────────────────────────────
   Team Hub — Landing Styles
   ───────────────────────────────────────────── */

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8ed;
    --text-muted: #a3a6aa;
    --accent-purple: #9d00ff;
    --accent-cyan: #00e5ff;
    --accent-red: #eb455f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted);
}

.text-purple {
    color: var(--accent-purple);
}

/* Ambient BG */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ambient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.sphere-cyan {
    background: var(--accent-cyan);
    top: -10%;
    left: -10%;
}

.sphere-purple {
    background: var(--accent-purple);
    bottom: -10%;
    right: -10%;
}

/* Layout */
.hub-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: flex;
    flex-direction: column;
}

.hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.logo i {
    font-size: 1.2rem;
    margin-right: 6px;
}

.hub-title {
    font-size: 2.6rem;
    margin: 0 0 8px 0;
    font-weight: 800;
}

.hub-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
}

.hub-loading {
    text-align: center;
    padding: 60px 24px;
}

.hub-forbidden {
    text-align: center;
    padding: 60px 30px;
}

.hub-forbidden h2 {
    margin: 12px 0 0 0;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.link-muted {
    color: var(--text-muted);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--text-primary);
}

/* ── Kacheln ───────────────────────────────────── */
.hub-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    flex: 1;
}

.hub-tile {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 32px 28px;
    border-radius: 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s,
        border-color 0.25s;
}

.hub-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.15;
    transition: opacity 0.25s;
    pointer-events: none;
}

.hub-tile:hover {
    transform: translateY(-4px);
}

.hub-tile:hover::before {
    opacity: 0.45;
}

.tile-cyan:hover {
    box-shadow: 0 16px 50px rgba(0, 229, 255, 0.25);
}

.tile-purple:hover {
    box-shadow: 0 16px 50px rgba(157, 0, 255, 0.25);
}

.tile-green:hover {
    box-shadow: 0 16px 50px rgba(46, 213, 115, 0.25);
}

.tile-amber:hover {
    box-shadow: 0 16px 50px rgba(240, 192, 64, 0.25);
}

.tile-icon {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.tile-cyan .tile-icon {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.12);
}

.tile-purple .tile-icon {
    color: var(--accent-purple);
    background: rgba(157, 0, 255, 0.12);
}

.tile-green .tile-icon {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.12);
}

.tile-amber .tile-icon {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.12);
}

.tile-body {
    flex: 1;
    min-width: 0;
}

.tile-body h2 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.tile-body p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.tile-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.25s, color 0.25s;
}

.hub-tile:hover .tile-arrow {
    transform: translateX(6px);
    color: var(--text-primary);
}

/* ── Expand-Animation ──────────────────────────── */
@keyframes hub-tile-expand {
    from {
        transform: scale(1);
        border-radius: 18px;
        opacity: 1;
    }

    to {
        transform: scale(20);
        border-radius: 0;
        opacity: 0;
    }
}

@keyframes hub-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.hub-tile.entering {
    animation: hub-tile-expand 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    pointer-events: none;
}

.hub-wrap.exiting::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    animation: hub-fade-out 0.5s ease-out forwards;
}

/* Footer */
.hub-footer {
    display: flex;
    align-items: center;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.hub-footer i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 700px) {
    .hub-tiles {
        grid-template-columns: 1fr;
    }

    .hub-title {
        font-size: 2rem;
    }

    .hub-tile {
        padding: 24px 20px;
    }

    .tile-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }

    .tile-body h2 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-tile {
        transition: none;
    }

    .hub-tile:hover {
        transform: none;
    }

    .hub-tile.entering {
        animation: none;
    }
}