/* header.css - Updated with CSS variables */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg, rgba(255, 255, 255, 0.94));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 3px solid;
    border-image: linear-gradient(to top, var(--accent-start, #2fa7ac), var(--accent, #1a73e8), var(--accent-end, #ff8c00)) 1;

    box-shadow: var(--shadow-header, 0 4px 20px rgba(0, 0, 0, 0.08));
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.9rem 5%;
    box-shadow: var(--shadow-scrolled, 0 6px 25px rgba(0, 0, 0, 0.12));
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--logo-color, #2fa7ac);
    letter-spacing: -0.5px;
}

/* Navigation */
nav ul {
    display: flex;
    gap: 2.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    position: relative;
    color: var(--text-secondary, #202124);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.25s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-start, #2fa7ac), var(--accent-middle, #e8a71a));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
    opacity: 1;
}

nav a:hover {
    color: var(--accent, #2fa7ac);
}

/* Right end: Action buttons container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Download Button */
.download-btn {
    background: var(--btn-primary-bg, #000);
    color: var(--btn-primary-text, white);
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-btn, 0 4px 12px rgba(0, 0, 0, 0.12));
    cursor: pointer;
}

.download-btn:hover {
    background: var(--btn-primary-hover, #111);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover, 0 8px 24px rgba(0, 0, 0, 0.18));
}

/* Theme Toggle Button – Styled exactly like Download button */
.theme-btn {
    background: var(--btn-primary-bg, #000);
    color: var(--btn-primary-text, white);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.theme-btn:hover {
    background: var(--btn-primary-hover, #111);
    transform: translateY(-2px);
}

.theme-icon {
    font-size: 1rem;
}

/* Dark mode – change icons */
[data-theme="dark"] .theme-btn .theme-icon::before {
    content: "";
    /* Sun icon when in dark mode */
}

/* Responsive */
@media (max-width: 992px) {
    .header-actions {
        gap: 0.8rem;
    }

    .download-btn,
    .theme-btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }

    .theme-btn {
        width: 42px;
        height: 42px;
    }
}