/* UNIVERSAL NAVIGATION STYLES - QUANTUM TOOLS */

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background: rgba(10, 13, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.light-theme header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.logo h1::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    left: -10px;
    top: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color-1), transparent);
    filter: blur(8px);
    z-index: -1;
}

/* === NAVIGATION === */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === SEARCH BAR === */
.search-container {
    position: relative;
    margin-right: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.light-theme .search-bar {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 150px;
    padding: 10px;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    color: rgba(185, 201, 14, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: var(--accent-color-1);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar:focus-within {
    box-shadow: 0 0 10px rgba(213, 220, 12, 0.76);
    border-color: var(--accent-color-1);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 250px;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.85), rgba(10, 13, 20, 0.95));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 240, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 15px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color-1) transparent;
    transform: perspective(800px) rotateX(-2deg);
    backface-visibility: hidden;
}

.search-results:hover {
    transform: perspective(800px) rotateX(0deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 240, 255, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.light-theme .search-results {
    background: rgba(17, 199, 205, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.search-results.active {
    display: block;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-3) 100%);
    box-shadow: 0 3px 10px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
    order: 1;
    margin-right: 15px;
}

.hamburger .line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    overflow: hidden;
}

.theme-toggle i {
    font-size: 12px;
    color: var(--text-primary);
    z-index: 1;
}

.theme-toggle-track {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: var(--primary-bg);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.theme-toggle.light .theme-toggle-track {
    transform: translateX(25px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease;
        z-index: 100;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        border-left: 1px solid var(--card-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .search-container {
        width: 100%;
        margin: 15px 0;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }
}

/* Search Results Page Styles */
.search-results-page {
    padding-top: 100px;
}

.search-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-results-header p {
    color: var(--text-secondary);
}

.search-result-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color-1);
}

.search-result-item h3 {
    margin-bottom: 10px;
}

.search-result-item p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.search-result-item .result-link {
    display: inline-block;
    color: var(--accent-color-1);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-result-item .result-link:hover {
    color: var(--accent-color-2);
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
