/* ============================================
   RestGuru.site — Master Stylesheet (Light Theme)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────── */
:root {
  /* Core palette */
  --white:        #ffffff;
  --bg:           #f7f5f2;
  --bg-warm:      #f0ede8;
  --surface:      #ffffff;
  --surface-2:    #f5f3ef;
  --surface-3:    #ece9e3;

  /* Borders */
  --border:       #e2ddd6;
  --border-dark:  #ccc7be;

  /* Brand amber */
  --accent:       #b5711a;
  --accent-light: #fdf3e3;
  --accent-hover: #9a5e14;

  /* Text */
  --text:         #1c1916;
  --text-2:       #4a4540;
  --text-3:       #8a8278;
  --text-4:       #b5b0a8;

  /* Semantic */
  --green:        #1a7a45;
  --green-bg:     #edf7f1;
  --red:          #b5231a;
  --red-bg:       #fdf0ef;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;

  /* Layout */
  --max-w:  1200px;
  --ease:   0.22s ease;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-sans); }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--text); }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247,245,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--text); }

.header-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 12px;
  gap: 8px;
  flex: 1;
  max-width: 300px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,113,26,0.12);
}
.header-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-sans);
  font-size: 0.875rem; width: 100%; padding: 9px 0;
}
.header-search input::placeholder { color: var(--text-4); }
.search-icon { color: var(--text-4); font-size: 0.9rem; flex-shrink: 0; }

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease), background var(--ease);
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-nav a.active { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
  margin-left: auto;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--ease);
}

/* ─── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 11px 24px;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.breadcrumb-inner a { color: var(--text-2); transition: color var(--ease); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { color: var(--text-4); }
.breadcrumb-inner .current { color: var(--text-2); font-weight: 500; }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #2c2420;
  color: #d4cfc8;
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
  margin-top: 80px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3d3530;
}
.footer-brand .site-logo { font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand .site-logo span { color: #d4cfc8; }
.footer-brand p { font-size: 0.875rem; color: #9c9490; line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-serif); font-size: 0.85rem; font-weight: 700;
  color: #f0ece6; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.875rem; color: #9c9490; transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: #6a6460; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: #6a6460; transition: color var(--ease); }
.footer-bottom-links a:hover { color: #9c9490; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(181,113,26,0.3);
}
.btn-outline {
  background: transparent; color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ─── BADGES ─────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.badge-open  { background: var(--green-bg); color: var(--green); }
.badge-closed{ background: var(--red-bg);   color: var(--red); }
.badge-category { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ─── STARS ──────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: #d4940a; font-size: 0.9rem; }
.stars .star.empty { color: var(--border-dark); }

/* ─── TAGS ───────────────────────────────────── */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ─── AD SLOTS ───────────────────────────────── */
.ad-slot {
  background: #faf8f5;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  min-height: 90px; margin: 32px auto;
}
.ad-slot-banner { max-width: 728px; }
.ad-slot-rect { width: 100%; max-width: 336px; min-height: 280px; }

/* ─── UTILITY ────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }  .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px;  }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }  .mb-32 { margin-bottom: 32px; }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .header-nav {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px; flex-direction: column;
    align-items: flex-start; gap: 2px;
  }
  .header-nav.open { display: flex; }
  .header-nav a { width: 100%; padding: 11px 16px; font-size: 0.95rem; border-radius: var(--r-sm); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── LEGACY VARIABLE ALIASES ────────────────── */
/* Maps old dark-theme variable names → new light tokens */
/* Ensures inline styles in HTML still resolve correctly */
:root {
  --color-bg:           var(--bg);
  --color-surface:      var(--surface);
  --color-surface2:     var(--surface-2);
  --color-border:       var(--border);
  --color-accent:       var(--accent);
  --color-accent-dark:  var(--accent-hover);
  --color-accent-light: var(--accent-light);
  --color-text:         var(--text);
  --color-text-muted:   var(--text-2);
  --color-text-dim:     var(--text-3);
  --color-red:          var(--red);
  --color-green:        var(--green);
  --radius:             var(--r-md);
  --radius-lg:          var(--r-lg);
  --shadow:             var(--shadow-sm);
  --shadow-md:          var(--shadow-md);
  --shadow-lg:          var(--shadow-lg);
  --font-display:       var(--font-serif);
  --font-body:          var(--font-sans);
  --max-width:          var(--max-w);
  --transition:         var(--ease);
}
