/**
 * Header Component CSS
 */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    --header-height: 80px;
    height: var(--header-height);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: #667eea;
}

/* Header Avatar Styles */
.nav-avatar {
    margin-left: 0.75rem;
}

.avatar-link {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 50%;
}

.avatar-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: border-color 0.2s ease;
}

.avatar-link:hover .header-avatar-img {
    border-color: rgba(102, 126, 234, 0.6);
}

.header-avatar-symbol {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.avatar-link:hover .header-avatar-symbol {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.6);
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .header-content {
        padding: 0.875rem 0;
    }
    
    .logo {
        font-size: 1.6rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header {
        --header-height: 72px;
        height: var(--header-height);
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
        gap: 0.375rem;
    }
    
    .nav-avatar {
        margin-left: 0.5rem;
    }
    
    .header-avatar-img,
    .header-avatar-symbol {
        width: 32px;
        height: 32px;
        /* Ensure proper touch target */
        min-width: 32px;
        min-height: 32px;
    }
    
    .header-avatar-symbol {
        font-size: 0.9rem;
    }
    
    .avatar-link {
        /* Increase touch area */
        padding: 6px;
        margin: -6px;
        border-radius: 50%;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        --header-height: 68px;
        height: var(--header-height);
    }
    
    .header-content {
        padding: 0.625rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
        gap: 0.25rem;
    }
    
    .logo i {
        font-size: 1.125rem;
    }
    
    .header-avatar-img,
    .header-avatar-symbol {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .header-avatar-symbol {
        font-size: 0.8rem;
    }
}