/* Navapul Header Styles - header.css */

.converter-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.converter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    /* Removed gradientShift animation */
}

.header-glass {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    z-index: 10;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(45, 55, 72, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 85, 104, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    animation: pulse-glow 2s infinite;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.logo-icon:hover svg {
    transform: rotate(360deg) scale(1.1);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #f8fafc;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 55, 72, 0.3);
    backdrop-filter: blur(20px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(74, 85, 104, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(45, 55, 72, 0.5);
}

.toggle-label {
    font-size: 16px;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-label.moon {
    opacity: 1;
}

.toggle-label.sun {
    opacity: 0.5;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(45, 55, 72, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 85, 104, 0.5);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.toggle-switch.active::before {
    transform: translateX(20px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.4);
}

.toggle-switch.active + .toggle-label.sun {
    opacity: 1;
}

.toggle-switch.active ~ .toggle-label.moon {
    opacity: 0.5;
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid rgba(74, 85, 104, 0.3);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background: rgba(45, 55, 72, 0.5);
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
    color: white;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Notification */
.header-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-toast.show {
    transform: translateX(0);
}

/* Light Mode Styles (when toggled) */
body.light .converter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

body.light .header-toast {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.light .logo-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light .toggle-switch {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.light .mobile-menu-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Control Layout */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Animations */
/* Removed gradientShift animation */

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-content {
        height: 60px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .logo-icon svg {
        width: 16px;
        height: 16px;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .dark-mode-toggle {
        padding: 6px 10px;
        gap: 6px;
    }

    .toggle-label {
        font-size: 14px;
    }

    .toggle-switch {
        width: 38px;
        height: 20px;
    }

    .toggle-switch::before {
        width: 16px;
        height: 16px;
    }

    .toggle-switch.active::before {
        transform: translateX(18px);
    }

    .header-toast {
        right: 10px;
        left: 10px;
        top: 70px;
    }

    .header-controls {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .header-content {
        height: 55px;
    }
}