/* Variables de color */
:root {
    --main-color: #000000;
    --text-color: #fff;
    --light-color: #b9bbbe;
    --bg-color: #36393f;
}

/* Header y menú móvil */
.nsfw-header {
    background: linear-gradient(135deg, #0404ff 0%, var(--bg-color) 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo y NSFW badge */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}

.nsfw-badge {
    background-color: #ff0000;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.btn-menu:hover {
    color: var(--main-color);
}

/* Estilos para el menú móvil */
@media (max-width: 768px) {
    .btn-menu {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2d2d42 0%, var(--bg-color) 100%);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        display: none;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: left;
        display: block;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .header-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        align-items: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nsfw-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }

    .user-info {
        cursor: pointer;
    }

    .user-name, .vip-badge {
        display: none;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .user-dropdown {
        position: fixed;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0 0 12px 12px;
        display: none;
        background: var(--dark-bg);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        padding: 12px 0;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    .user-dropdown::before {
        content: '';
        position: absolute;
        top: -10px;
        right: 10px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--dark-bg);
    }

    .user-info:active .user-dropdown {
        display: block;
    }

    .header-content {
        justify-content: space-between;
    }

    .logo-container {
        flex: 1;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .btn-menu {
        display: flex;
        align-items: center;
    }
}

/* Estilos para el usuario y avatar */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4d6d;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.vip-badge {
    background-color: #f47fff;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.login-btn, .logout-btn {
    background-color: #ff4d6d;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.login-btn:hover, .logout-btn:hover {
    background-color: #811226;
}

/* Animaciones */
.main-nav {
    transition: all 0.3s ease;
}

.main-nav.active {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ... (mantén todo lo anterior hasta .user-info) ... */

/* Estilos para el dropdown del usuario en PC */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #16213fe1;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    display: none;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.user-info:hover .user-dropdown {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 12px;
    border-bottom: 1px solid rgba(47, 0, 255, 0.1);
    margin-bottom: 8px;
}

.dropdown-header .user-avatar {
    width: 48px;
    height: 48px;
}

.user-details {
    flex: 1;
}

.user-tag {
    color: var(--light-color);
    font-size: 0.8rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 54, 248, 0.1);
}

.dropdown-divider {
    height: 1px;
    background-color: rgb(255, 0, 0);
    margin: 8px 0;
}

.logout-btn {
    background-color: transparent;
    color: #f04747;
    justify-content: center;
    padding: 12px;
    width: 100%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modo móvil */
@media (max-width: 768px) {
    /* ... (mantén los estilos móviles existentes) ... */
    
    .user-info:hover .user-dropdown {
        display: none;
    }
    
    .user-dropdown {
        position: fixed;
        width: 100%;
        border-radius: 0;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .user-dropdown::before {
        display: none;
    }
}