/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
    --bg-deep: #050507;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-inner: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-lt: rgba(255, 255, 255, 0.05);
    --text-primary: #e8e8ed;
    --text-secondary: rgba(232, 232, 237, 0.50);
    --text-muted: rgba(232, 232, 237, 0.28);
    --red: #ed4245;
    --red-glow: rgba(237, 66, 69, 0.30);
    --red-soft: rgba(237, 66, 69, 0.12);
    --vscode-blue: #007acc;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --blur-heavy: 15px;
    --card-radius: 16px;
    --inner-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════
   ENTER SCREEN
   ═══════════════════════════════════════════════════════════ */
.enter-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-screen__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.enter-screen__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    animation: enterPulse 2s ease-in-out infinite;
}

@keyframes enterPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }
}

.enter-screen__text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.enter-screen__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-deep);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: brightness(0.6);
}

.overlay--gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, var(--bg-deep) 80%),
        linear-gradient(to bottom, rgba(5, 5, 7, 0.6) 0%, transparent 35%, transparent 65%, rgba(5, 5, 7, 0.8) 100%);
    pointer-events: none;
}

.overlay--noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.overlay--vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 250px 80px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING PARTICLES (snow / dust)
   ═══════════════════════════════════════════════════════════ */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    animation: snowFall var(--d) linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes snowFall {
    0% {
        transform: translateY(-20px) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: var(--o);
    }

    90% {
        opacity: var(--o);
    }

    100% {
        transform: translateY(100vh) translateX(var(--drift));
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   DECORATIVE ICON (top-left cat)
   ═══════════════════════════════════════════════════════════ */
.deco-icon {
    position: fixed;
    top: 2rem;
    left: 2.5rem;
    z-index: 20;
    color: rgba(255, 255, 255, 0.35);
    animation: floatCat 4s ease-in-out infinite;
}

@keyframes floatCat {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO LAYOUT
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   BIO CARD — Main glass container
   ═══════════════════════════════════════════════════════════ */
.bio-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 700px;
    border-radius: var(--card-radius);

    /* Liquid Glass */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-heavy)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(1.2);
    border: 1px solid var(--glass-border);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 12px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Entrance + Float */
    animation: cardIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        cardFloat 4s ease-in-out 1s infinite;
    opacity: 0;
    transform: translateY(30px) scale(0.97);

    overflow: hidden;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ═══════════════════════════════════════════════════════════
   LEFT PANEL
   ═══════════════════════════════════════════════════════════ */
.bio-card__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    min-width: 200px;
    border-right: 1px solid var(--glass-border-lt);
    text-align: center;
}

/* ─── Avatar ─── */
.avatar-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 0;
    background: none;
    box-shadow: none;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0d0d0f;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
    filter: grayscale(0.3) brightness(0.9);
}

.avatar:hover img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(1);
}

/* Status dot */
.avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
}

.avatar-status--dnd {
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

/* ─── Name ─── */
.username {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.handle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

/* ─── Status Badge ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge--dnd {
    background: var(--red-soft);
    border: 1px solid rgba(237, 66, 69, 0.25);
    color: var(--red);
}

.status-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL
   ═══════════════════════════════════════════════════════════ */
.bio-card__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    gap: 1rem;
}

/* ─── Activity Section ─── */
.activity-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.activity-header svg {
    opacity: 0.6;
}

.activity-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--inner-radius);
    background: var(--glass-bg-inner);
    border: 1px solid var(--glass-border-lt);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    background: var(--vscode-blue);
    color: #fff;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.activity-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.activity-detail {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Social Row ─── */
.social-row {
    display: flex;
    gap: 0.55rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--inner-radius);
    background: var(--glass-bg-inner);
    border: 1px solid var(--glass-border-lt);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ─── View Counter ─── */
.view-counter {
    margin-top: auto;
}

.view-counter__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--inner-radius);
    background: var(--glass-bg-inner);
    border: 1px solid var(--glass-border-lt);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.view-counter__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.view-counter__number {
    letter-spacing: 0.04em;
}

.view-counter svg {
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   SOUND TOGGLE
   ═══════════════════════════════════════════════════════════ */
.sound-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    .bio-card {
        flex-direction: column;
        max-width: 380px;
    }

    .bio-card__left {
        border-right: none;
        border-bottom: 1px solid var(--glass-border-lt);
        padding: 1.75rem 1.5rem 1.5rem;
        min-width: unset;
    }

    .bio-card__right {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .avatar-ring {
        width: 90px;
        height: 90px;
    }

    .username {
        font-size: 1.15rem;
    }

    .activity-detail {
        white-space: normal;
    }
}

@media (max-width: 400px) {
    .bio-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .bio-card__left {
        padding: 1.25rem 1rem 1rem;
    }

    .bio-card__right {
        padding: 1rem;
    }

    .social-btn {
        width: 38px;
        height: 38px;
    }

    .deco-icon {
        top: 1rem;
        left: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}