/* Custom styles that can't be replaced with Tailwind */

/* Glass sphere decoration */
.glass-sphere {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Alert Banner Styles */

/* .alert-banner.closing {
    animation: alertSlideUp 0.5s ease-in-out forwards;
} */

/* Search Panel Positioning */
.search-panel {
    position: sticky;
    top: 80px; /* Height of alert banner (48px) + header (80px) */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 40;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: top center;
    margin-bottom: -190px;
}

.search-panel.collapsed {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.95);
    visibility: hidden;
}

.search-panel.expanded {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    visibility: visible;
}

/* Search field focus effects */
.search-field-modern:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-field-modern:focus + .search-icon-modern {
    color: #1e40af;
}

/* Search close button hover effect */
.search-close-modern:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1) rotate(90deg);
}

/* Search suggestion hover effect */
.search-suggestion:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

/* Animations */
/* @keyframes alertSlideUp {
    0% { 
        transform: translateY(0);
        opacity: 1;
        max-height: 48px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    100% { 
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
} */


@keyframes searchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.search-button:hover {
    animation: searchPulse 0.6s ease-in-out;
} 

/* Back to Top Button Styles */
.back-to-top-btn {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-btn.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* Smooth scroll animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top-btn.show {
    animation: fadeInUp 0.3s ease-out forwards;
}