:root {
  --bg: #fff9f2;
  --bg-card: #ffffff;
  --ink: #3d2c29;
  --muted: #7a655f;
  --accent: #ff8a65;
  --accent-2: #7ed6a5;
  --accent-3: #ffd166;
  --line: #f0e2d8;
  --shadow: 0 10px 30px rgba(255, 138, 101, 0.12);
  --radius: 18px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff4df 0, transparent 28rem),
    radial-gradient(circle at top right, #e9fff3 0, transparent 24rem),
    var(--bg);
  line-height: 1.55;
}

a { color: #d35400; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 242, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand--logo {
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: var(--shadow);
  font-size: 1.3rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--accent);
  background: #fff7f2;
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
  background: #fff0e8;
  font-weight: 700;
}

.hero {
  padding: 2rem 0 1.2rem;
}

.hero-card {
  background: linear-gradient(135deg, #fff 0%, #fff7ef 55%, #f3fff8 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "🥣 🍳 🥖";
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.6rem;
  opacity: 0.85;
}

.hero-card--home::after,
.hero-card--search::after {
  display: none;
}

.hero-logo {
  display: block;
  width: min(340px, 92%);
  height: auto;
  max-height: 95px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.section {
  padding: 1rem 0 1.6rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(61, 44, 41, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(255, 138, 101, 0.16);
}

.recipe-thumb {
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #fff4df, #f2fff7);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.recipe-thumb--photo {
  background: #fff;
}

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

.recipe-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.special-item .recipe-thumb {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

.recipe-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff6ea;
  border: 1px solid #ffe2c8;
}

.recipe-rating {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.recipe-rating-summary {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.recipe-rating-votes {
  margin: 0;
}

.recipe-rating-votes a {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  background: rgba(45, 106, 79, 0.08);
}

.recipe-rating-votes a:hover {
  background: rgba(45, 106, 79, 0.16);
}

.recipe-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.recipe-card h3 a {
  color: inherit;
  text-decoration: none;
}

.recipe-card h3 a:hover { color: #d35400; }

.recipe-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.recipe-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #d35400;
  text-decoration: none;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.category-chip:hover {
  border-color: var(--accent-2);
  background: #f4fff8;
}

.newsletter {
  margin: 0.5rem 0 2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f7fff9);
  border: 1px solid var(--line);
}

.newsletter h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.newsletter p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.newsletter input[type="email"] {
  flex: 1 1 220px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.newsletter button {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff6f4d);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.special-list {
  display: grid;
  gap: 1rem;
}

.special-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(61, 44, 41, 0.05);
  padding: 1.1rem 1.2rem;
}

.special-item h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.3;
}

.special-item h2 a {
  color: inherit;
  text-decoration: none;
}

.special-item h2 a:hover {
  color: #d35400;
}

.special-content {
  color: var(--ink);
  line-height: 1.65;
}

.special-content p {
  margin: 0 0 0.75rem;
}

.special-actions {
  margin-top: 0.9rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.pager-meta {
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.pager a:hover {
  border-color: var(--accent);
  background: #fff7f2;
}

.pager .is-active {
  background: linear-gradient(135deg, var(--accent), #ff6f4d);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ecek-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.ecek-intro p {
  margin: 0 0 0.75rem;
}

.ecek-intro p:last-child {
  margin-bottom: 0;
}

.ecek-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.ecek-search input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.ecek-search button {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff6f4d);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ecek-search-clear {
  align-self: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.ecek-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}

.ecek-detail h2 {
  margin: 0.2rem 0 0.9rem;
}

.ecek-back {
  margin: 0 0 0.4rem;
}

.ecek-detail-meta {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ecek-detail-body {
  line-height: 1.7;
}

.ecek-detail-body h3 {
  margin: 1rem 0 0.45rem;
}

.ecek-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.ecek-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f6fb;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.ecek-tag--group {
  background: #eef8ff;
  color: #0f4c81;
}

.harm-safe .ecek-tag {
  background: #e8f8ee;
  color: #166534;
}

.harm-warn .ecek-tag {
  background: #fff4e5;
  color: #9a3412;
}

.harm-risk .ecek-tag {
  background: #fdecec;
  color: #991b1b;
}

.ecek-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ecek-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ecek-table th,
.ecek-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.ecek-table th {
  background: #fff8f4;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.ecek-table tbody tr:hover {
  background: #fffaf7;
}

.ecek-table a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.ecek-table a:hover {
  color: var(--accent);
}

.ecek-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.2rem !important;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.search-form input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
}

.search-form button {
  padding: 0.8rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff6f4d);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-hint,
.search-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.search-summary {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.search-block {
  margin-bottom: 2rem;
}

.search-block .section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff0e8;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.search-more {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.recipe-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.recipe-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.recipe-form legend {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row .hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row--check label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.form-row--check input {
  margin-top: 0.2rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.form-actions button {
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff6f4d);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.form-msg {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.form-msg--ok {
  background: #eefbf3;
  border-color: #b9e7c8;
}

.form-msg--err {
  background: #fff5f2;
  border-color: #ffb4a2;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }

  .brand-logo {
    width: min(180px, 70vw);
    max-height: 48px;
  }

  .hero-logo {
    max-height: 72px;
  }

  .hero-card::after {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ecek-table thead {
    display: none;
  }

  .ecek-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 0.55rem 0;
  }

  .ecek-table td {
    display: block;
    border: 0;
    padding: 0.25rem 0.75rem;
  }

  .ecek-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
  }
}
