/* ════════════════════════════════════════
   PROFILE.CSS — Profile, Avatar, Stats, Bio
   ════════════════════════════════════════ */

/* TOP BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--neon-cyan);
    opacity: 0.7;
    margin-bottom: 30px;
    animation: fadeSlideDown 0.5s ease both;
}

.top-bar .blink {
    animation: blink 1s step-end infinite;
}

.top-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    transition: all 0.4s;
}

.top-status.online {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
    animation: blink 1s step-end infinite;
}

.top-status.offline {
    color: var(--neon-red);
    text-shadow: 0 0 8px var(--neon-red);
}

/* PROFILE SECTION */
.profile {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeSlideDown 0.6s ease 0.1s both;
}

/* AVATAR */
.avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
    z-index: 1;
}

.avatar-wrap::before,
.avatar-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

.avatar-wrap::before {
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid transparent;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-pink);
    z-index: -1;
}

.avatar-wrap::after {
    top: -12px; left: -12px; right: -12px; bottom: -12px;
    border: 1px solid transparent;
    border-left-color: var(--neon-yellow);
    border-right-color: var(--neon-green);
    animation-direction: reverse;
    animation-duration: 6s;
    z-index: -1;
}

.avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--dark-bg);
    filter: saturate(1.2) contrast(1.1);
}

/* STATUS BADGE */
.badge {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
    transition: background 0.4s, box-shadow 0.4s;
    font-size: 0;
    z-index: 10;
}

.badge.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse-green 2s ease infinite;
}

.badge.offline {
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
    animation: none;
}

/* PLAYER TAG */
.player-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--neon-yellow);
    background: rgba(255, 214, 10, 0.1);
    border: 1px solid rgba(255, 214, 10, 0.3);
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* ── Toast ── */
.toast {
    position: fixed;
    top: 80px;
    right: 40px;
    left: auto;
    transform: translateY(-20px);
    
    background: rgba(0,0,0,0.8);
    color: #ffd60a;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;

    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 214, 10, 0.4);

    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* NAME */
.name {
    font-family: 'Orbitron', monospace;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: inline-block;
    animation: glitch 4s ease infinite;
}

/* STATS ROW */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 14px 0;
}

.stat-box {
    text-align: center;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 70px;
}

.stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-label {
    font-size: 10px;
    color: #ffffff66;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* BIO */
.bio {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffffaa;
    max-width: 300px;
    margin: 12px auto 0;
}

.bio .highlight {
    color: var(--neon-yellow);
    font-weight: 700;
}

/* KBD TAG */
kbd {
    display: inline-block;
    padding: 3.5px 8px;
    border: 0.5px solid var(--neon-cyan);
    border-radius: 20px;
    font-family: sans-serif;
    font-size: 12px;
    color: var(--neon-cyan);
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}
