/* /assets/css/theme-paper.css
   RestaurantCMS demo theme: Paper Menu (light, print-ish, high readability)
   Loaded AFTER /assets/css/styles.css
*/

body.theme-paper {
  /* Theme tokens (override inherited vars used all over styles.css) */
  --bg: #f6f0e3;
  --bg-alt: #efe6d3;
  --surface: #fffaf0;

  --text: #141414;
  --muted: rgba(20, 20, 20, 0.72);

  --accent: #8a2d1f;      /* warm “ink stamp” */
  --accent-soft: #3a6f66; /* muted teal accent */

  --border-soft: rgba(20, 20, 20, 0.22);
  --shadow-soft: 0 14px 28px rgba(20, 20, 20, 0.10);

  --radius: 12px;
  --max-width: 1100px;

  --font-head: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(0,0,0,0.05), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(0,0,0,0.035), transparent 55%),
    linear-gradient(180deg, #fbf5e8, #f2ead8);
}

body.theme-paper a { color: var(--accent); }
body.theme-paper a:hover { color: #6f2318; text-decoration: underline; }

/* Kill the neon “night” look */
body.theme-paper .hero-overlay,
body.theme-paper .page-hero .hero-overlay {
  display: none;
}

body.theme-paper .site-header {
  background: rgba(251, 245, 232, 0.92);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(20,20,20,0.20);
}

body.theme-paper .site-nav a { color: rgba(20,20,20,0.92); }
body.theme-paper .site-nav li.active a::after,
body.theme-paper .site-nav a:hover::after {
  background: var(--accent);
  height: 2px;
}

body.theme-paper .nav-toggle {
  border-color: rgba(20,20,20,0.30);
}
body.theme-paper .nav-toggle span { background: rgba(20,20,20,0.85); }

/* Demo banner */
body.theme-paper .demo-banner {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.25));
  border-bottom: 1px solid rgba(20,20,20,0.18);
}
body.theme-paper .demo-banner-pill {
  background: rgba(138,45,31,0.10);
  border-color: rgba(138,45,31,0.35);
  color: rgba(138,45,31,0.95);
}

/* Section shells */
body.theme-paper .section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(239,230,211,0.35));
}
body.theme-paper .section-title {
  color: rgba(20,20,20,0.72);
  letter-spacing: 0.14em;
}
body.theme-paper .section-intro { color: var(--muted); }

body.theme-paper .hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1)),
    radial-gradient(circle at 20% 10%, rgba(138,45,31,0.10), transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(58,111,102,0.10), transparent 52%),
    linear-gradient(180deg, #fbf5e8, #f2ead8);
}

body.theme-paper .hero-kicker { color: rgba(138,45,31,0.85); }
body.theme-paper .hero h1 {
  color: rgba(20,20,20,0.95);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.01em;
}
body.theme-paper .hero-body { color: var(--muted); }

/* Buttons: paper-stamp style */
body.theme-paper .btn {
  border-radius: 10px;
  letter-spacing: 0.12em;
}
body.theme-paper .btn-primary {
  background: rgba(138,45,31,0.08);
  border: 1px solid rgba(138,45,31,0.45);
  color: rgba(138,45,31,0.95);
}
body.theme-paper .btn-primary:hover {
  background: rgba(138,45,31,0.13);
  border-color: rgba(138,45,31,0.6);
  color: rgba(138,45,31,1);
}
body.theme-paper .btn-outline {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20,20,20,0.22);
  color: rgba(20,20,20,0.82);
}
body.theme-paper .btn-outline:hover {
  background: rgba(255,255,255,0.75);
  border-color: rgba(20,20,20,0.34);
  color: rgba(20,20,20,0.92);
}

/* Images: lighter, “printed/photo” feel */
body.theme-paper .story-image img,
body.theme-paper .story-photo,
body.theme-paper .contact-map-thumb img {
  box-shadow: 0 10px 18px rgba(20,20,20,0.12);
  border-radius: 12px;
  border: 1px solid rgba(20,20,20,0.16);
}

/* Menu category nav (“tabs” instead of neon pills) */
body.theme-paper .section-menu-nav {
  background: transparent;
  border-bottom: 1px dashed rgba(20,20,20,0.22);
}
body.theme-paper .menu-category-pill {
  background: rgba(255,255,255,0.6);
  border-color: rgba(20,20,20,0.22);
  color: rgba(20,20,20,0.72);
  border-radius: 10px;
}
body.theme-paper .menu-category-pill:hover,
body.theme-paper .menu-category-pill:focus-visible {
  background: rgba(255,255,255,0.8);
  border-color: rgba(138,45,31,0.45);
  color: rgba(138,45,31,0.95);
  box-shadow: 0 10px 18px rgba(20,20,20,0.10);
  transform: translateY(-1px);
}

/* Menu sections */
body.theme-paper .menu-section-header {
  border-left: 3px solid rgba(138,45,31,0.55);
  border-right: 3px solid rgba(20,20,20,0.08);
}

body.theme-paper .menu-section-header-image {
  border: 1px solid rgba(20,20,20,0.18);
  box-shadow: 0 10px 18px rgba(20,20,20,0.10);
}

/* Default menu view: make items feel like a printed list w/ thumbnails */
body.theme-paper .menu-grid {
  margin-top: 1.25rem;
  display: block;
}
body.theme-paper .menu-card {
  background: transparent;
  border: 0;
  border-bottom: 1px dotted rgba(20,20,20,0.28);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;

  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}
body.theme-paper .menu-card:hover,
body.theme-paper .menu-card:focus-within {
  transform: none;
  box-shadow: none;
  border-color: rgba(20,20,20,0.28);
  background: transparent;
}
body.theme-paper .menu-card-image {
  border-radius: 10px;
  width: 140px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(20,20,20,0.18);
  box-shadow: 0 10px 16px rgba(20,20,20,0.10);
}
body.theme-paper .menu-card-image-placeholder {
  height: 96px;
  object-fit: contain;
  background: rgba(255,255,255,0.65);
}

body.theme-paper .menu-card-body { padding: 0; }
body.theme-paper .menu-card-title { font-size: 1.02rem; }
body.theme-paper .menu-card-title .price {
  color: rgba(138,45,31,0.95);
  font-weight: 800;
}
body.theme-paper .menu-card-desc { color: var(--muted); }
body.theme-paper .menu-note { color: rgba(58,111,102,0.95); }

body.theme-paper .menu-card-soldout .menu-card-image {
  filter: grayscale(0.55) contrast(0.95);
  opacity: 0.82;
}
body.theme-paper .menu-card-soldout .menu-card-meta strong {
  color: rgba(138,45,31,0.95);
}

/* But keep the HOME “Menu Highlights” as cards (so it still feels like a showcase) */
body.theme-paper .section-menu-highlight .menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
body.theme-paper .section-menu-highlight .menu-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(20,20,20,0.18);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(20,20,20,0.10);
  display: flex;
  flex-direction: column;
  padding: 0;
}
body.theme-paper .section-menu-highlight .menu-card-image {
  width: 100%;
  height: 190px;
}

/* Forms */
body.theme-paper .form-row label { color: rgba(20,20,20,0.65); }
body.theme-paper .form-row input,
body.theme-paper .form-row textarea {
  background: rgba(255,255,255,0.70);
  border-color: rgba(20,20,20,0.22);
  color: rgba(20,20,20,0.92);
}
body.theme-paper .form-row input::placeholder,
body.theme-paper .form-row textarea::placeholder {
  color: rgba(20,20,20,0.45);
}

/* Footer: paper */
body.theme-paper .site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(239,230,211,0.35));
  border-top: 1px solid rgba(20,20,20,0.18);
}
body.theme-paper .footer-block h4 { color: rgba(20,20,20,0.65); }
body.theme-paper .footer-bottom { border-top-color: rgba(20,20,20,0.18); }

/* Theme switcher (paper colors) */
body.theme-paper .theme-switcher-tab {
  background: rgba(255,255,255,0.78);
  border-color: rgba(20,20,20,0.22);
  color: rgba(20,20,20,0.86);
}
body.theme-paper .theme-switcher-panel {
  background: rgba(255,255,255,0.92);
  border-color: rgba(20,20,20,0.20);
}
body.theme-paper .theme-option.is-active {
  border-color: rgba(138,45,31,0.45);
  background: rgba(138,45,31,0.08);
}

@media (max-width: 700px) {
  body.theme-paper .menu-card {
    grid-template-columns: 1fr;
  }
  body.theme-paper .menu-card-image {
    width: 100%;
    height: 170px;
  }
}
/* Theme switcher: ensure ALL options look “paper”, not neon-glass */
body.theme-paper .theme-option {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(20,20,20,0.18);
  color: rgba(20,20,20,0.88);
  box-shadow: 0 14px 26px rgba(20,20,20,0.12);
}

body.theme-paper .theme-option:hover,
body.theme-paper .theme-option:focus-visible {
  background: rgba(255,255,255,0.98);
  border-color: rgba(138,45,31,0.35);
  transform: translateY(-1px);
}

body.theme-paper .theme-option-name { color: rgba(20,20,20,0.95); }
body.theme-paper .theme-option-note { color: rgba(20,20,20,0.65); }


/* Shared “page hero” used by Menu/About/etc (kills lingering neon band) */
body.theme-paper .page-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12)),
    radial-gradient(circle at 20% 10%, rgba(138,45,31,0.10), transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(58,111,102,0.10), transparent 52%),
    linear-gradient(180deg, #fbf5e8, #f2ead8);
  color: var(--text);
}

body.theme-paper .page-hero::before,
body.theme-paper .page-hero::after {
  content: none !important;
}

body.theme-paper .page-hero h1,
body.theme-paper .page-hero h2 { color: rgba(20,20,20,0.95); font-family: var(--font-head); }

body.theme-paper .page-hero p,
body.theme-paper .page-hero .small { color: var(--muted); }
@media (max-width: 900px) {
  body.theme-paper .site-nav {
    background: rgba(251, 245, 232, 0.98) !important;
    border: 1px solid rgba(20,20,20,0.18);
    box-shadow: 0 18px 40px rgba(20,20,20,0.14);
    backdrop-filter: none !important;
  }

  body.theme-paper .site-nav a {
    color: rgba(20,20,20,0.90) !important;
  }

  body.theme-paper .site-nav li.active a {
    color: rgba(138,45,31,0.95) !important;
  }

  body.theme-paper .site-nav li.active a::after,
  body.theme-paper .site-nav a:hover::after {
    background: rgba(138,45,31,0.95) !important;
  }
}
/* Home highlights: restore nice card padding */
body.theme-paper .section-menu-highlight .menu-card-body {
  padding: 1rem 1rem 1.05rem;
}

body.theme-paper .section-menu-highlight .menu-card-title {
  margin: 0 0 0.35rem;
}

body.theme-paper .section-menu-highlight .menu-card-desc {
  margin: 0.25rem 0 0;
}
/* Paper theme tweaks (so it doesn't look "dark widget" on light theme) */
body.theme-paper .menu-public-search-label,
body.theme-paper .menu-public-tags-label,
body.theme-paper .menu-public-cats-label{
  color: rgba(0,0,0,0.65);
}
body.theme-paper .menu-public-search{
  border-color: rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.85);
  color: #111;
}
body.theme-paper .menu-tag-pill{
  border-color: rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.78);
  color: #111;
}
body.theme-paper .menu-tag-pill.is-active{
  border-color: rgba(231,170,43,0.75);
  background: rgba(231,170,43,0.22);
}
body.theme-paper .menu-item-tag{
  border-color: rgba(231,170,43,0.55);
  background: rgba(231,170,43,0.18);
  color: #111;
}