/* KitchenForMe — recipe website styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #ff6b35;
  --brand-dark: #e05520;
  --text: #1a1a1a;
  --muted: #666;
  --bg: #fff;
  --bg-card: #fafafa;
  --bg-accent: #fff8f5;
  --border: #e5e5e5;
  --radius: 8px;
  --max-w: 1100px;
  --max-w-narrow: 760px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── Layout ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
nav a:hover { color: var(--brand); }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--brand) !important; flex-shrink: 0; }

main { min-height: calc(100vh - 120px); }

.page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
}

.page-body--narrow {
  max-width: var(--max-w-narrow);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 24px;
  font-size: .85rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #f7931e 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Category pills ── */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.category-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  transition: background .15s, color .15s;
}

.category-pill:hover, .category-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Recipe grid ── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}

.recipe-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.recipe-card__body { padding: 16px; }

.recipe-card__category {
  font-size: .75rem;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05em;
}

.recipe-card__title { font-size: 1rem; margin: 6px 0 8px; }
.recipe-card__title a { text-decoration: none; color: var(--text); }
.recipe-card__title a:hover { color: var(--brand); }

time { font-size: .8rem; color: var(--muted); }

/* ── Recipe list (list view) ── */
.recipes-list { display: flex; flex-direction: column; gap: 8px; }

.recipe-card--list {
  flex-direction: row;
  border-radius: var(--radius);
}

.recipe-card--list .recipe-card__body { padding: 14px 18px; }

/* ── View all ── */
.view-all { text-align: center; margin: 32px 0; }

/* ── Pricing section ── */
.pricing {
  background: var(--bg-accent);
  border: 1px solid #fde8de;
  border-radius: var(--radius);
  padding: 40px 24px;
  margin: 48px 0 32px;
  text-align: center;
}

.pricing__inner { max-width: 560px; margin: 0 auto; }

.pricing h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing__subtitle {
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing__features {
  list-style: none;
  margin: 0 0 24px;
  text-align: left;
  display: inline-block;
}

.pricing__features li {
  padding: 4px 0 4px 24px;
  position: relative;
}

.pricing__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.pricing__note {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s;
}

.btn:hover { background: var(--brand-dark); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ── Recipe detail ── */
.recipe-detail__header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.recipe-detail__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.recipe-category {
  background: var(--bg-accent);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .05em;
}

.recipe-detail__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: block;
}

.recipe-detail__content { max-width: 700px; }
.recipe-detail__content h1,
.recipe-detail__content h2,
.recipe-detail__content h3 { margin: 1.5em 0 .5em; line-height: 1.3; }
.recipe-detail__content h2 { font-size: 1.25rem; color: var(--brand); }
.recipe-detail__content h3 { font-size: 1.1rem; }
.recipe-detail__content ul,
.recipe-detail__content ol { padding-left: 1.5em; margin: .8em 0; }
.recipe-detail__content li { margin: .4em 0; }
.recipe-detail__content p { margin: .8em 0; }
.recipe-detail__content strong { font-weight: 600; }
.recipe-detail__content img { max-width: 100%; border-radius: var(--radius); }
.recipe-detail__content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9rem; }
.recipe-detail__content td,
.recipe-detail__content th { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.recipe-detail__content th { background: var(--bg-card); font-weight: 600; }

/* ── Recipe CTA ── */
.recipe-cta {
  background: var(--bg-accent);
  border: 1px solid #fde8de;
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}

.recipe-cta p { margin-bottom: 14px; font-size: 1rem; }

/* ── Breadcrumb ── */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  font-size: .9rem;
}

.pagination a { color: var(--brand); text-decoration: none; font-weight: 500; }
.pagination a:hover { text-decoration: underline; }

/* ── Back link ── */
.back-link { margin-top: 24px; }
.back-link a { color: var(--brand); text-decoration: none; font-size: .9rem; }
.back-link a:hover { text-decoration: underline; }

/* ── Page heading ── */
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }

/* ── Hero small ── */
.hero--small { padding: 40px 24px; }
.hero--small h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ── Price card ── */
.price-card {
  background: var(--bg-accent);
  border: 1px solid #fde8de;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 32px 0;
}

.price-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}

.price-card__amount span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card__period {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 24px;
}

.pricing__features--centered {
  display: inline-block;
  text-align: left;
  margin: 0 auto 28px;
}

.btn--large {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ── FAQ ── */
.price-faq { margin-top: 48px; }
.price-faq h2 { font-size: 1.4rem; margin-bottom: 24px; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: .95rem; }
.faq-item a { color: var(--brand); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 640px) {
  nav ul { display: none; }
  .recipes-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero { padding: 40px 20px; }
  .page-body { padding: 24px 16px; }
  .pricing { padding: 28px 16px; }
}
