:root {
    --bg-body: #050506;
    --bg-card: #0b0c0d;
    --bg-panel: #111214;
    --text-main: #ffffff;
    --text-sub: #949ba4;
    --divider-color: #1f2023;
    --status-offline: #80848e;
    --btn-hover: #1e1f22;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-panel);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b2d31;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

.profile-container {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    width: 100%;
    justify-content: center;
}

.categories-panel {
    background-color: var(--bg-panel);
    width: 0;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    display: flex;
    flex-direction: column;
    box-shadow: -4px 8px 24px rgba(0,0,0,0.5);
}

.profile-container.expanded .categories-panel {
    width: 200px;
}

.profile-container.expanded .discord-card {
    border-radius: 0 12px 12px 0;
}

.panel-header {
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-sub);
    border-bottom: 1px solid var(--divider-color);
}

.panel-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-item {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-sub);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.category-item i {
    margin-right: 8px;
    width: 16px;
}

.category-item:hover, .category-item.active {
    background-color: var(--btn-hover);
    color: var(--text-main);
}

.discord-card {
    background-color: var(--bg-card);
    width: 340px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
    position: relative;
}

.banner {
    height: 120px;
    background-image: url('assets/banner.webp'); 
    background-size: cover; 
    background-position: center; 
    position: relative;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-header {
    padding: 0 16px;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.pfp-container {
    position: relative;
    width: 92px;
    height: 92px;
    margin-top: -46px;
    border-radius: 50%;
    background-color: var(--bg-card);
    padding: 6px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--status-offline); 
    border: 4px solid var(--bg-card);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Nombre de usuario en el Nav (Oculto por defecto en el Inicio) */
.nav-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    pointer-events: none;
}

/* --- ESTADOS EN MODO COMPRIMIDO (OTRAS CATEGORÍAS) --- */
.discord-card.compressed .banner {
    height: 54px;
}

.discord-card.compressed .profile-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    padding: 0 12px;
    z-index: 12;
}

.discord-card.compressed .pfp-container {
    position: absolute;
    left: 54px; 
    top: 10px;
    margin-top: 0;
    width: 34px;
    height: 34px;
    padding: 2px;
}

.discord-card.compressed .status-indicator {
    width: 10px;
    height: 10px;
    border-width: 2px;
    bottom: 0px;
    right: 0px;
}

/* Mostrar el nombre a la derecha de la PFP de forma limpia */
.discord-card.compressed .nav-username {
    position: absolute;
    left: 96px; 
    top: 17px;
    opacity: 1;
    transform: translateX(0);
}

/* Botones Superiores */
.banner-btn {
    position: absolute;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #000000;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.2s;
    z-index: 15;
}

.banner-btn:hover {
    background-color: #1a1b1c;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

.btn-left { left: 12px; }
.btn-right { right: 12px; }

.profile-container.expanded #toggle-icon {
    transform: rotate(180deg);
}
#toggle-icon {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}