/* Mobile CSS - Reemzet Food Delivery App */

/* Mobile Specific Styles (320px - 767px) */

/* Base Mobile Adjustments */
.container {
    padding: 0 15px;
}

/* Header Mobile */
.header {
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.header-content {
    padding: 0.6rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-size: 1.1rem;
    order: 1;
}

.logo i {
    font-size: 1.5rem;
}

.header-actions {
    order: 2;
    gap: 0.5rem;
}

.search-btn,
.cart-btn,
.profile-btn {
    font-size: 1rem;
    padding: 0.3rem;
}

.cart-count {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    top: -3px;
    right: -3px;
}

.nav {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
}

.nav-list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
}

/* Hero Section Mobile */
.hero {
    padding: 80px 0 40px;
    margin-top: 60px;
}

.hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
}

.hero-search {
    margin-top: 1.5rem;
}

.search-input-group {
    max-width: 100%;
    padding: 0.3rem;
    border-radius: 25px;
}

.search-input-group i {
    font-size: 1rem;
    margin: 0 0.8rem;
}

.search-input {
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.search-submit {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.hero-img {
    max-width: 90%;
    border-radius: 15px;
}

/* Categories Section Mobile */
.categories {
    padding: 40px 0;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-card {
    padding: 1rem;
    border-radius: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.category-card p {
    font-size: 0.8rem;
}

/* Restaurants Section Mobile */
.restaurants {
    padding: 40px 0;
}

.restaurants-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.restaurant-card {
    border-radius: 15px;
}

.restaurant-image {
    height: 150px;
}

.restaurant-badge {
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.restaurant-info {
    padding: 1rem;
}

.restaurant-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.restaurant-info p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.restaurant-tags {
    gap: 0.3rem;
}

.tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 10px;
}

/* Featured Menu Section Mobile */
.featured-menu {
    padding: 40px 0;
}

.menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.menu-item {
    border-radius: 15px;
}

.menu-image {
    height: 150px;
}

.add-to-cart {
    width: 32px;
    height: 32px;
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.8rem;
}

.menu-info {
    padding: 1rem;
}

.menu-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.menu-info p {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.menu-price {
    margin-bottom: 0.3rem;
}

.price {
    font-size: 1.1rem;
}

.original-price {
    font-size: 0.9rem;
}

.menu-rating {
    font-size: 0.8rem;
}

/* Offers Section Mobile */
.offers {
    padding: 40px 0;
}

.offers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.offer-card {
    border-radius: 15px;
}

.offer-image {
    height: 150px;
}

.offer-content {
    padding: 1rem;
}

.offer-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.offer-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.offer-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* Footer Mobile */
.footer {
    padding: 40px 0 15px;
}

.footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    justify-content: center;
}

.footer-logo i {
    font-size: 1.6rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.footer-section p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section ul li a {
    font-size: 0.85rem;
}

.social-links {
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.contact-info p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    justify-content: center;
}

.contact-info i {
    width: 16px;
}

.footer-bottom {
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    .search-input-group {
        padding: 0.25rem;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .search-submit {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .categories-grid {
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 0.8rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
    }
    
    .restaurant-image,
    .menu-image,
    .offer-image {
        height: 130px;
    }
    
    .restaurant-info,
    .menu-info,
    .offer-content {
        padding: 0.8rem;
    }
    
    .restaurant-info h3,
    .menu-info h3,
    .offer-content h3 {
        font-size: 1rem;
    }
    
    .restaurant-info p,
    .menu-info p,
    .offer-content p {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .offer-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Medium Mobile (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .category-card h3 {
        font-size: 1.05rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
    }
}

/* Large Mobile (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .category-card {
        padding: 1.3rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover,
    .restaurant-card:hover,
    .menu-item:hover,
    .offer-card:hover {
        transform: none;
    }
    
    .add-to-cart {
        opacity: 1;
    }
    
    .search-btn:hover,
    .cart-btn:hover,
    .profile-btn:hover {
        background: none;
        color: #333;
    }
    
    .nav-link:hover {
        color: #333;
    }
    
    .nav-link.active {
        color: #ff6b00;
    }
}
