/* Profile Dropdown Styles - CS2/CSGO Gaming Theme */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Bebas+Neue&family=Teko:wght@300;400;500;600;700&display=swap');

/* Profile Button in Header */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #161c2e 0%, #0a0e1a 100%);
    border: 2px solid #ff6b1a;
    border-radius: 0;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

.user-profile-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.3), transparent);
    transition: left 0.5s;
}

.user-profile-toggle:hover::before {
    left: 100%;
}

.user-profile-toggle:hover {
    background: linear-gradient(135deg, #1a1f2e 0%, #161c2e 100%);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 107, 26, 0.4);
    color: #ff6b1a;
    text-shadow: 0 0 10px rgba(255, 107, 26, 0.5);
}

.user-profile-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.user-profile-toggle .username {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-toggle .dropdown-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.user-profile-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown Container */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #1a1d29 0%, #0f1219 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Profile Header */
.profile-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid rgba(102, 126, 234, 0.5);
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Profile Menu Items */
.profile-menu {
    padding: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin: 4px 0;
    background: transparent;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.profile-menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    color: #fff;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.profile-menu-item span {
    flex: 1;
    font-weight: 500;
}

/* Icon Colors */
.profile-menu-item .fa-user {
    color: #3b82f6;
}

.profile-menu-item .fa-eye {
    color: #10b981;
}

.profile-menu-item .fa-server {
    color: #8b5cf6;
}

.profile-menu-item .fa-heart {
    color: #ef4444;
}

.profile-menu-item .fa-user-shield {
    color: #f59e0b;
}

.profile-menu-item .fa-sign-out-alt {
    color: #ef4444;
}

/* Badge for admin */
.admin-badge {
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    border-radius: 10px;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 700;
    margin-left: auto;
}

/* Divider */
.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 15px;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    margin: 10px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.profile-stat-label {
    color: #94a3b8;
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: unset;
    }
    
    .profile-menu-trigger .username {
        display: none;
    }
    
    .profile-menu-trigger {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown {
        top: 50px;
        right: 5px;
        left: 5px;
        border-radius: 8px;
    }
    
    .profile-dropdown-header {
        padding: 15px;
    }
    
    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .profile-menu-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .profile-stats {
        padding: 10px;
        gap: 8px;
    }
}

/* Dark Theme Override */
body.dark-mode .profile-dropdown {
    background: linear-gradient(135deg, #0a0c10 0%, #141824 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Animation for dropdown arrow */
@keyframes rotateArrow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

/* Overlay for mobile */
.profile-dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.profile-dropdown-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .profile-dropdown-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .profile-dropdown-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}
