/* /styles/header.css */
/* Header component specific styles with Season & Raid Legend */

.header {
    background: none;
    padding: 0.25rem;
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
    box-shadow: none;
    min-height: 50px;
    max-height: 80px;
    box-sizing: border-box;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
    position: relative;
}

/* User section (left) */
.user-section {
    display: flex;
    gap: 0.5rem;
    min-width: 150px;
    max-width: 200px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #60a5fa;
    object-fit: cover;
    flex-shrink: 0;
}

.user-text-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.role-pill {
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-officer {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.role-raider {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.role-friends {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.username {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.username.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.username.clickable:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

.admin-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.08rem 0.22rem;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.admin-btn:hover {
    background: #2563eb;
}

.admin-icon {
    font-size: 0.875rem;
}

/* Logo section (center) */
.logo-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    max-width: 500px;
    height: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.main-logo {
    max-width: 100%;
    max-height: 384px;
    width: 100%;
    height: 384px;
    object-fit: contain;
}

/* Date filters (right) */
.date-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.date-select {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.875rem;
}

.date-select:focus {
    outline: none;
    border-color: #60a5fa;
}

.date-select option {
    background: #334155;
    color: white;
}

/* NEW: Season & Raid Legend Section */
.season-legend-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.season-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.season-icon {
    font-size: 1rem;
}

.season-text {
    color: white;
    font-size: 0.875rem;
}

.season-date {
    color: #34d399;
    font-weight: 700;
    font-size: 0.875rem;
}

.legend-divider {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.raid-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.non-raid-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-icon {
    font-size: 1rem;
}

.raid-icon {
    color: #60a5fa;
}

.non-raid-icon {
    color: #64748b;
}

.legend-text {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.legend-days {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Simple Color Legend */
.color-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.color-square {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-square.non-raid {
    background: linear-gradient(145deg, #0f172a, #1e293b);
}

.color-square.raid-day {
    background: linear-gradient(145deg, #334155, #475569);
}





/* Hidden state for legend when no data */
.season-legend-section.hidden {
    display: flex !important;
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 1200px) {
    .header {
        min-height: 70px;
        max-height: 150px;
    }
    
    .season-legend-section {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .raid-legend {
        gap: 1rem;
    }
    
    .legend-item {
        gap: 0.4rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 60px;
        max-height: 120px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-section,
    .logo-section,
    .date-filters {
        flex: none;
        justify-content: center;
    }
    
    .user-section {
        order: 1;
    }
    
    .logo-section {
        order: 2;
        width: 100%;
        max-width: 400px;
    }
    
    .date-filters {
        order: 3;
    }
    
    .season-legend-section {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        text-align: center;
    }
    
    .legend-divider {
        width: 24px;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.5), transparent);
    }
    
    .raid-legend {
        justify-content: center;
        gap: 1rem;
    }
}

.legend-item,
.season-info,
.raid-legend,
.color-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.legend-icon,
.season-icon,
.color-square,
.legend-check-icon {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.legend-text,
.season-text,
.legend-days {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}