/* ============================================
   EKONOMIK TARIFLER — Design System v3
   Apple-inspired. Clean. Proportional.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&display=swap');

/* ── Tokens ── */
:root {
  /* Color */
  --c-bg:          #ffffff;
  --c-bg2:         #f5f5f7;
  --c-bg3:         #e8e8ed;
  --c-text:        #1d1d1f;
  --c-text2:       #6e6e73;
  --c-text3:       #aeaeb2;
  --c-accent:      #ff6b00;
  --c-accent-fade: rgba(255,107,0,.09);
  --c-border:      rgba(0,0,0,.07);
  --c-border2:     rgba(0,0,0,.12);

  /* Shadow */
  --s-xs: 0 1px 3px rgba(0,0,0,.06);
  --s-sm: 0 2px 8px rgba(0,0,0,.07);
  --s-md: 0 8px 24px rgba(0,0,0,.08);
  --s-lg: 0 20px 48px rgba(0,0,0,.10);

  /* Spacing (8pt grid) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10:40px; --sp-12:48px;
  --sp-16:64px; --sp-20:80px; --sp-24:96px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-full:9999px;

  /* Easing */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a     { text-decoration: none; color: inherit; transition: opacity .2s var(--ease); }
a:hover { opacity: .7; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: .2s var(--ease); }
input, textarea { outline: none; border: none; font-family: inherit; }
img   { display: block; max-width: 100%; }
ul    { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
@media(max-width:768px){
  .container { padding: 0 var(--sp-5); }
}

/* ── Section Spacing ── */
.section {
  padding: var(--sp-20) 0;
}
.section--gray {
  background: var(--c-bg2);
}
.section--dark {
  background: var(--c-text);
  color: var(--c-bg);
}
@media(max-width:768px){
  .section { padding: var(--sp-12) 0; }
}

/* ── Typography ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.heading-xl {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.07;
}
.heading-lg {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.heading-md {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.heading-sm {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.body-lg  { font-size: 17px; line-height: 1.6; color: var(--c-text2); }
.body-sm  { font-size: 13px; line-height: 1.5; color: var(--c-text2); }
.label    { font-size: 12px; font-weight: 600; color: var(--c-text3); }

/* ── Section Header ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-8);
}
.section-header .link-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-text); color: #fff; }
.btn--primary:hover { background: #2d2d2f; opacity: 1; }
.btn--accent  { background: var(--c-accent); color: #fff; box-shadow: 0 4px 16px rgba(255,107,0,.25); }
.btn--accent:hover { background: #e05e00; opacity: 1; }
.btn--ghost   { background: transparent; color: var(--c-text); border: 1px solid var(--c-border2); }
.btn--ghost:hover { background: var(--c-bg2); opacity: 1; }
.btn--ghost-white { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); }
.btn--ghost-white:hover { background: rgba(255,255,255,.25); opacity: 1; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-border);
  gap: var(--sp-6);
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.navbar__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--c-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,107,0,.25);
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 14px;
  font-weight: 600;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.navbar__search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-bg2);
  border-radius: var(--r-full);
  padding: 8px 14px;
  width: 220px;
}
.navbar__search input {
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  flex: 1;
  min-width: 0;
}
.navbar__search input::placeholder { color: var(--c-text3); }
.kbd {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-text3);
  background: #fff;
  border: 1px solid var(--c-border2);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
  line-height: 1.4;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text2);
}
.icon-btn:hover { background: var(--c-bg2); color: var(--c-text); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 2px solid var(--c-bg);
  box-shadow: var(--s-xs);
  cursor: pointer;
}
.avatar img { width:100%; height:100%; object-fit:cover; }

@media(max-width:768px){
  .navbar { height: 56px; padding: 0 var(--sp-5); }
  .navbar__nav { display: none; }
  .navbar__search { display: none; }
  .kbd { display: none; }
}

/* ── Hero ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media(max-width:1100px){
  .hero-grid { grid-template-columns: 1fr; }
}
@media(max-width:768px){
  /* On mobile show only the hero card, hide sidebar */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
}

.hero-card {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  height: 500px;
  min-width: 0;
}
.hero-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-10);
  color: #fff;
}
@media(max-width:768px){
  .hero-card { height: 300px; border-radius: var(--r-2xl); }
  .hero-card__overlay { padding: var(--sp-5); }
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

/* ── Cards ── */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-md);
}

.recipe-card__img {
  position: relative;
  overflow: hidden;
  background: var(--c-bg3);
}
.recipe-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.card:hover .recipe-card__img img { transform: scale(1.04); }

.save-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text2);
  box-shadow: var(--s-xs);
}
.save-btn:hover { color: var(--c-accent); transform: scale(1.1); }
.save-btn.saved { color: var(--c-accent); }

.price-badge {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  padding: 4px 10px;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--c-text);
}

.recipe-card__body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
.recipe-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.recipe-card__meta {
  display: flex;
  gap: var(--sp-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text3);
}

/* ── Grid Layouts ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media(max-width:1100px){ .recipe-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:768px) { .recipe-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-3); } }
@media(max-width:400px) { .recipe-grid { grid-template-columns: 1fr; } }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media(max-width:1100px){ .category-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .category-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-3); } }

/* ── Horizontal Scroll ── */
.h-scroll {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ── Category Chips ── */
.chip-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 18px;
  background: var(--c-bg2);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: .2s var(--ease);
}
.chip:hover, .chip.active {
  background: var(--c-accent-fade);
  color: var(--c-accent);
  border-color: rgba(255,107,0,.2);
}

/* ── Category Card ── */
.cat-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: var(--c-bg3);
  transition: transform .3s var(--ease-out);
}
.cat-card:hover { transform: scale(1.02); }
.cat-card img { width:100%; height:100%; object-fit:cover; }
.cat-card__label {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ── Creator Card ── */
.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  width: 160px;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.creator-card:hover { transform: translateY(-3px); box-shadow: var(--s-md); }
.creator-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 2.5px solid var(--c-accent);
  padding: 2px;
}
.creator-avatar img { width:100%; height:100%; border-radius:var(--r-full); object-fit:cover; }

/* ── Collection Card ── */
.col-card {
  width: 240px;
  height: 300px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
@media(max-width:768px){
  .col-card { width: 200px; height: 260px; border-radius: var(--r-xl); }
}
.col-card img { width:100%; height:100%; object-fit:cover; }
.col-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  color: #fff;
}

/* ── Editorial Dark ── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media(max-width:900px){ .editorial-grid { grid-template-columns: 1fr; } }
@media(max-width:768px){ .editorial-grid { gap: var(--sp-6); } }

.editorial-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media(max-width:768px){
  .editorial-mini-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
}
.editorial-mini-card {
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* ── Discovery Banner ── */
.discovery-banner {
  background: var(--c-accent-fade);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}
@media(max-width:900px){
  .discovery-banner { flex-direction: column; padding: var(--sp-8); gap: var(--sp-6); }
  .desktop-side { display: none; }
}
@media(max-width:768px){
  .discovery-banner { padding: var(--sp-6); border-radius: var(--r-xl); }
}

/* ── Community Card ── */
.community-card {
  width: 280px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex-shrink: 0;
}
@media(max-width:768px){
  .community-card { width: 240px; }
}

/* ── Footer ── */
.footer {
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid var(--c-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
@media(max-width:900px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media(max-width:600px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer { padding: var(--sp-12) 0 var(--sp-8); }
}
.footer__col h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--sp-5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__links a {
  font-size: 14px;
  color: var(--c-text2);
}
.footer__bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--c-text3);
}

/* ── Bottom Nav (Mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--c-border);
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
@media(max-width:768px){
  .bottom-nav { display: flex; }
  main { padding-bottom: 80px; }
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--c-text3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav-item.active { color: var(--c-accent); }
.nav-item__bubble {
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: -20px;
  border: 4px solid var(--c-bg);
  box-shadow: 0 4px 16px rgba(255,107,0,.35);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ── */
.text-accent { color: var(--c-accent); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
