/* What to Eat Page - Minimal Design (mirrors pages/restaurant/style.css tokens) */

html {
    scroll-behavior: smooth;
}

.food-section {
    padding: 3rem 0 4rem;
    background-color: #ffffff;
    min-height: 80vh;
}

.food-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.food-header h1 {
    font-size: 2rem;
    color: #111827;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.food-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.food-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.food-count i {
    color: #9ca3af;
}

/* Search and Category Controls */
.food-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #0a2463;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill:hover {
    border-color: #0a2463;
    color: #0a2463;
}

.category-pill.active {
    background: #0a2463;
    border-color: #0a2463;
    color: #ffffff;
}

/* Food Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.food-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #ffffff;
}

.food-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.food-card-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.food-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(10, 36, 99, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.food-card-content {
    padding: 1.1rem 1.25rem 1.35rem;
}

.food-card-content h3 {
    font-size: 1.125rem;
    color: #111827;
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.food-card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Empty / loading states */
.loading-message,
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-message i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.empty-message h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Detail Modal */
.food-detail-modal-content {
    max-width: 640px;
    padding: 0;
    overflow: hidden;
}

.food-detail-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.food-detail-content {
    padding: 1.5rem 1.75rem 2rem;
}

.food-detail-content .food-card-category {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.food-detail-content h2 {
    font-size: 1.5rem;
    color: #111827;
    margin: 0 0 0.75rem;
}

.food-detail-content p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .food-header h1 {
        font-size: 1.5rem;
    }

    .food-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }
}
