/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f1f2f6;
}

/* Header and Navigation */
.navbar {
    background-color: #ff4757;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f1f2f6;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
}

.restaurant-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#searchInput {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #dfe4ea;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #ff4757;
}

#filterSelect {
    padding: 0.8rem;
    border: 1px solid #dfe4ea;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#filterSelect:focus {
    outline: none;
    border-color: #ff4757;
}

/* Restaurant Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.restaurant-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.restaurant-info {
    padding: 1.5rem;
}

.restaurant-info h3 {
    color: #2f3542;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.restaurant-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffa502;
    font-weight: 500;
}

.delivery-time {
    color: #57606f;
}

.address, .cuisine {
    color: #57606f;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.view-menu-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.view-menu-btn:hover {
    background-color: #ff6b81;
}

/* Footer */
footer {
    background-color: #2f3542;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .search-section {
        flex-direction: column;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-card img {
        height: 180px;
    }
} 