/* Global Navigation and Theme Variables */

:root {
    --primary: #164c78;
    --primary-hover: #0f3a5f;
    --secondary: #8B5CF6;
    --accent: #10B981;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --text-color: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --card-bg: #FFFFFF;
    --overlay-light: rgba(255, 255, 255, 0.5);
    --overlay-dark: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0A0E21;
        --bg-secondary: #161B22;
        --text-color: #F8FAFC;
        --text-muted: rgba(248, 250, 252, 0.7);
        --border-color: rgba(255, 255, 255, 0.1);
        --shadow-color: #0A0E21;
        --card-bg: #1A202C;
        --overlay-light: rgba(255, 255, 255, 0.1);
        --overlay-dark: rgba(0, 0, 0, 0.2);
    }

    body:not(.home-page) {
        --bg-secondary: #151e37;
        --card-bg: #151e37;
    }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    z-index: 1000;
    width: 100%;
    display: block;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.navbar.scrolled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.nav-logo img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: absolute;
    right: 2rem;
    z-index: 3000;
}

.nav-signup-btn {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    background: var(--primary);
    color: white;
}

.nav-signup-btn:hover {
    background-color: var(--primary-hover);
}

/* Floating Pill Styles */
.floating-pill {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    padding: 1.1rem 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .floating-pill {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }
}

.floating-pill.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.floating-pill:hover {
    transform: translateX(-50%) scale(1.08);
}

.floating-pill a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.floating-pill a:hover {
    color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-container {
        gap: 1rem;
        padding: 1rem;
    }
    .nav-menu {
        display: none;
    }
    .floating-pill {
        top: 1rem;
        padding: 0.9rem 1.5rem;
        gap: 1rem;
    }
    .floating-pill a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .floating-pill {
        top: 0.8rem;
        padding: 0.8rem 1rem;
        gap: 0.75rem;
    }
    .floating-pill a {
        font-size: 0.75rem;
    }
}
