/* Restaurant Cards - CSS centralisé pour l'affichage des cartes restaurant */

/* =============================================================================
   GRILLE DES RESTAURANTS
   ========================================================================== */

.restaurants-grid {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Grille par défaut - 4 colonnes sur desktop */
.restaurants-grid--default {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Grille en liste - 1 colonne avec cartes horizontales */
.restaurants-grid--list {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
}

/* Grille compacte - 5-6 colonnes sur desktop */
.restaurants-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 0.75rem !important;
}

/* =============================================================================
   CARTE RESTAURANT
   ========================================================================== */

.restaurant-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.restaurant-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Variant liste - affichage horizontal */
.restaurant-card--list {
    flex-direction: row !important;
    height: auto !important;
    min-height: 200px !important;
}

/* Variant compact - carte plus petite */
.restaurant-card--compact {
    border-radius: 8px !important;
}

/* =============================================================================
   IMAGE DU RESTAURANT
   ========================================================================== */

.restaurant-image-container {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}

.restaurant-card--list .restaurant-image-container {
    width: 250px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}

.restaurant-card--compact .restaurant-image-container {
    height: 160px !important;
}

.restaurant-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.restaurant-card:hover .restaurant-image {
    transform: scale(1.05) !important;
}

.restaurant-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    font-size: 2rem !important;
}

/* Logo du restaurant superposé */
.restaurant-logo {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: white !important;
    padding: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.restaurant-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Badges */
.restaurant-badges {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    display: flex !important;
    gap: 0.5rem !important;
}

.popular-badge {
    background: #F3324C !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* =============================================================================
   CONTENU DE LA CARTE
   ========================================================================== */

.card-content {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    gap: 0.75rem !important;
}

.restaurant-card--compact .card-content {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
}

/* Nom du restaurant */
.restaurant-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.restaurant-card--compact .restaurant-name {
    font-size: 0.9rem !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
}

/* Meta données */
.restaurant-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
}

.restaurant-rating {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.restaurant-rating .fas.fa-star {
    color: #fbbf24 !important;
    font-size: 0.75rem !important;
}

.rating-value {
    color: #6b7280 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-left: 0.25rem !important;
}

/* Détails du restaurant */
.restaurant-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.restaurant-detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #6b7280 !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.restaurant-detail-item i {
    width: 12px !important;
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
}

.restaurant-detail-item span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* =============================================================================
   CRÉNEAUX HORAIRES
   ========================================================================== */

.time-slots {
    display: flex !important;
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
    max-height: 3rem !important;
    overflow: hidden !important;
}

.time-slot {
    padding: 0.25rem 0.5rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.time-slot:hover {
    background: #F3324C !important;
    color: white !important;
    border-color: #F3324C !important;
}

.restaurant-card--compact .time-slot {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.65rem !important;
}

/* =============================================================================
   BOUTONS D'ACTION
   ========================================================================== */

.buttons-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
}

.reserve-btn,
.menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
}

.reserve-btn {
    background: #F3324C !important;
    color: white !important;
}

.reserve-btn:hover {
    background: #dc2626 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.menu-btn {
    background: #f8fafc !important;
    color: #374151 !important;
    border: 1px solid #e2e8f0 !important;
}

.menu-btn:hover {
    background: #374151 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.restaurant-card--compact .reserve-btn,
.restaurant-card--compact .menu-btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
}

/* =============================================================================
   PAGINATION
   ========================================================================== */

.restaurants-pagination {
    margin-top: 3rem !important;
    text-align: center !important;
}

/* =============================================================================
   ÉTAT VIDE
   ========================================================================== */

.restaurants-empty-state {
    text-align: center !important;
    padding: 4rem 1rem !important;
}

.empty-state-icon {
    margin-bottom: 1.5rem !important;
}

.empty-state-icon i {
    font-size: 4rem !important;
    color: #9ca3af !important;
}

.empty-state-title {
    color: #374151 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.empty-state-description {
    color: #6b7280 !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .restaurants-grid--default {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    
    .restaurants-grid--compact {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .restaurants-grid--default,
    .restaurants-grid--compact {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .restaurants-grid--list {
        padding: 0 1rem !important;
    }
    
    .restaurant-card--list {
        flex-direction: column !important;
    }
    
    .restaurant-card--list .restaurant-image-container {
        width: 100% !important;
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .restaurants-grid--default,
    .restaurants-grid--compact,
    .restaurants-grid--list {
        grid-template-columns: 1fr !important;
        padding: 0 0.5rem !important;
        gap: 0.75rem !important;
    }
    
    .restaurant-image-container {
        height: 180px !important;
    }
    
    .time-slots {
        gap: 0.2rem !important;
    }
    
    .time-slot {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
    }
    
    .buttons-container {
        gap: 0.4rem !important;
    }
    
    .reserve-btn,
    .menu-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}
