/* Shared Header Styles */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px; /* Pill Shape */
    transition: background 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode nav {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px; 
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-color);
}

.cta-button {
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--cta-bg);
    font-size: 0.95rem;
}

.cta-button:hover {
    background: var(--cta-hover-bg);
    color: var(--cta-hover-text);
    border-color: var(--cta-bg);
}

/* Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 90px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #e0e0e0;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Knob */
.slider:before {
    background-color: #333;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Text Labels */
.slider::after {
    content: 'DAY';
    color: #333;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    left: 12px;
    transition: opacity 0.3s;
}

/* Dark Mode Logic */
input:checked+.slider {
    background-color: #1a1a1a;
}

input:checked+.slider:before {
    background-color: #fff;
    transform: translateX(0); /* Left */
}

input:not(:checked)+.slider:before {
    transform: translateX(56px); /* Right */
    background-color: #333;
}

input:checked+.slider::after {
    content: 'NIGHT';
    color: #fff;
    left: auto;
    right: 12px;
}

input:not(:checked)+.slider::after {
    content: 'DAY';
    color: #333;
    left: 12px;
    right: auto;
}

/* Header Actions container */
.header-actions {
    display: flex; 
    align-items: center; 
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Keep generic responsive hiding for now */
    }
}
