/* Shorefoodies — shared brand styles (used by index.html, listing.html, detail.html, etc.) */

:root {
  --pink: #E8526B;
  --pink-soft: #FBE5E8;
  --cream: #FBF6E5;
  --cream-warm: #FFFDF7;
  --charcoal: #2A2024;
  --charcoal-soft: #6B5E54;
  --gold: #D4A24A;
  --wine: #6B1F2C;
  --sage: #8FA86A;
  --tan: #E8A55B;
  --brick: #B85542;
  --line: #e8dec5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.2; }

.tagline {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------------------------- nav ---------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .logo-link { display: flex; align-items: center; gap: 12px; }
.nav .logo-link img { height: 56px; }
@media (max-width: 1080px) {
  .nav .logo-link img { height: 48px; }
}
@media (max-width: 640px) {
  .nav .logo-link img { height: 40px; }
}
.nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav .nav-links a:hover { color: var(--pink); }
.nav .cta-btn {
  background: var(--pink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.nav .cta-btn:hover { background: var(--charcoal); color: var(--cream); }

/* ---------------------------- buttons ---------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pink); color: var(--cream); }
.btn-primary:hover { background: var(--charcoal); color: var(--cream); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

/* ---------------------------- score badge ---------------------------- */
.score-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}
.score-badge.elite { background: var(--wine); }
.score-badge.approved { background: var(--gold); }
.score-badge.solid { background: var(--sage); }
.score-badge.mixed { background: var(--tan); }
.score-badge.skip { background: var(--brick); }

.tier-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.tier-label.elite { color: var(--wine); }
.tier-label.approved { color: var(--gold); }
.tier-label.solid { color: var(--sage); }
.tier-label.mixed { color: var(--tan); }
.tier-label.skip { color: var(--brick); }

/* ---------------------------- restaurant card ---------------------------- */
.rest-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42,32,36,0.08);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(42,32,36,0.14);
}
.rest-card .photo {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.rest-card .photo .nadia-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 92px;
  height: 92px;
  background-image: url('../nadiaApproved.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(8deg);
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(42,32,36,0.25));
}
.rest-card .rank-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.rest-card .content { padding: 18px 18px 22px; }
.rest-card .content h4 {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 0 0 4px 0;
  line-height: 1.2;
}
.rest-card .content .loc {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rest-card .content .loc::before {
  content: "📍";
  font-size: 12px;
}
.rest-card .content .loc .pending {
  font-weight: 500;
  color: var(--charcoal-soft);
  font-style: italic;
}
.rest-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rest-card .tag {
  background: var(--pink-soft);
  color: var(--pink);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}
.rest-card .tag.style {
  background: rgba(212, 162, 74, 0.14);
  color: #9a7a30;
}
.rest-card .price-pill {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: Georgia, serif;
}
.rest-card .score-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rest-card .score-meta-block { flex: 1; min-width: 0; }
.rest-card .score-meta {
  font-size: 12px;
  color: var(--charcoal);
  margin-top: 4px;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rest-card .name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.rest-card .name-row h4 { margin: 0; flex: 1; min-width: 0; }
.rest-card .yelp-mini {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}
.rest-card .yelp-mini .stars { color: var(--gold); font-size: 14px; }
.rest-card .yelp-mini .val {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}
.rest-card .yelp-mini .src {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 700;
}

/* placeholder photo gradients by tier (until real photos arrive) */
.photo-placeholder.elite { background: linear-gradient(135deg, #d8a8b0 0%, #6B1F2C 100%); }
.photo-placeholder.approved { background: linear-gradient(135deg, #f5d68f 0%, #D4A24A 100%); }
.photo-placeholder.solid { background: linear-gradient(135deg, #c5d3a8 0%, #8FA86A 100%); }
.photo-placeholder.mixed { background: linear-gradient(135deg, #f5d3b8 0%, #E8A55B 100%); }
.photo-placeholder.skip { background: linear-gradient(135deg, #d59c8a 0%, #B85542 100%); }

/* ---------------------------- score scale / legend ---------------------------- */
.score-scale-strip {
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 48px;
}
.score-scale-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.score-scale-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--charcoal-soft);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.score-scale-label strong {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--charcoal);
  letter-spacing: -0.3px;
  text-transform: none;
}
.score-scale-tiers {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.scale-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
  min-width: 160px;
}
.scale-tier .scale-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
}
.scale-tier .scale-badge .stamp-corner {
  position: absolute;
  bottom: -6px;
  right: -10px;
  width: 26px;
  height: 26px;
  background-image: url('../nadiaApproved.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 4px rgba(42,32,36,0.3));
  transform: rotate(10deg);
}
.score-scale-note {
  max-width: 1280px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--charcoal-soft);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
}
.score-scale-note .stamp-icon {
  width: 24px;
  height: 24px;
  background-image: url('../nadiaApproved.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
  transform: rotate(-6deg);
}
.score-scale-note strong { color: var(--pink); font-weight: 700; }
.scale-tier .scale-badge.elite { background: var(--wine); }
.scale-tier .scale-badge.approved { background: var(--gold); }
.scale-tier .scale-badge.solid { background: var(--sage); }
.scale-tier .scale-badge.mixed { background: var(--tan); }
.scale-tier .scale-badge.skip { background: var(--brick); }
.scale-tier .scale-text { display: flex; flex-direction: column; gap: 1px; }
.scale-tier .scale-name {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.scale-tier .scale-name.elite { color: var(--wine); }
.scale-tier .scale-name.approved { color: var(--gold); }
.scale-tier .scale-name.solid { color: var(--sage); }
.scale-tier .scale-name.mixed { color: var(--tan); }
.scale-tier .scale-name.skip { color: var(--brick); }
.scale-tier .scale-range {
  font-size: 11px;
  color: var(--charcoal-soft);
  letter-spacing: 1px;
}
@media (max-width: 1080px) {
  .score-scale-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .score-scale-tiers { width: 100%; }
}

/* ---------------------------- 3-visit qualifier badge ---------------------------- */
.visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f5e3a8 0%, var(--gold) 100%);
  color: var(--charcoal);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(42,32,36,0.1);
}
.visit-badge::before { content: "✓"; font-size: 12px; }

/* ---------------------------- sponsored pill + card ---------------------------- */
.sponsored-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cream);
  color: var(--pink);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--pink);
  z-index: 3;
}
.rest-card.sponsored { border: 1px dashed var(--pink); }
.rest-card.sponsored .content { padding-bottom: 16px; }
.rest-card.sponsored .sponsor-byline {
  font-size: 10px;
  color: var(--charcoal-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* ---------------------------- nav search ---------------------------- */
.nav-search {
  flex: 1;
  max-width: 360px;
  position: relative;
  margin: 0 24px;
}
.nav-search input {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px 10px 38px;
  font-size: 13px;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(232,82,107,0.12); }
.nav-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------------------------- analytics widgets ---------------------------- */
.analytics-strip {
  background: var(--cream-warm);
  padding: 70px 48px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.analytics-tile {
  background: white;
  border-radius: 14px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: all 0.2s;
}
.analytics-tile:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,82,107,0.12);
}
.analytics-tile .label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 700;
}
.analytics-tile .stat {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
}
.analytics-tile .stat .unit { font-size: 16px; color: var(--charcoal-soft); margin-left: 4px; font-family: 'Helvetica Neue', sans-serif; }
.analytics-tile .ctx {
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-top: 4px;
  line-height: 1.4;
}
.analytics-tile .trend {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
  display: inline-block;
  width: max-content;
}
.analytics-tile .trend.up { background: rgba(143,168,106,0.18); color: #5d7544; }
.analytics-tile .trend.down { background: rgba(184,85,66,0.18); color: var(--brick); }
.analytics-tile .micro-bar {
  height: 4px;
  background: var(--pink-soft);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}
.analytics-tile .micro-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--bar-width, 60%);
  background: var(--pink);
  border-radius: 2px;
}

/* ---------------------------- sponsor strip ---------------------------- */
.sponsor-strip {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 48px;
}
.sponsor-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsor-inner .lead {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 700;
  white-space: nowrap;
}
.sponsor-logos {
  display: flex;
  gap: 36px;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
}
.sponsor-logo {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal-soft);
  opacity: 0.55;
  transition: opacity 0.2s;
  letter-spacing: -0.5px;
  padding: 0 8px;
  border-radius: 6px;
}
.sponsor-logo:hover { opacity: 1; }
.sponsor-cta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
  border-bottom: 1px solid var(--pink);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* ---------------------------- follow / subscribe ---------------------------- */
.follow-section {
  background:
    radial-gradient(circle at 80% 30%, rgba(212,162,74,0.15), transparent 50%),
    var(--charcoal);
  color: var(--cream);
  padding: 80px 48px;
}
.follow-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.follow-inner h2 { color: var(--cream); margin-bottom: 14px; }
.follow-inner p {
  font-size: 16px;
  color: rgba(251,246,229,0.75);
  max-width: 540px;
  margin: 0 auto 28px;
}
.follow-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.follow-form input {
  flex: 1;
  min-width: 220px;
  background: rgba(251,246,229,0.08);
  border: 1px solid rgba(251,246,229,0.2);
  border-radius: 100px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--cream);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.follow-form input::placeholder { color: rgba(251,246,229,0.4); }
.follow-form input:focus { border-color: var(--pink); }
.follow-form button {
  background: var(--pink);
  color: var(--cream);
  border: 0;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.follow-form button:hover { background: var(--cream); color: var(--pink); }
.follow-socials {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(251,246,229,0.5);
  font-weight: 700;
}
.follow-socials a {
  color: var(--cream);
  margin: 0 10px;
  border-bottom: 1px solid var(--pink);
  padding-bottom: 1px;
}
.follow-socials a:hover { color: var(--pink); }
.follow-decoration {
  position: absolute;
  top: -50px;
  right: -20px;
  width: 140px;
  height: 140px;
  background-image: url('../nadiaApproved.png');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(12deg);
  opacity: 0.95;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
  pointer-events: none;
}

@media (max-width: 1080px) {
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-search { display: none; }
  .follow-decoration { display: none; }
}
@media (max-width: 640px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .sponsor-inner { gap: 16px; }
  .sponsor-inner .lead { width: 100%; text-align: center; }
}

/* ---------------------------- footer ---------------------------- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 60px 48px 30px;
}
.footer .footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer h5 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 14px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 13px; }
.footer a { color: var(--cream); }
.footer a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid rgba(251,246,229,0.15);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 11px;
  color: rgba(251,246,229,0.5);
  letter-spacing: 1px;
}
.footer-attribution {
  text-align: center;
  font-size: 11px;
  color: rgba(251,246,229,0.4);
  letter-spacing: 0.5px;
  margin-top: 14px;
  line-height: 1.6;
}
.footer-attribution a { color: rgba(251,246,229,0.65); border-bottom: 1px dashed rgba(251,246,229,0.3); }
.footer-attribution a:hover { color: var(--pink); border-color: var(--pink); }

/* ---------------------------- section helpers ---------------------------- */
.section { padding: 80px 48px; }
.section-narrow { max-width: 1280px; margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-head .label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--pink);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.section-head .view-all {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .nav .nav-links { display: none; }
  .section { padding: 50px 20px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
