/* DishDuo SEO Review Pages Stylesheet */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121217;
  --bg-tertiary: #1a1a24;
  --glass-bg: rgba(22, 22, 30, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --grad-primary: linear-gradient(135deg, #ff5a5f 0%, #ff7a45 100%);
  --grad-secondary: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-dark: linear-gradient(180deg, #181824 0%, #0d0d12 100%);
  
  --accent-rose: #ff5a5f;
  --accent-orange: #ff7a45;
  --accent-violet: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(255, 90, 95, 0.25);
  
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow-md: 0 8px 24px rgba(148, 163, 184, 0.15);
    --shadow-lg: 0 16px 40px rgba(148, 163, 184, 0.25);
  }
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header style */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.3rem;
}

.brand-icon {
  background: var(--grad-primary);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-block;
}

.btn-header {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: var(--font-headings);
  transition: opacity 0.2s ease;
}

.btn-header:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 40px;
  height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.4) 60%, rgba(10, 10, 12, 0) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  width: 100%;
}

.badge-cuisine {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 10px;
  color: #fff;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

h2 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 30px 0;
}

.desc-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Ratings Grid */
.ratings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rating-stars {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-rose);
}

/* Menu Review Cards */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-item-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.menu-item-price {
  font-weight: 700;
  color: var(--accent-green);
}

.score-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-secondary);
  padding: 4px 10px;
  border-radius: 8px;
}

.score-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  margin: 10px 0 14px 0;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--grad-secondary);
  border-radius: 3px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(255, 90, 95, 0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px auto;
  font-size: 0.95rem;
}

.btn-cta {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  font-family: var(--font-headings);
  display: inline-block;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 90, 95, 0.4);
}

/* Restaurant Index Card Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.restaurant-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-img-container {
  height: 180px;
  width: 100%;
  position: relative;
}

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

.card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent-rose);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.card-snippet {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-box-container {
  margin-top: 30px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 15px rgba(255, 90, 95, 0.15);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Footer rules */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--glass-border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Fix text contrast in custom menu showcase cards with dark backgrounds */
.menu-showcase-card,
.italian-menu-card,
.menu-card,
.custom-menu-card {
  color: #ffffff !important;
}
