/* Header Styles */
.header {
    box-shadow: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100% !important;
}

/* Homepage specific - start with transparent header */
body.homepage .header,
body.homepage .header.header-transparent {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
}

body.homepage .header .logo h1,
body.homepage .header .logo h1 a,
body.homepage .header .nav-link,
body.homepage .header .mobile-menu-btn,
body.homepage .header.header-transparent .logo h1,
body.homepage .header.header-transparent .logo h1 a,
body.homepage .header.header-transparent .nav-link,
body.homepage .header.header-transparent .mobile-menu-btn {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Header transparency states */
.header.header-transparent {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.header.header-transparent .logo h1,
.header.header-transparent .logo h1 a,
.header.header-transparent .nav-link,
.header.header-transparent .mobile-menu-btn {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.header-transparent .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Light mode scrolled header */
.header.header-solid:not([data-theme="dark"]),
body.homepage .header.scrolled:not([data-theme="dark"]) {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Light mode scrolled header text colors */
.header.header-solid:not([data-theme="dark"]) .logo h1,
.header.header-solid:not([data-theme="dark"]) .logo h1 a,
.header.header-solid:not([data-theme="dark"]) .nav-link,
.header.header-solid:not([data-theme="dark"]) .mobile-menu-btn,
body.homepage .header.scrolled:not([data-theme="dark"]) .logo h1,
body.homepage .header.scrolled:not([data-theme="dark"]) .nav-link,
body.homepage .header.scrolled:not([data-theme="dark"]) .mobile-menu-btn {
    text-shadow: none !important;
}

/* Light mode scrolled header input styles */
.header.header-solid:not([data-theme="dark"]) .search-input {
    color: #334155 !important;
}

.header.header-solid:not([data-theme="dark"]) .search-input::placeholder {
    color: rgba(51, 65, 85, 0.6) !important;
}

.header.header-solid:not([data-theme="dark"]) .search-btn {
    color: rgba(51, 65, 85, 0.8) !important;
}

.header.header-solid:not([data-theme="dark"]) .theme-toggle {
    color: #334155 !important;
}

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

/* Logo Styles */
.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo h1 a:hover {
    color: #E8F4FD;
    transform: translateY(-1px);
}

/* Navigation Styles */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    /* Hover styles removed - controlled by header.php */
}

.nav-link.active {
    /* Active styles removed - controlled by header.php */
}

.nav-link.active::before {
    /* Old indicator removed - now using ::after from header.php */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 122, 187, 0.2);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #007ABB;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 122, 187, 0.3);
        border-radius: 0 0 15px 15px;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        text-align: center;
    }

    .search-input {
        width: 150px;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .search-box {
        padding: 0.4rem 0.8rem;
    }

    .search-input {
        width: 120px;
        font-size: 0.8rem;
    }
}