/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 251, 253, 0.62));
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 24px rgba(31, 41, 55, 0.05);
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    nav {
        background:
            linear-gradient(180deg, rgba(9, 12, 20, 0.88), rgba(0, 0, 0, 0.72));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
    }
}

[data-theme="dark"] nav {
    background:
        linear-gradient(180deg, rgba(9, 12, 20, 0.88), rgba(0, 0, 0, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] nav {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 251, 253, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 24px rgba(31, 41, 55, 0.05);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.logo img {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo-badge {
    background: var(--sociail-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-badge span {
    background: var(--sociail-blue);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 0 1px;
    font-size: 0.9em;
    letter-spacing: inherit;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-links a:focus-visible {
    opacity: 1;
    outline: 2px solid var(--sociail-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

.nav-link-external {
    color: var(--sociail-indigo) !important;
    font-weight: 500;
    opacity: 1 !important;
}

.nav-link-external .nav-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav-link-external:hover .nav-arrow,
.nav-link-external:focus-visible .nav-arrow {
    transform: translateX(2px);
}

@media (prefers-color-scheme: dark) {
    .nav-link-external {
        color: #a5b4fc !important;
    }
}

[data-theme="dark"] .nav-link-external {
    color: #a5b4fc !important;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-switch {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch:hover {
    background: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    .theme-switch {
        background: rgba(255, 255, 255, 0.08);
    }
    .theme-switch:hover {
        background: rgba(255, 255, 255, 0.12);
    }
}

[data-theme="dark"] .theme-switch {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-switch:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .theme-switch {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-switch:hover {
    background: rgba(0, 0, 0, 0.08);
}

.theme-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.theme-switch:hover .theme-icon {
    opacity: 1;
}

.theme-switch:focus-visible {
    outline: 2px solid var(--sociail-blue);
    outline-offset: 2px;
}
