/* Index Page Specific Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(14px, 3vw, 18px);
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.order-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.order-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: #2d3436;
}

.view-all-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all-btn:hover {
    color: #764ba2;
    border-color: rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.categories-scroll-container {
    position: relative;
    overflow-x: auto;
    padding-bottom: 10px;
    margin: 0 -15px;
    padding: 0 15px 15px;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f5f5f5;
}

.categories-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.categories-grid {
    display: flex;
    gap: 15px;
    padding-bottom: 5px;
    min-width: min-content;
}

.category-card {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px 10px;
    border-radius: 15px;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-count {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Restaurants Section */
.restaurants-section {
    margin-bottom: 50px;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.restaurant-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.restaurant-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.restaurant-image {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.restaurant-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.status-badge.open {
    background: rgba(76, 175, 80, 0.95);
}

.status-badge.closed {
    background: rgba(244, 67, 54, 0.95);
}

.restaurant-info {
    padding: 16px;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.restaurant-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    flex: 1;
    line-height: 1.3;
}

.restaurant-rating {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.restaurant-rating i {
    font-size: 10px;
}

.restaurant-description {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.restaurant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.delivery-time,
.delivery-charge {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delivery-time i,
.delivery-charge i {
    color: #667eea;
    font-size: 11px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
}

.no-results i {
    font-size: 50px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.no-results h3 {
    margin: 0 0 8px 0;
    color: #2d3436;
    font-size: 20px;
}

.no-results p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 15px;
}

.change-location-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.change-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
}

/* Scroll indicators for categories */
.categories-scroll-container {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 15px;
        margin-bottom: 25px;
        border-radius: 15px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .order-now-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .categories-section {
        margin-bottom: 30px;
    }
    
    .categories-grid {
        gap: 12px;
    }
    
    .category-card {
        width: 120px;
    }
    
    .category-card a {
        padding: 12px 8px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 14px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
    
    .food-count {
        font-size: 11px;
    }
    
    .restaurants-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .restaurant-image {
        height: 150px;
    }
    
    .restaurant-info {
        padding: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .view-all-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results i {
        font-size: 45px;
    }
    
    .no-results h3 {
        font-size: 18px;
    }
    
    .no-results p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 25px 12px;
        border-radius: 12px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .order-now-btn {
        padding: 11px 22px;
        font-size: 13px;
    }
    
    .categories-grid {
        gap: 10px;
    }
    
    .category-card {
        width: 110px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .restaurant-card {
        border-radius: 15px;
    }
    
    .restaurant-image {
        height: 140px;
    }
    
    .restaurant-header h3 {
        font-size: 15px;
    }
    
    .restaurant-rating {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .restaurant-description {
        font-size: 12px;
    }
    
    .delivery-time,
    .delivery-charge {
        font-size: 11px;
    }
    
    .no-results {
        padding: 35px 12px;
    }
    
    .no-results i {
        font-size: 40px;
    }
    
    .no-results h3 {
        font-size: 17px;
    }
}

/* Hide scroll indicators on mobile */
@media (max-width: 768px) {
    .categories-scroll-container {
        margin: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .categories-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .categories-scroll-container {
        scrollbar-width: none;
    }
}