/* Restaurant Responsive CSS - Scoped để không ảnh hưởng header */

/* ============================================
   SCOPED CSS CHỈ CHO RESTAURANT PAGE
   ============================================ */

/* Chỉ áp dụng khi có wrapper class */
.restaurant-list-page {
    /* Restaurant-specific styles */
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

.restaurant-list-page img,
.restaurant-section img,
.menu-section img {
    opacity: 1 !important;
    display: block !important;
    max-width: 100%;
    height: auto;
}

.restaurant-list-page .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   HERO SECTION - SCOPED
   ============================================ */

.restaurant-list-page .hero {
    min-height: 60vh;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.restaurant-list-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.restaurant-list-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.restaurant-list-page .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.restaurant-list-page .hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.restaurant-list-page .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto;
}

.restaurant-list-page .hero-buttons .btn {
    text-align: center;
    padding: 12px 20px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ============================================
   SERVICES GRID RESPONSIVE
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESTAURANT SECTION RESPONSIVE
   ============================================ */

.restaurant-section {
    margin-bottom: 60px !important;
    padding: 40px 0 !important;
    border-radius: 15px !important;
}

/* Restaurant Header */
.restaurant-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.restaurant-info {
    order: 2;
}

.restaurant-image {
    order: 1;
}

.restaurant-image .card {
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.restaurant-image .card-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.restaurant-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.restaurant-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.restaurant-title h2 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin: 0 !important;
    color: var(--secondary) !important;
}

.restaurant-description {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
    color: var(--gray) !important;
}

/* Rating and Price Grid */
.restaurant-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.restaurant-meta > div {
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.restaurant-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.restaurant-actions .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Restaurant Info Cards */
.restaurant-info-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

/* ============================================
   MENU SECTION RESPONSIVE
   ============================================ */

.menu-section {
    background: white !important;
    padding: 30px 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    margin-top: 30px;
}

.menu-title {
    font-size: 1.5rem !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    color: var(--secondary) !important;
    font-weight: 600;
}

/* Menu Filter Buttons */
.menu-filters {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 25px !important;
    padding: 0 10px;
}

.menu-filter {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    flex-shrink: 0;
    min-width: auto;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    transition: all 0.3s ease;
}

.menu-filter:hover,
.menu-filter.active {
    background: var(--primary) !important;
    color: white !important;
}

/* Menu Grid */
.menu-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.menu-item-card {
    background: var(--light) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid rgba(0,0,0,0.05);
}

.menu-item-image {
    position: relative;
    height: 200px !important;
    overflow: hidden;
}

.menu-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.menu-item-content {
    padding: 20px !important;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.menu-item-title {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--secondary) !important;
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.menu-item-description {
    color: var(--gray) !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin-bottom: 15px !important;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.menu-item-price {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.menu-item-category {
    background: var(--primary) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

/* ============================================
   POPULAR DISHES SECTION
   ============================================ */

.popular-dishes .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
}

/* ============================================
   BOOKING SECTION RESPONSIVE
   ============================================ */

.booking-section {
    padding: 40px 0;
}

.booking-form {
    max-width: 100%;
    margin: 0 auto;
}

.booking-form .card {
    padding: 0;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-form .card-content {
    padding: 25px 20px;
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.booking-contacts {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

.booking-contact-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.booking-contact-card:hover {
    transform: translateY(-2px);
}

.booking-contact-card .card-content {
    text-align: center;
    padding: 20px;
}

/* ============================================
   TABLET RESPONSIVE (768px and up)
   ============================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        min-height: 65vh;
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 500px;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 180px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .restaurant-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .restaurant-image img {
        height: 300px;
    }
    
    .restaurant-title {
        flex-direction: row;
        align-items: center;
    }
    
    .restaurant-title h2 {
        font-size: 2rem !important;
    }
    
    .restaurant-meta {
        grid-template-columns: 1fr 1fr;
    }
    
    .restaurant-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .restaurant-actions .btn {
        width: auto;
        flex: 0 0 auto;
        min-width: 150px;
    }
    
    .restaurant-info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .menu-section {
        padding: 40px 30px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .form-row.triple {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    
    .booking-contacts {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .popular-dishes .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DESKTOP RESPONSIVE (1024px and up)
   ============================================ */

@media (min-width: 1024px) {
    .hero {
        min-height: 70vh;
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .restaurant-section {
        margin-bottom: 80px !important;
        padding: 60px 0 !important;
    }
    
    .restaurant-header {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }
    
    .restaurant-info {
        order: 1;
    }
    
    .restaurant-image {
        order: 2;
    }
    
    .restaurant-image img {
        height: 350px;
    }
    
    .restaurant-title h2 {
        font-size: 2.2rem !important;
    }
    
    .restaurant-description {
        font-size: 1.1rem !important;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .menu-section {
        padding: 50px 40px !important;
    }
    
    .popular-dishes .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .booking-form {
        max-width: 800px;
    }
    
    .menu-filter {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
}

/* ============================================
   LARGE DESKTOP (1200px and up)
   ============================================ */

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    
    .restaurant-header {
        gap: 60px;
    }
    
    .restaurant-image img {
        height: 400px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mobile-hidden {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-hidden {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
    
    .tablet-hidden {
        display: none;
    }
    
    .tablet-only {
        display: block;
    }
}

@media (min-width: 1024px) {
    .tablet-hidden {
        display: block;
    }
    
    .tablet-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* ============================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .menu-filter {
        min-height: 40px;
        padding: 10px 16px !important;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .menu-item-card:hover {
        transform: none;
    }
    
    .menu-item-card:hover .menu-item-image img {
        transform: none;
    }
}

/* ============================================
   VERY SMALL MOBILE (up to 375px)
   ============================================ */

@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .restaurant-title h2 {
        font-size: 1.6rem !important;
    }
    
    .menu-item-title {
        font-size: 1rem !important;
    }
    
    .menu-filter {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .restaurant-actions .btn {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .hero-buttons,
    .menu-filters,
    .booking-section {
        display: none;
    }
    
    .restaurant-section {
        page-break-inside: avoid;
        margin-bottom: 40px !important;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
} 