/* Discord Authentication Styles */

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-discord-login:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord-login svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* User Display in Header */
.header-top,
.header-top-inner,
.site-header {
    overflow: visible !important;
}

.user-display {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
    z-index: 100000;
}

.header-actions {
    position: relative;
    z-index: 100000;
    overflow: visible !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.95) 0%, rgba(30, 30, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 100001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-info::after {
    content: '▼';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
    transition: all 0.3s ease;
}

.user-info:hover::after {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(1px);
}

.user-info:hover {
    background: linear-gradient(135deg, rgba(50, 50, 55, 0.95) 0%, rgba(40, 40, 45, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-info:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pure-white, #fff);
    letter-spacing: 0.01em;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 6px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    backdrop-filter: blur(20px);
    pointer-events: none;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.dropdown-item-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
    background: rgba(255, 255, 255, 0.1);
}

/* Professional SVG Icons */
.dropdown-item-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.icon-dashboard::before {
    content: '■';
    font-size: 14px;
}

.icon-logout::before {
    content: '→';
    font-size: 16px;
    font-weight: bold;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 6px 12px;
}

.dropdown-item.danger {
    color: rgba(255, 100, 100, 0.9);
}

.dropdown-item.danger::before {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.12) 0%, rgba(255, 68, 68, 0.04) 100%);
}

.dropdown-item.danger:hover {
    color: #ff6666;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Auth Notifications */
.auth-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-notification.error {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.auth-notification.success {
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Auth Callback Page */
.auth-callback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.auth-callback-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5865F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-callback-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.auth-callback-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .user-display {
        flex-direction: column;
        gap: 0.5rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .btn-logout {
        width: 100%;
    }

    .auth-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}
