:root {
  /* Color Palette */
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent: #9333ea;
  --accent-dark: #7e22ce;
  --highlight: #f97316;
  
  /* Styling Variables */
  --border-radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased; /* Makes text look crisper */
}

/* Header */
.food-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.food-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em; 
}

.back-home {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 99px; /* Pill shape is very modern */
  backdrop-filter: blur(4px); /* Subtle glassmorphism */
  transition: all 0.2s ease;
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Grid Layout */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Slightly wider for better text layout */
  gap: 24px; /* Increased breathing room */
  padding: 32px 20px;
  max-width: 1200px;
  margin: 0 auto; /* Centers the grid on large monitors */
}

/* Restaurant Cards */
.restaurant-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04); /* Very subtle border definition */
  overflow: hidden; /* CRITICAL: Ensures the image respects the border-radius */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Card Image */
.restaurant-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* Changed to landscape. Use 1/1 if you truly want a square */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.restaurant-card:hover .restaurant-image {
  transform: scale(1.05); /* Smooth, premium image zoom on hover */
}

/* Card Content */
.card-content {
  padding: 20px;
  background: var(--card-bg); /* Prevents image zoom from bleeding underneath text */
  position: relative;
  z-index: 2;
  flex-grow: 1; /* Pushes footer elements to the bottom if added later */
}

.restaurant-card h2 {
  margin: 0 0 6px;
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  line-height: 1.3;
}

.restaurant-card p {
  margin: 0;
  font-size: 0.875rem; /* 14px */
  color: var(--text-secondary);
  line-height: 1.5;
}

