/* Header Component Styles */
.header {
    background: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 10;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.02);
}

.logo-area h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f97316, #ea580c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    margin: 0;
}

/* Light theme - keep same orange gradient for JUZT text */
[data-theme="light"] .logo-area h1 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

[data-theme="light"] .logo-image {
    filter: brightness(1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Icon container */
.icon-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.02);
}

.theme-toggle-btn:active {
    transform: scale(0.98);
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.hamburger:hover {
    background: rgba(249, 115, 22, 0.1);
}

.hamburger svg {
    height: 1.8em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.line {
    fill: none;
    stroke: var(--text-secondary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger.active svg {
    transform: rotate(-45deg);
}

.hamburger.active svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

.hamburger:hover .line {
    stroke: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu-icons {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.2s ease;
}

.dropdown-menu-icons.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateX(4px);
}

.dropdown-item .icon-svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.dropdown-item:hover .icon-svg {
    color: var(--accent);
}

.dropdown-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    text-align: left;
}

.dropdown-item:hover .dropdown-label {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 0.7rem 1rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-area h1 {
        font-size: 1.3rem;
    }
    
    .logo-area {
        gap: 8px;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
    }
    
    .hamburger svg {
        height: 1.6em;
    }
    
    .dropdown-menu-icons {
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 8px 12px;
    }
    
    .dropdown-item .icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0.6rem 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .logo-image {
        height: 28px;
    }
    
    .logo-area h1 {
        font-size: 1.2rem;
    }
    
    .logo-area {
        gap: 6px;
    }
    
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .hamburger {
        width: 38px;
        height: 38px;
    }
    
    .hamburger svg {
        height: 1.5em;
    }
    
    .dropdown-menu-icons {
        min-width: 150px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.8rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .logo-image {
        height: 24px;
    }
    
    .logo-area h1 {
        font-size: 1.1rem;
    }
    
    .logo-area {
        gap: 6px;
    }
    
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .hamburger {
        width: 34px;
        height: 34px;
    }
    
    .hamburger svg {
        height: 1.3em;
    }
    
    .dropdown-menu-icons {
        min-width: 140px;
        right: -5px;
    }
    
    .dropdown-item {
        padding: 6px 10px;
    }
    
    .dropdown-item .icon-svg {
        width: 16px;
        height: 16px;
    }
    
    .dropdown-label {
        font-size: 0.75rem;
    }
}

