* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

a { color: inherit; }

.bgGradient {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--surface), var(--surface2), var(--surface));
}

.container {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 16px;
}

.appBar {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.appBarInner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brandLogo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brandText { color: var(--white); }

.navLink {
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
}

.navLink:hover { opacity: 1; text-decoration: underline; }

.content { padding: 18px 0 28px; }

.hero { margin: 10px 0 14px; }
.homeHero { margin-top: 16px; }
.ctaRow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.sectionHeaderTop { margin-top: 24px; }
.h1 { margin: 0 0 6px; font-size: 28px; }
.h2 { margin: 0 0 8px; font-size: 18px; }
.subtitle { margin: 0; opacity: 0.85; }
.muted { opacity: 0.75; }
.small { font-size: 12px; }
.strong { font-weight: 700; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px var(--shadow);
}

.filterCard { padding: 12px; margin: 14px 0 18px; }
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; opacity: 0.85; font-weight: 700; }
.input {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.input:focus { border-color: rgba(139, 69, 19, 0.35); box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12); }

.actions { display: flex; gap: 10px; justify-content: flex-end; }
.btnPrimary, .btnGhost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btnPrimary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 18px rgba(139, 69, 19, 0.20);
}
.btnPrimary:hover { filter: brightness(1.03); }
.btnGhost {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}
.btnGhost:hover { background: rgba(139, 69, 19, 0.06); }

.storeBadgeLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(139, 69, 19, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.storeBadgeLink:hover { filter: brightness(1.02); }

.storeBadge {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.promoCard { margin-top: 18px; padding: 14px; }
.promoInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.promoText { max-width: 560px; }

.footerPromo {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.footerPromo .promoInner {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.footerPromo .promoText { max-width: 520px; }

.footerCta {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.footerPromo .storeBadgeLink {
  padding: 4px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.footerPromo .storeBadge { height: 48px; border-radius: 10px; }

.footerCopy { margin-top: 12px; text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.recipeCard { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cardLink { text-decoration: none; }
.cardLink:hover { text-decoration: underline; }
.desc { margin: 6px 0 0; opacity: 0.85; line-height: 1.35; }

.pillRow { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 69, 19, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}
.pillSoft {
  background: rgba(139, 69, 19, 0.08);
  border: 1px solid rgba(139, 69, 19, 0.15);
}
.pillLink {
  text-decoration: none;
  color: inherit;
}
.pillLink:focus-visible {
  outline: 2px solid rgba(139, 69, 19, 0.8);
  outline-offset: 2px;
}

.infoRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.infoRowBig { margin-top: 10px; }
.infoItem {
  background: rgba(139, 69, 19, 0.06);
  border: 1px solid rgba(139, 69, 19, 0.10);
  border-radius: 12px;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.metaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.reactionsPill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reactionMini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emojiMini { font-size: 14px; line-height: 1; }
.countMini { font-weight: 900; color: var(--primary); }

.emptyState { padding: 16px; }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; }

.detailCard { padding: 16px; }
.detailHeader { margin-bottom: 12px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.col { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.65); border: 1px solid var(--border); }
.list { margin: 0; padding-left: 18px; line-height: 1.5; }

.reactionsBlock { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(139, 69, 19, 0.06); border: 1px solid rgba(139, 69, 19, 0.12); }
.reactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.reactionPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(139, 69, 19, 0.16);
}
.emoji { font-size: 18px; }
.count { font-weight: 900; color: var(--primary); }

.detailFooter { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.shareBtn { height: 40px; padding: 0 14px; }

.similarBlock { margin-top: 14px; }
.sectionHeaderInline { margin: 0 0 10px; }

.footer { padding: 18px 0 28px; }
.footerInner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
  .columns { grid-template-columns: 1fr; }
  .h1 { font-size: 24px; }
  .promoInner { flex-direction: column; align-items: flex-start; }
  .footerCta { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
}

