/* Styles specific to cuisine detail pages */

/* Guide blocks */
.guide { margin-block: 25px; font-size: 1rem; line-height: 1.7; color: #3a3a3a; }
.guide h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--accent); }
.guide--bottom { margin-top: 35px; }

/* Subnavigation for child categories */
.subnav-wrap { position: relative; margin: 25px 0 35px; }
.subnav-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth;
  padding: 4px 40px; scroll-snap-type: x proximity;
}
.subnav-scroll::-webkit-scrollbar { height: 6px; }
.subnav-scroll::-webkit-scrollbar-thumb { background: var(--bg-accent); border-radius: 3px; }
.subnav-scroll a {
  padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--radius);
  font-size: .95rem; white-space: nowrap;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.subnav-scroll a:hover,
.subnav-scroll a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.subnav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--bg-sub); box-shadow: var(--shadow-s);
  font-size: 18px; line-height: 30px; text-align: center; color: var(--accent);
  cursor: pointer; transition: background var(--trans), color var(--trans);
}
.subnav-arrow:hover { background: var(--accent); color: #fff; }
.subnav-arrow.left { left: 4px; }
.subnav-arrow.right { right: 4px; }
@media(min-width:1024px) {
  .subnav-scroll { overflow-x: visible; flex-wrap: wrap; scroll-snap-type: none; padding: 0; }
  .subnav-arrow { display: none; }
}

/* Cards grid */
main h1 { font-size: 2rem; margin: 30px 0 10px; text-align: center; }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-sub); border-radius: var(--radius); box-shadow: var(--shadow-s);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card-photo { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.card-photo img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-photo img { transform: scale(1.08); }
.card-info { flex: 1; display: flex; flex-direction: column; padding: 15px; }
.recipe-tags { font-size: .9rem; color: #666; margin-bottom: 6px; }
.recipe-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.recipe-title a:hover { text-decoration: underline; color: var(--accent-dark); }
.recipe-author, .recipe-meta { font-size: .9rem; color: #666; margin-bottom: 4px; }
.recipe-meta { margin-bottom: 10px; }
.recipe-stats { margin-top: auto; font-size: .9rem; }
.recipe-stats span { display: inline-flex; align-items: center; margin-right: 12px; }
.recipe-stats span:last-child { margin-right: 0; }
.recipe-stats svg.icon {
  width: 16px; height: 16px; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; margin-right: 4px; flex: none;
}

/* FAQ */
.faq { margin-top: 40px; }
.faq h2 { font-size: 1.4rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; text-align: center; }
.faq details {
  background: var(--bg-sub); border-radius: var(--radius); box-shadow: var(--shadow-s);
  margin-bottom: 10px; padding: 14px 18px; transition: background var(--trans); overflow: hidden;
}
.faq details[open] { background: var(--bg-accent); animation: slideDownFaq .35s ease; }
@keyframes slideDownFaq { from { max-height: 0; opacity: .4; } to { max-height: 400px; opacity: 1; } }
.faq summary {
  cursor: pointer; font-weight: 600; outline: none; list-style: none; position: relative; padding-right: 26px;
}
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px; border-bottom: 2px solid var(--text); border-right: 2px solid var(--text);
  transition: var(--trans);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(-135deg); }
.faq p { margin-top: 8px; font-size: .97rem; }

/* Pagination */
.pagination { margin: 30px 0; text-align: center; }
.pagination ul { display: inline-flex; gap: 6px; }
.pagination li { list-style: none; }
.pagination a,
.pagination span {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current {
  background: var(--accent);
  color: #fff;
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
.pagination .ellipsis {
  border: none;
  padding: 8px 4px;
  color: #888;
}
.pagination .disabled span {
  color: #888;
  border-color: #ccc;
}
