:root {
  --primary-color: #fa4a0c; /* Vibrant Orange/Red from Figma */
  --secondary-color: #252b42; /* Dark Text */
  --text-color: #737373; /* Grey Text */
  --light-bg: #fafafa;
  --white: #ffffff;
  --success-green: #00a300;
  --shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --font-family: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--secondary-color);
  line-height: 1.5;
}

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

/* Header */
.app-header {
  background-color: var(--white);
  padding: 24px 0;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo .highlight {
  color: var(--primary-color);
}

.tagline {
  color: var(--text-color);
  font-weight: 500;
}

/* Main Content */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 60px;
}

/* Restaurant Card */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12);
}

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

.card-content {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.restaurant-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
}

.rating {
  display: flex;
  align-items: center;
  background-color: #e6f7e6; /* Light green bg */
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--success-green);
  font-weight: 600;
  font-size: 14px;
}

.star {
  margin-right: 4px;
}

.cuisine {
  color: var(--text-color);
  font-size: 14px;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eeeeee;
  padding-top: 16px;
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

.delivery-time {
  display: flex;
  align-items: center;
}

.icon {
  margin-right: 6px;
  color: var(--primary-color);
}

/* Button Styles */
.add-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px; /* Rounded pill shape */
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #d63e08;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--secondary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: var(--secondary-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #d63e08;
}

/* Responsive */
@media (max-width: 600px) {
    .header-content {
        flex-direction: row; /* Keep header items in row on mobile too if possible, or adjust */
        flex-wrap: wrap;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
