/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E FONTES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* ==========================================================================
   2. VÍDEO DE FUNDO ANIMADO
   ========================================================================== */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;       
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1; 
    pointer-events: none;
}

.profile-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 40px 20px;
    text-align: center;
    margin: 0 auto;
}

/* ==========================================================================
   3. AVATAR E DECORAÇÃO
   ========================================================================== */
.avatar-glow-wrapper {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 85, 255, 0.25), 0 0 30px rgba(255, 102, 0, 0.25);
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glow-wrapper #main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-decoration {
    position: absolute;
    top: -5.5%;   
    left: -5.5%;  
    width: 111%;  
    height: 111%;
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen; 
}

/* ==========================================================================
   4. TEXTOS
   ========================================================================== */
.main-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-subquote {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.5;
    padding: 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ==========================================================================
   5. CARD DO DISCORD E CONTAINER DE BADGES
   ========================================================================== */
.discord-presence-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.discord-avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
}

#discord-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(20, 20, 20, 0.9);
}

.status-dot.online { background-color: #23a55a; }
.status-dot.idle { background-color: #f0b232; }
.status-dot.dnd { background-color: #f23f43; }
.status-dot.offline { background-color: #80848e; }

.discord-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.discord-header-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.discord-username {
    font-weight: 600;
    font-size: 1.1rem;
}

.badges-container {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    margin-left: 8px !important;
}

.discord-badge-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: inline-block !important;
    object-fit: contain !important;
}

.discord-activity-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   6. REDES SOCIAIS
   ========================================================================== */
.social-links-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-icon-btn {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    text-decoration: none;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   7. CONTADOR E PLAYER DE MÚSICA
   ========================================================================== */
.visitor-counter {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
}

.music-player-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(8px);
}

.music-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.music-btn.playing {
    background: #fff;
    color: #000;
}

.music-status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   8. MENU LATERAL RETRÁTIL (NOVO)
   ========================================================================== */
.sidebar-toggle-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.sidebar-panel {
    position: fixed;
    top: 0;
    left: -260px; /* Começa escondido para a esquerda */
    width: 260px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.75);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1); /* Animação suave */
}

/* Classe ativada pelo JS para abrir o menu */
.sidebar-panel.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close-btn:hover {
    color: #fff;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0);
    transition: all 0.2s ease;
}

.sidebar-links li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-links li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px; /* Efeito discreto de avanço */
}