/* Search Page Specific Styles */

/* Header Enhancements */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2rem 2rem 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -4rem;
    position: relative;
}

.search-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.search-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: -2rem;
}

.search-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group select:hover {
    border-color: var(--primary-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 55, 255, 0.1);
}

.search-results {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.results-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header h2 i {
    color: #ff458b;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Search Bar Enhancements */
.search-bar {
    position: relative;
    margin-bottom: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-bar.focused {
    box-shadow: 0 6px 20px rgba(0, 55, 255, 0.15);
    transform: translateY(-2px);
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3.5rem;
    border: none;
    background: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Restaurant Grid Enhancements */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.restaurant-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 55, 255, 0.1);
}

.restaurant-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.restaurant-card:nth-child(1) .card-badge {
    background: #ff458b;
}

.restaurant-card:nth-child(2) .card-badge {
    background: #ff458b;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-item:hover i {
    opacity: 1;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        padding: 2rem 1rem;
    }

    .search-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
    }

    .sort-options select {
        width: 100%;
    }

    .restaurant-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        justify-items: center;
    }
}

/* Add media query for very small screens */
@media (max-width: 380px) {
    .search-container {
        padding: 1.5rem 0.5rem; /* Further reduce padding for very small screens */
    }

    .restaurant-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 1rem;
        justify-items: center;
    }

    .restaurant-card .restaurant-info {
        padding: 1rem; /* Reduce padding inside cards */
    }

    .restaurant-card h3 {
        font-size: 1.15rem; /* Slightly smaller title for very small screens */
    }

    .results-header h2 {
        font-size: 1.5rem; /* Adjust header size */
    }

    .filter-group select,
    .search-bar input {
        font-size: 0.9rem; /* Adjust font size in inputs */
    }
}

/* Animation for Search Results */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-card {
    animation: fadeIn 0.3s ease-out;
}

/* Modern Footer */
.modern-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p i {
    width: 20px;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.social-links a i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 1rem 6rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
} 