/* Sticky Navigation Bar */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 8px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sticky-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    top: 0;
    padding: 8px 20px;
}

/* When global notification is present and sticky nav is shown, adjust top position */
body:has(.global-notification) .sticky-nav.show {
    top: 5px;
}

.sticky-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sticky-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sticky-nav-title:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.7;
}

.sticky-nav-btn {
    background-color: #1A73E8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.sticky-nav-btn:hover {
    background-color: #3b86e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    color: white;
    text-decoration: none;
}

.sticky-nav-btn:active {
    transform: none;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}

.sticky-nav-btn-secondary {
    background-color: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

.sticky-nav-btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
    border-color: #000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.sticky-nav-btn-secondary:active {
    background-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile adjustments for sticky nav */
@media (max-width: 767.98px) {
    .sticky-nav {
        padding: 8px 12px;
    }
    
    .sticky-nav-content {
        padding: 10px 16px;
        border-radius: 10px;
    }
    
    .sticky-nav-title {
        font-size: 1rem;
    }
    
    .sticky-nav-btn {
        padding: 6px 20px;
        font-size: 0.85rem;
    }
}
