/**
 * User Menu CSS
 * Eternal Illusion - Felhasználói menü stílusok
 * 2025. október 26.
 */

/* ===== USER DROPDOWN SYSTEM ===== */

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #e0e6ed;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(12, 20, 69, 0.98);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

/* ===== DROPDOWN POINTS DISPLAY ===== */

.dropdown-points-display {
    background: transparent; /* Szürke háttér eltávolítva */
    border: none; /* Keret eltávolítva */
    border-radius: 0;
    padding: 8px; /* Kisebb padding */
    margin-bottom: 8px; /* Kisebb margin */
    text-align: right; /* Jobbra igazítás */
}

.points-info {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Jobbra igazítás flex-el */
    gap: 8px;
    margin-bottom: 4px;
}

.points-info i {
    color: #ffd700;
    font-size: 0.9rem; /* Kisebb ikon */
}

.points-value {
    color: #ffd700;
    font-weight: 600; /* Kevésbé vastag */
    font-size: 0.95rem; /* Kisebb szám */
}

.points-label {
    color: #e6c200;
    font-size: 0.8rem; /* Kisebb "pont" szöveg */
    font-weight: 400;
}

.points-subtitle {
    color: #bbb;
    font-size: 0.7rem; /* Kisebb "DKP rendszer" */
    opacity: 0.7;
}

/* ===== DROPDOWN GROUPS ===== */

.dropdown-group {
    margin-bottom: 8px;
}

.dropdown-group:last-of-type {
    margin-bottom: 0;
}

.dropdown-group-title {
    padding: 8px 16px 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffd700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 4px;
}

.dropdown-group-title.admin-title {
    color: #f39c12;
    border-bottom-color: rgba(243, 156, 18, 0.3);
}

.dropdown-group-title i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.dropdown-group-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 0 4px;
}

.dropdown-group-items.single-column {
    grid-template-columns: 1fr;
}

/* ===== DROPDOWN ITEMS ===== */

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #e0e6ed;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
    margin: 1px;
}

.dropdown-item i {
    margin-right: 8px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    text-decoration: none;
    transform: translateX(2px);
}

/* ===== SPECIALIZED DROPDOWN ITEMS ===== */

.dropdown-item.logout {
    color: #ff6b6b;
    font-weight: 600;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    padding-top: 10px;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8a8a;
}

.dropdown-item.admin-item {
    color: #f39c12;
    font-weight: 600;
}

.dropdown-item.admin-item:hover {
    background: rgba(243, 156, 18, 0.15);
    color: #f1c40f;
}

.dropdown-item.profile-item {
    color: #3498db;
}

.dropdown-item.profile-item:hover {
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
}

.dropdown-item.settings-item {
    color: #95a5a6;
}

.dropdown-item.settings-item:hover {
    background: rgba(149, 165, 166, 0.15);
    color: #bdc3c7;
}

.dropdown-item.character-add {
    color: #2ecc71;
    font-weight: 500;
}

.dropdown-item.character-add:hover {
    background: rgba(46, 204, 113, 0.15);
    color: #58d68d;
}

.dropdown-item.disabled {
    color: #7f8c8d;
    font-style: italic;
    cursor: default;
    opacity: 0.6;
}

.dropdown-item.disabled:hover {
    background: transparent;
    color: #7f8c8d;
}

/* ===== DROPDOWN DIVIDER ===== */

.dropdown-divider {
    height: 1px;
    background: rgba(255, 215, 0, 0.2);
    margin: 8px 0;
}

/* ===== USER STATUS INDICATORS ===== */

.user-status.guild-member {
    color: #2ecc71;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-status.guild-member-no-role {
    color: #e67e22; /* Narancssárga árnyalat - figyelem felkeltéshez */
    font-size: 0.8rem;
    font-weight: 500;
}

.user-status.visitor {
    color: #f39c12;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 160px;
        right: -20px;
    }
    
    .dropdown-item {
        padding: 14px 16px;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown-menu.show .dropdown-toggle i {
    transform: rotate(180deg);
}

/* ===== MOBILE MENU COMPATIBILITY ===== */

@media (max-width: 768px) {
    .user-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 70px;
        right: 10px;
        left: auto;
        width: 200px;
    }
}

/* ===== DKP TOOLTIP SYSTEM ===== */

.dropdown-points-display {
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.points-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.points-info:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.points-info i {
    color: #ffd700;
    font-size: 13px;
}

.points-value {
    font-size: 15px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.points-label {
    font-size: 11px;
    color: #e0e6ed;
    opacity: 0.8;
}

/* DKP Tooltip */
.dkp-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 15, 52, 0.98);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 8px;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.dropdown-points-display:hover .dkp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: bold;
    font-size: 12px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-characters {
    padding: 6px 0;
}

.tooltip-character {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    transition: background 0.2s ease;
}

.tooltip-character:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dkp-tooltip .tooltip-character .char-name {
    color: #e0e6ed;
    font-weight: 500;
    font-size: 11px !important;
}

.char-dkp {
    color: #ffd700;
    font-weight: bold;
    font-size: 11px;
}

.tooltip-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    text-align: center;
    color: #ffd700;
    font-size: 12px;
}

.tooltip-no-data {
    padding: 12px;
    text-align: center;
    color: #aaa;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tooltip-no-data i {
    color: #666;
}

.tooltip-header i {
    font-size: 11px;
}

/* ===== DKP TOOLTIP RESPONSIVE ===== */

@media (max-width: 768px) {
    .dkp-tooltip {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        margin-top: 0;
    }
    
    .points-info {
        padding: 6px 10px;
        gap: 4px;
    }
    
    .points-info i {
        font-size: 11px;
    }
    
    .points-value {
        font-size: 13px;
    }
    
    .points-label {
        font-size: 10px;
    }
    
    .dropdown-points-display {
        margin-bottom: 8px;
    }
}