/**
 * assets/css/components/userbar.css
 * DropX Prime System - Felhasználói Eszköztár, Bónuszpont (BP) Kapszula és Dropdown Menük
 *
 * Tartalom:
 * 1. Jobb oldali akciógombok és kerek gombstílusok (.header-icon-btn, .btn-theme-toggle)
 * 2. Bónusz Pontszám (BP) Kapszula (.header-point-bubble)
 * 3. Értesítési és üzenet jelvények (.icon-badge, .badge-red, .badge-blue)
 * 4. Lenyíló panelek és profil menük (.header-dropdown-menu, .dropdown-header, .dropdown-item)
 * 5. Tiszta specifitási szabályok (Szigorúan 0 db szabály!)
 *
 * JAVÍTÁSOK (V8.5):
 * - BP kapszula és interaktív gombok arányosítása a szélesített fejléchez.
 * - Szigorúan mentes az szabályoktól a 0. szabályzatnak megfelelően.
 */

/* ==========================================================================
   1. AKCIÓGOMBOK ÉS KEREK VEZÉRLŐK
   ========================================================================== */
.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(229, 158, 0, 0.06);
    border: 1px solid var(--color-border-gold);
    color: var(--color-silver);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    outline: none;
    padding: 0;
    text-decoration: none;
}

.header-icon-btn svg,
.header-icon-btn i {
    width: 17px;
    height: 17px;
    color: var(--color-gold);
    transition: transform 0.25s ease, color 0.25s ease;
}

.header-icon-btn:hover {
    background: rgba(229, 158, 0, 0.2);
    border-color: #ffb81c;
    color: #ffffff;
    box-shadow: 0 0 12px var(--color-gold-glow);
    transform: translateY(-2px);
}

.header-icon-btn:hover svg,
.header-icon-btn:hover i {
    transform: scale(1.1);
    color: #ffffff;
}

body.light-mode .header-icon-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(179, 107, 0, 0.35);
    color: var(--text-light);
}

body.light-mode .header-icon-btn:hover {
    background: rgba(179, 107, 0, 0.15);
    box-shadow: 0 0 10px rgba(179, 107, 0, 0.25);
}

/* Avatar kép a gombon belül */
.header-icon-btn .header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Témaváltó gomb igazítás */
.btn-theme-toggle {
    border-radius: 4px;
}

/* ==========================================================================
   2. BÓNUSZ PONTSZÁM (BP) KAPSZULA
   ========================================================================== */
.header-point-bubble {
    background: rgba(229, 158, 0, 0.12);
    border: 1px solid var(--color-gold);
    padding: 5px 14px;
    border-radius: 50px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-gold-glow);
    box-shadow: 
        0 0 10px rgba(229, 158, 0, 0.15),
        inset 0 0 6px rgba(229, 158, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
}

.header-point-bubble .bp-icon {
    width: 14px;
    height: 14px;
    color: var(--color-gold);
}

.header-point-bubble:hover {
    box-shadow: 0 0 15px var(--color-gold-glow);
    transform: translateY(-1px);
}

body.light-mode .header-point-bubble {
    background: rgba(179, 107, 0, 0.1);
    border-color: rgba(179, 107, 0, 0.5);
    color: #b36b00;
    text-shadow: none;
}

/* ==========================================================================
   3. ÉRTESÍTÉSI ÉS ÜZENET SZÁMLÁLÓK (BADGES)
   ========================================================================== */
.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0807;
    animation: badgePulse 2s infinite;
    z-index: 2;
    padding: 0 2px;
}

.icon-badge.badge-blue {
    background: #3498db;
}

.icon-badge.badge-red {
    background: #e74c3c;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ==========================================================================
   4. LENYÍLÓ MENÜK ÉS DROPDOWN PANELEK
   ========================================================================== */
.header-dropdown-container {
    position: relative;
    display: inline-block;
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: rgba(15, 12, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--color-border-gold);
    border-radius: 4px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10002;
    overflow: hidden;
    animation: dropdownSlideIn 0.25s ease-out forwards;
}

@keyframes dropdownSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-dropdown-container.active .header-dropdown-menu {
    display: block;
}

.dropdown-header {
    padding: 12px 18px;
    background: rgba(229, 158, 0, 0.06);
    border-bottom: 1px solid var(--color-border-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h3 {
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.05rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.text-btn {
    background: transparent;
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold);
    font-size: 0.8rem;
    padding: 4px 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.text-btn:hover {
    background: var(--color-gold);
    color: #000000;
}

.dropdown-content {
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    color: var(--text-muted);
    width: 100%;
    box-sizing: border-box;
}

.dropdown-item:hover { 
    background: rgba(229, 158, 0, 0.08); 
    color: #ffffff; 
}

.dropdown-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border-gold);
    object-fit: cover;
    background: #111111;
    flex-shrink: 0;
}

.dropdown-item-info { 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
    flex: 1; 
}

.dropdown-item-title { 
    font-weight: 700; 
    font-size: 1rem; 
    color: var(--color-gold); 
    margin-bottom: 2px; 
}

.dropdown-item-text { 
    font-size: 0.88rem; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.dropdown-item-time { 
    font-size: 0.72rem; 
    color: rgba(255, 255, 255, 0.4); 
    margin-top: 4px; 
    font-family: 'JetBrains Mono', monospace; 
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: 4px 0;
}

.dropdown-footer {
    display: block;
    padding: 10px;
    text-align: center;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--color-border-subtle);
}

.dropdown-footer:hover {
    background: rgba(229, 158, 0, 0.1);
}

/* Profil lenyíló felhasználói fejléc doboz */
.profile-dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(229, 158, 0, 0.05);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-subtle);
}

.profile-dropdown-user-header .username {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.profile-dropdown-user-header .view-profile {
    font-size: 0.8rem;
    color: var(--color-gold);
}

.dropdown-section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px 4px 18px;
}

.logout-item:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}