/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --rh-red:      #c0392b;
  --rh-red-dark: #96281b;
  --rh-gold:     #e67e22;
  --rh-cream:    #fdf6ec;
  --rh-dark:     #2c1a0e;
  --rh-card-radius: 12px;
  --rh-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  background: var(--rh-cream);
  font-family: 'Inter', sans-serif;
  color: #2c2c2c;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.rh-navbar {
  background: linear-gradient(135deg, #2c1a0e 0%, #4a2c17 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  padding: .75rem 0;
}
.rh-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.rh-logo-icon { font-size: 1.5rem; }
.rh-avatar { width: 30px; height: 30px; object-fit: cover; }

/* ── Typography ────────────────────────────────────────────────────────────── */
.rh-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--rh-dark);
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.rh-card {
  border-radius: var(--rh-card-radius);
  border: 1px solid #e8ddd3;
  box-shadow: var(--rh-shadow);
  background: #fff;
}
.rh-card .card-header {
  background: #f9f3ed;
  border-bottom: 1px solid #e8ddd3;
  border-radius: calc(var(--rh-card-radius) - 1px) calc(var(--rh-card-radius) - 1px) 0 0 !important;
  padding: .75rem 1rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-rh {
  background: linear-gradient(135deg, var(--rh-red) 0%, var(--rh-red-dark) 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform .1s, box-shadow .1s;
}
.btn-rh:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,57,43,.4); }
.btn-rh:active { transform: translateY(0); }

.btn-google {
  background: #fff;
  border: 1.5px solid #dadce0;
  color: #3c4043;
  font-weight: 500;
  border-radius: 8px;
  transition: box-shadow .15s;
}
.btn-google:hover { box-shadow: 0 1px 6px rgba(0,0,0,.15); color: #3c4043; }

.btn-xs { padding: .15rem .45rem; font-size: .75rem; border-radius: 5px; }

/* ── Price ─────────────────────────────────────────────────────────────────── */
.rh-price {
  color: var(--rh-red);
  font-weight: 700;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.rh-footer {
  background: #2c1a0e;
  color: #b8a89a;
  padding: 1.5rem 0;
  font-size: .875rem;
}

/* ── Auth ──────────────────────────────────────────────────────────────────── */
.rh-login-icon { font-size: 3rem; }

/* ── Registration ──────────────────────────────────────────────────────────── */
.rh-location-list .rh-location-item {
  background: #f9f3ed;
  border: 1.5px solid #e8ddd3;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rh-location-list .rh-location-item:has(input:checked) {
  border-color: var(--rh-red);
  background: #fff5f3;
}

/* ── Text Calendar ─────────────────────────────────────────────────────────── */
.rh-text-calendar { display: flex; flex-direction: column; gap: 0; }

.rh-day-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid #e8ddd3;
  background: #fff;
  transition: background .1s;
}
.rh-day-row:first-child { border-radius: var(--rh-card-radius) var(--rh-card-radius) 0 0; }
.rh-day-row:last-child { border-bottom: none; border-radius: 0 0 var(--rh-card-radius) var(--rh-card-radius); }
.rh-day-row:hover { background: #fffaf7; }
.rh-day-row.rh-today { background: #fff8f5; }
.rh-day-row.rh-past { opacity: .6; }

.rh-day-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding-top: 2px;
}
.rh-dow {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: .5px;
}
.rh-date {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rh-dark);
}

.rh-text-meal-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
  padding: .3rem .5rem;
  border-radius: 6px;
  transition: background .1s;
  border: 1.5px solid transparent;
}
.rh-text-meal-link:hover:not(.rh-disabled) {
  background: #fff0ec;
  border-color: #f5c6be;
  color: var(--rh-red);
  text-decoration: none;
}
.rh-text-meal-link.rh-disabled {
  opacity: .5;
  pointer-events: none;
}

.rh-meal-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.entree-dot { background: var(--rh-red); }
.addon-dot  { background: #888; }

.rh-meal-name { font-weight: 500; }
.rh-meal-price { color: #888; font-size: .85rem; margin-left: auto; white-space: nowrap; }

.rh-text-addons .rh-addon-badge { background: #e8ddd3; color: #4a3728; }

.rh-ordered-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .85rem;
}

/* ── Image Calendar ─────────────────────────────────────────────────────────── */
.rh-day-card {
  border-radius: var(--rh-card-radius);
  border: 1.5px solid #e8ddd3;
  background: #fff;
  box-shadow: var(--rh-shadow);
  overflow: hidden;
}
.rh-day-card.rh-day-card-past { opacity: .65; }
.rh-day-card-header {
  background: #f9f3ed;
  padding: .5rem .75rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .9rem;
  border-bottom: 1px solid #e8ddd3;
}
.rh-card-date { font-size: .75rem; color: #888; }
.rh-day-card-body { display: flex; flex-direction: column; }

.rh-img-meal-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0e8e0;
  transition: background .1s;
}
.rh-img-meal-card:hover:not(.rh-disabled) { background: #fff5f0; text-decoration: none; color: inherit; }
.rh-img-meal-card.rh-disabled { opacity: .5; pointer-events: none; }

.rh-meal-thumb {
  width: 52px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #f0e8e0;
}
.rh-meal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rh-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 1.2rem;
}
.rh-sold-out-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  color: #fff; font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; letter-spacing: .5px;
}
.rh-meal-title { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.rh-meal-meta { display: flex; align-items: center; gap: .35rem; margin-top: .15rem; }
.rh-img-addons { background: #f9f3ed; }

/* ── Order Page ─────────────────────────────────────────────────────────────── */
.rh-step-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.rh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--rh-red);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rh-meal-selector {
  display: flex;
  flex-direction: column;
  border: 2px solid #e8ddd3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.rh-meal-selector:hover { border-color: #f0a090; }
.rh-meal-selector.selected {
  border-color: var(--rh-red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.rh-meal-selector.rh-sold-out { opacity: .5; cursor: not-allowed; }
.rh-selector-img { width: 100%; height: 140px; object-fit: cover; }
.rh-selector-no-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: #f9f3ed;
}
.rh-selector-body { padding: .75rem; }
.rh-selector-name { font-weight: 700; }
.rh-selector-desc { font-size: .8rem; color: #777; margin-top: .25rem; }

.rh-addon-selector {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border: 2px solid #e8ddd3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
}
.rh-addon-selector:hover { border-color: #c0c0c0; }
.rh-addon-selector.selected { border-color: var(--rh-red); background: #fff5f3; }
.rh-addon-selector.rh-sold-out { opacity: .5; cursor: not-allowed; }
.rh-addon-thumb { width: 40px; height: 36px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.rh-addon-body { flex-grow: 1; }
.rh-addon-check { color: var(--rh-red); opacity: 0; transition: opacity .15s; }
.rh-addon-selector.selected .rh-addon-check { opacity: 1; }

.rh-location-selector {
  display: flex;
  align-items: center;
  padding: .6rem .75rem;
  border: 2px solid #e8ddd3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
}
.rh-location-selector:hover { border-color: #c0c0c0; }
.rh-location-selector.selected { border-color: var(--rh-red); background: #fff5f3; }

.rh-summary-card { background: #f9f3ed; border-color: #e0cfc2; }
.rh-addon-badge { background: #e8ddd3; color: #4a3728; }

/* ── Admin ──────────────────────────────────────────────────────────────────── */
.rh-stat-card {
  border-radius: var(--rh-card-radius);
  box-shadow: var(--rh-shadow);
}
.rh-stat-card .card-body { padding: 1.25rem; }
.rh-stat-icon { font-size: 2rem; margin-bottom: .25rem; opacity: .85; }
.rh-stat-value { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.rh-stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; opacity: .85; margin-top: .15rem; }

.rh-admin-meal-img { height: 160px; object-fit: cover; }
.rh-admin-no-img {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: #f0e8e0;
}
.rh-admin-menu-item { background: #f9f3ed; border: 1px solid #e8ddd3; }

/* ── View tabs ──────────────────────────────────────────────────────────────── */
.rh-view-tabs .nav-link {
  color: #666;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
}
.rh-view-tabs .nav-link.active {
  color: var(--rh-red);
  border-color: #e8ddd3 #e8ddd3 #fff;
  font-weight: 600;
}

/* ── Profile ────────────────────────────────────────────────────────────────── */
.rh-avatar-placeholder {
  width: 80px; height: 80px;
  background: #e8ddd3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .rh-day-row { flex-direction: column; gap: .5rem; }
  .rh-day-label { flex-direction: row; gap: .5rem; min-width: auto; }
}
