/* ============================================================================
   NOT FOUND MESSAGE - OLD STYLE
   ============================================================================ */

.not-found-message {
    display: none;
    text-align: center;
    padding: 60px 24px;
    animation: fadeIn 0.5s ease;
}

.not-found-message.show {
    display: block;
}

.not-found-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: shake 0.5s ease;
}

.not-found-title {
    font-size: 22px;
    font-weight: 800;
    color: #212529;
    margin-bottom: 8px;
}

.not-found-text {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
}

.clear-search-btn {
    background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.30);
}

.clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.40);
}

.clear-search-btn:active {
    transform: translateY(0);
}

/* ============================================================================
   NO RESULTS - MODERN STYLE
   ============================================================================ */

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
}

/* Animated Search Icon */
.no-results-animation {
    position: relative;
    margin-bottom: 40px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-large {
    font-size: 80px;
    opacity: 0.9;
    animation: searchFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Ripple Waves Animation */
.search-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.search-waves span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: searchWave 3s ease-out infinite;
}

.search-waves span:nth-child(2) {
    animation-delay: 1s;
}

.search-waves span:nth-child(3) {
    animation-delay: 2s;
}

/* Text Styling */
.no-results-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.no-results-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.6;
}

.search-term {
    color: #3b82f6;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

/* Suggestions Box */
.no-results-suggestions {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 36px;
    max-width: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.suggestions-title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-title::before {
    content: "💡";
    font-size: 18px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.suggestions-list li {
    font-size: 14px;
    color: #6b7280;
    padding: 10px 0;
    padding-left: 32px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #e5e7eb;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li::before {
    content: "→";
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 16px;
}

/* Back to Menu Button */
.back-to-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-to-menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-to-menu-btn:active {
    transform: translateY(-1px);
}

.back-to-menu-btn i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.back-to-menu-btn:hover i {
    transform: translateX(-4px);
}

/* Hide the old not found message */
#notFoundMessage {
    display: none !important;
}

/* Animation delay for staggered appearance */
.no-results-container > * {
    animation: fadeInUp 0.5s ease-out backwards;
}

.no-results-animation {
    animation-delay: 0.1s;
}

.no-results-title {
    animation-delay: 0.2s;
}

.no-results-text {
    animation-delay: 0.3s;
}

.no-results-suggestions {
    animation-delay: 0.4s;
}

.back-to-menu-btn {
    animation-delay: 0.5s;
}

/* ============================================================================
   LOADER
   ============================================================================ */

.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    min-height: 200px;
}

.custom-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 165, 116, 0.2);
    border-top: 3px solid #d4a574;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-timeout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-warning {
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #0b5ed7;
}

/* ============================================================================
   Z-INDEX FIX
   ============================================================================ */

body,
section,
.container,
.hero-section,
.hero-image-container,
.stats-bar,
.section-header,
.menu-categories,
.categories-list {
    isolation: auto !important;
}

.language-dropdown {
    position: fixed !important;
    z-index: 999999999 !important;
    isolation: isolate !important;
}

.language-selector-compact {
    isolation: isolate !important;
    z-index: 999999998 !important;
}

.search-section,
.search-container,
.voice-controls-wrapper,
.header,
.header-top {
    overflow: visible !important;
}

/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 640px) {
    .no-results-container {
        padding: 60px 20px;
        min-height: 300px;
    }

    .no-results-animation {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .search-icon-large {
        font-size: 60px;
    }

    .no-results-title {
        font-size: 24px;
    }

    .no-results-text {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .no-results-suggestions {
        padding: 20px;
        margin-bottom: 28px;
    }

    .suggestions-title {
        font-size: 14px;
    }

    .suggestions-list li {
        font-size: 13px;
        padding: 8px 0;
        padding-left: 28px;
    }

    .back-to-menu-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}