/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif; /* Using Roboto for a modern feel */
}

body {
  background-color: #f8f8f8; /* Lighter background */
  color: #333;
  line-height: 1.6;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Softer shadow */
}

.logo {
  font-size: 1.8rem; /* Slightly larger logo */
  font-weight: bold;
  color: #e44d26; /* A more vibrant orange/red */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px; /* More spacing in nav */
}

nav a {
  text-decoration: none;
  color: #555; /* Softer text color */
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: #e44d26;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px; /* More vertical padding */
  background: linear-gradient(to right, #fff0f0, #ffebeb); /* Subtle gradient */
  color: #333;
}

.hero h1 {
  font-size: 3rem; /* Larger heading */
  color: #e44d26;
  margin-bottom: 15px;
}

.hero p {
  margin: 10px 0 30px;
  font-size: 1.2rem;
  color: #666;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  padding: 12px 15px;
  width: 100%; /* Make input take full width of container */
  border: 1px solid #ddd;
  border-radius: 8px; /* More rounded corners */
  font-size: 1rem;
}

.search-box button {
  padding: 12px 25px;
  background: #e44d26;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #c23e1f;
}

/* Restaurants Section */
.restaurants {
  padding: 40px 80px; /* Increased padding */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.navigation-arrows button {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.2s, border-color 0.2s;
}

.navigation-arrows button:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.restaurant-list {
  display: flex; /* Use flexbox for horizontal scroll/layout */
  overflow-x: auto; /* Enable horizontal scrolling */
  gap: 30px; /* Spacing between cards */
  padding-bottom: 20px; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  /* Hide scrollbar for a cleaner look if desired, but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.restaurant-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


.restaurant-card {
  flex: 0 0 320px; /* Fixed width for cards, adjust as needed */
  background: white;
  border-radius: 12px; /* More rounded corners */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Stronger but softer shadow */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: pointer;
  margin-bottom: 20px; /* Space below card if wrapping */
}

.restaurant-card:hover {
  transform: translateY(-5px); /* More pronounced lift */
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (height / width * 100) */
  overflow: hidden;
}

.card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}

.restaurant-card:hover .card-image-wrapper img {
  transform: scale(1.05); /* Subtle hover zoom */
}

.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff5722; /* Swiggy-like orange */
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 25px; /* Pill shape */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Specific styling for 'GRF SPECIAL' if needed */
.discount-badge.grf-special {
    background: #9d29b0; /* A distinct color for GRF SPECIAL */
}


.rating-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Darker, semi-transparent background */
  color: #fff;
  padding: 10px 15px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align rating to the right */
  gap: 5px;
}

.rating-overlay .fas.fa-star {
  color: #fdd835; /* Gold star color */
  font-size: 1rem;
}

.card-details {
  padding: 15px 20px 20px; /* Increased bottom padding */
}

.restaurant-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.cuisine-info {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.price-distance {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  border-bottom: 1px dashed #eee; /* Subtle separator */
  padding-bottom: 15px;
}

.offers {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap; /* Allows tags to wrap if many */
    gap: 8px; /* Space between tags */
}

.offer-tag {
    background: #e6f7ed; /* Light green background */
    color: #2e7d32; /* Darker green text */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.offer-tag .fas.fa-tag {
    font-size: 0.75rem;
}


.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-buttons button {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left; /* Align text to left */
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
}

.primary-offer {
  background: #388e3c; /* Dark green */
  color: white;
  box-shadow: 0 2px 5px rgba(0, 128, 0, 0.2);
}

.primary-offer:hover {
  background: #2e7d32;
  box-shadow: 0 4px 8px rgba(0, 128, 0, 0.3);
}

.secondary-offer {
  background: #e6f7ed; /* Lighter green for secondary */
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.secondary-offer:hover {
  background: #d4eeda;
  border-color: #81c784;
}

.more-offers {
  float: right; /* Aligns to right */
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
}
.primary-offer .more-offers {
    color: rgba(255, 255, 255, 0.8);
}
.secondary-offer .more-offers {
    color: #2e7d32; /* Match secondary button color */
}


.extra-offer {
    font-size: 0.8rem;
    color: #e44d26; /* Highlight in an accent color */
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}


/* Footer */
footer {
  background: #1a1a1a; /* Even darker footer */
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin-top: 60px;
}

footer .brand {
  color: #ff7f50;
  font-weight: bold;
}

footer p {
  margin: 8px 0;
  font-size: 1rem;
  color: #bbb;
}

footer .copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #999;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .restaurants {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .restaurants {
        padding: 30px;
    }
    .restaurant-card {
        flex: 0 0 48%; /* Two cards per row on medium screens */
    }
    .restaurant-list {
        flex-wrap: wrap; /* Allow cards to wrap to next line */
        justify-content: center; /* Center cards when wrapping */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    nav ul {
        gap: 15px;
    }
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .search-box input {
        width: 250px;
    }
    .restaurants {
        padding: 20px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .navigation-arrows {
        margin-top: 15px;
        align-self: flex-end;
    }
    .restaurant-list {
        flex-direction: column; /* Stack cards vertically on small screens */
        align-items: center;
        gap: 20px;
    }
    .restaurant-card {
        flex: 0 0 90%; /* Almost full width for single column */
        max-width: 350px; /* Max width for readability */
    }
    .restaurant-name {
        font-size: 1.2rem;
    }
    .cuisine-info, .price-distance, .offer-tag, .action-buttons button {
        font-size: 0.9rem;
    }
    .discount-badge, .rating-overlay {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    .logo {
        font-size: 1.5rem;
    }
    nav {
        width: 100%;
        text-align: center;
    }
    nav ul {
        justify-content: center;
    }
    .search-box {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .search-box input, .search-box button {
        width: 90%;
        margin: 0 auto;
    }
    .restaurants {
        padding: 15px;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .navigation-arrows {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    .restaurant-card {
        flex: 0 0 100%;
        max-width: none;
    }
}
