/* =========================================
   Radio Beats 2026 - Auth & User Styles
   ========================================= */

/* =========================================
   USER AREA (Header)
   ========================================= */
.user-area {
    display: flex;
    align-items: center;
}

.user-logged-out {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-register {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* User Info (logged in) */
.user-logged-in {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-xp {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.user-info i {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-info.open i {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-card);
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-menu a:hover {
    background: var(--bg-secondary);
}

.user-menu a i {
    width: 20px;
    text-align: center;
    color: var(--accent-primary);
}

/* =========================================
   AUTH MODAL
   ========================================= */
.auth-modal {
    background: var(--bg-card);
    border-radius: 25px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    height: 50px;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-header p strong {
    color: var(--accent-primary);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form .form-group label i {
    margin-right: 8px;
    color: var(--accent-primary);
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auth-form .form-group input::placeholder {
    color: var(--text-muted);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.form-checkbox label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   VOTE SECTION (sem contagem)
   ========================================= */
.vote-label {
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 2px;
}

/* =========================================
   LOGIN HINTS
   ========================================= */
.login-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.login-hint a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.login-hint a:hover {
    text-decoration: underline;
}

/* =========================================
   CHAT LOGIN REQUIRED
   ========================================= */
.chat-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.chat-login-required i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.chat-login-required p {
    margin-bottom: 20px;
}

.chat-login-required button {
    background: var(--accent-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-login-required button:hover {
    transform: translateY(-2px);
}

/* =========================================
   ERROR/SUCCESS MESSAGES
   ========================================= */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 500;
    z-index: 10001;
    animation: toastIn 0.3s ease;
}

.message-toast.success {
    background: var(--success);
    color: white;
}

.message-toast.error {
    background: var(--danger);
    color: white;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .user-logged-out {
        flex-direction: column;
        gap: 8px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .auth-modal {
        margin: 20px;
        padding: 30px 20px;
    }

    .user-info {
        padding: 6px 10px;
    }

    .user-details {
        display: none;
    }
}