/*
  recipe-theme.css
  - "Soft Recipe" tema için hafif kart stili, değişkenler ve küçük bileşenler
  - Türkçe yorumlarla eklenmiştir.
*/

:root {
  /* Tema ile uyumlu ana değişkenler; header.php üzerinden --theme-primary ile eşlenir */
  --rcard-primary: var(--theme-primary, #0b67ff);
  --rcard-bg: transparent;
  --rcard-surface: var(--card, #ffffff);
  --rcard-text: var(--theme-text, #222);
  --rcard-muted: var(--muted, #6b7280);
  --rcard-radius: 14px;
  --rcard-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

/* Genel sayfa arkaplanı ve body ayarları - soft görünüm */
body {
  background-color: var(--theme-background, #f6f7f9);
  color: var(--rcard-text);
}

/* Post içeriği için yumuşak kart stili */
.post-article {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.82));
  border-radius: calc(var(--rcard-radius) - 4px);
  box-shadow: 0 8px 28px rgba(15,23,42,0.06);
  padding: 28px 34px;
  margin-bottom: 18px;
  overflow: visible;
}

/* Header iki satır düzeni için stil: logo + yardımcı araçlar üstte, menü altta */
.site-header-top { border-bottom: 0; background: transparent; padding: 10px 0; }
.site-header-top-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.site-brand .brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--theme-text); }
.site-title { font-weight:800; font-size:1.05rem; color:var(--theme-text); }
.site-utilities { display:flex; align-items:center; gap:12px; }
.header-search-form { display:flex; align-items:center; gap:8px; }
.header-search-form { position: relative; display:inline-flex; align-items:center }
.header-search-input { padding:10px 18px; padding-right:76px; border-radius:999px; border:1px solid rgba(15,23,42,0.04); min-width:260px; background:#fff; box-shadow: 0 2px 8px rgba(2,6,23,0.04); font-weight:600; height:42px; line-height:42px }
.header-search-input::placeholder { color: #c6c9cc; font-weight:600 }
.header-search-btn { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:1px solid rgba(15,23,42,0.06); background:#ffffff; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 6px 14px rgba(2,6,23,0.08); color:#ff6b6b; cursor:pointer }
.header-search-btn svg { width:20px; height:20px; fill:none; stroke:currentColor }
/* make the stroked icon a bit bolder visually */
.header-search-btn svg, .header-search-btn svg * { stroke-width:2.2 }
.header-search-form.small { display:inline-flex; align-items:center }
.social-icons { display:flex; gap:10px; align-items:center }
.social-icon { display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; border-radius:50%; background: rgba(18,48,68,0.06); color: #123044; text-decoration:none }
.social-icon svg { width:16px; height:16px; display:block; fill:currentColor; stroke:currentColor }

.site-header-bottom { padding:6px 0 14px 0; }
.site-header-bottom-inner { display:flex; align-items:center; justify-content:center }
.site-main-nav { display:flex; gap:36px; align-items:center; justify-content:center; flex-wrap:wrap; font-weight:800; letter-spacing:0.08em; width:100% }
.site-main-nav a { color:var(--theme-text); text-decoration:none; padding:12px 22px; border-radius:6px; font-size:1rem; font-weight:900; text-transform:uppercase; }
.site-main-nav a:hover { color:var(--rcard-primary); transform:translateY(-2px); }

/* Menü alt çizgisi yükseklik/kontrast ayarı: kenarlara taşan mavi çizgi referans görünümü için */
.site-header-bottom { padding:6px 0 12px 0; }
.site-header-bottom-inner { max-width:1100px; width:100%; margin:0 auto; }
.site-main-nav { padding:0 12px; }

/* Aktif menü öğesi alt çizgi göstermek isterseniz */
.site-main-nav a.is-active { color:var(--rcard-primary); }
.site-main-nav a.is-active::after { content: ''; display:block; height:3px; background:var(--rcard-primary); border-radius:2px; margin-top:8px }

/* Stronger overrides to force menu size/centering in case other theme rules interfere */
header.navbar .site-header-bottom-inner { display:flex !important; justify-content:center !important; }
header.navbar .site-main-nav { gap:48px !important; display:flex !important; justify-content:center !important; align-items:center !important }
header.navbar .site-main-nav > a { font-size:1.12rem !important; padding:14px 28px !important; font-weight:900 !important; letter-spacing:0.09em !important; text-transform:uppercase !important; color:var(--theme-text) !important }
header.navbar .site-main-nav > a:hover { transform: translateY(-2px) !important; color: var(--rcard-primary) !important }
/* If nav items are in a list or wrapper, target common variations */
header.navbar nav.site-main-nav a, header.navbar nav a { font-size:1.12rem !important; font-weight:900 !important }

/* Reduce top/bottom padding slightly so menu sits closer to divider like reference */
.site-header-top { padding:8px 0 !important }
.site-header-bottom { padding:6px 0 8px 0 !important }

/* koyu/navy alt çubuk (örnek: recipe tin eats alt çizgisi) */
.site-header-divider { height:10px; background:#123044; box-shadow: 0 2px 0 rgba(0,0,0,0.06); }

/* logo boyutu biraz daha büyük gösterilsin */
.site-logo { max-height:72px !important; }
.site-title { font-size:28px; font-weight:900; color:var(--theme-text); }

/* Büyük, merkezi başlık (2.görsel benzeri) */
.post-header { text-align: center; margin-bottom: 6px; padding-top: 6px }
.post-header-inner { max-width: 980px; margin: 0 auto; padding: 8px 18px; box-sizing: border-box }
.post-header .breadcrumbs { color: var(--rcard-muted); font-size:13px; margin-bottom:10px; display:block; text-align:left; width:100%; }
.post-article h1, .post-article .post-title {
  /* Serif display similar to the reference design */
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin: 6px 0 10px 0;
  font-weight:700;
  color: var(--rcard-text);
  display:block;
  max-width: 100%;
  letter-spacing: -0.01em;
}

/* Yazar satırı: başlık altında ortalanmış, küçük avatar ile */
.post-author-row { display:flex; align-items:center; gap:12px; justify-content:center; margin:12px 0 6px 0 }
.post-author-row img { width:56px;height:56px;border-radius:999px;object-fit:cover;border:6px solid #fff; box-shadow:0 6px 18px rgba(2,6,23,0.08); margin:0 }
.post-author-row .byline { font-weight:700; color:var(--rcard-text); display:inline-flex; align-items:center; gap:8px }
.post-author-row .byline a { color: var(--rcard-primary); text-decoration: none; font-weight:700 }
.post-author-row .byline a:hover { text-decoration: underline }
.post-author-row .byline .comments-badge { display:inline-flex; align-items:center; gap:8px; background:transparent; color:var(--rcard-text); padding:4px 6px; border-radius:999px; font-weight:700; margin-left:6px; font-size:0.95rem }
.post-author-row .meta-small { color:var(--rcard-muted); margin-top:6px; font-size:13px; text-align:center }
.post-author-row .share-btn { margin-left:10px; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(15,23,42,0.04); padding:8px 10px; border-radius:999px; box-shadow:0 4px 10px rgba(2,6,23,0.04) }

/* Header author meta (new structure) */
.post-author-meta { display:flex; gap:12px; align-items:center; justify-content:center; margin:12px 0 8px 0 }
.header-author-avatar { width:48px; height:48px; border-radius:999px; object-fit:cover; border:3px solid #fff; box-shadow:0 6px 14px rgba(2,6,23,0.06); }
.author-meta { display:flex; flex-direction:column; align-items:center; text-align:center }
.author-meta .byline { display:flex; align-items:center; gap:10px; font-weight:700 }
.author-meta .byline a { color:var(--rcard-primary); text-decoration:none }
  .comments-badge { display:inline-flex; align-items:center; gap:8px; background:transparent; color:var(--rcard-text); padding:4px 6px; border-radius:999px; font-weight:700; margin-left:6px; font-size:0.95rem }
  .comments-badge .c-icon { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background: color-mix(in srgb, var(--rcard-primary) 8%, #fff); color:var(--rcard-primary); border:1px solid rgba(15,23,42,0.06); box-shadow:0 6px 14px rgba(2,6,23,0.06); font-size:14px }
  .comments-badge .c-count { font-weight:800; margin-left:6px; color:var(--rcard-text) }
  .share-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid rgba(15,23,42,0.06); color:var(--rcard-primary); padding:0; margin-left:6px; box-shadow:0 6px 12px rgba(2,6,23,0.04) }
  .share-btn svg, .comments-badge svg { width:14px; height:14px }

  /* Force SVG path colors to use the current color (helps with icons that use fill/stroke directly) */
  .comments-badge svg path, .comments-badge svg circle, .comments-badge svg rect, .comments-badge svg line, .comments-badge svg polyline, .comments-badge svg polygon { fill: currentColor !important; stroke: currentColor !important; opacity: 1 !important }

  /* Ensure svg uses the .c-icon color (currentColor) */
  .comments-badge { color: var(--rcard-primary); }
.author-meta .meta-small { color:var(--rcard-muted); margin-top:6px; font-size:13px }

/* Tarihler için yeni tasarım: Published daha belirgin, Updated daha hafif */
.author-meta .meta-small { display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; font-size:0.95rem }
.author-meta .meta-small .meta-published { display:inline-flex; gap:8px; align-items:center; color:var(--rcard-muted); }
.author-meta .meta-small .meta-published strong { font-weight:800; color:var(--rcard-primary); text-transform:uppercase; letter-spacing:0.06em; font-size:0.75rem }
.author-meta .meta-small time { display:inline-block; color:var(--rcard-text); font-weight:700; font-size:0.95rem; margin-left:4px }
.author-meta .meta-small .meta-updated { color:var(--rcard-muted); font-weight:600; font-size:0.95rem; display:inline-flex; align-items:center; gap:6px }
.author-meta .meta-small .meta-updated time { font-weight:600; color:var(--rcard-muted); font-size:0.95rem }

/* Fallback for other author-meta row variant */
.post-author-row .meta-small { font-size:0.95rem; color:var(--rcard-muted); margin-top:6px }

/* Jump nav: başlık grubunun hemen altında orta hizalanmış pil stili */
.jump-container { margin-top:12px }
.jump-inner { display:flex; align-items:center; justify-content:center; gap:18px; padding:8px 0; border-top:1px solid rgba(15,23,42,0.04); border-bottom:1px solid rgba(15,23,42,0.04); }
.jump-label { color:var(--rcard-muted); font-weight:700; margin-right:8px; position:relative; left:-40px }
.jump-pills { display:flex; gap:14px; justify-content:center }
.jump-pills .pill {
  /* İnce ve uzun pil stili: daha dar yükseklik, geniş yatay padding */
  background: linear-gradient(180deg, color-mix(in srgb, var(--rcard-primary) 6%, #fff), #fff);
  color: color-mix(in srgb, var(--rcard-primary) 80%, #000);
  padding:6px 22px; /* daha uzun yatay genişlik, daha ince yükseklik */
  border-radius:12px;
  font-weight:800;
  font-size:0.95rem;
  letter-spacing:0.04em;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--rcard-primary) 12%, rgba(0,0,0,0.04));
  transition: opacity .12s ease, transform .06s ease;
}
.jump-pills .pill:hover{ opacity:0.96; transform:translateY(-1px) }

/* Tarif kartı konteyneri */
.recipe-card {
  background: var(--rcard-surface);
  border-radius: 12px;
  padding: 18px;
  margin: 12px 0;
  box-shadow: 0 6px 18px rgba(2,6,23,0.05);
}

/* Ingredients başlığı tema ana rengine bağlandı */
.recipe-card .ingredients h3,
.recipe-card .ingredients .ingredients-title {
  color: var(--rcard-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
}

/* Malzemeler checkbox listesi */
.recipe-card .ingredients ul { list-style:none; margin:0; padding:0; display:block; }
.recipe-card .ingredients li { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px dashed rgba(0,0,0,0.03); }
.recipe-card .ingredients li:last-child { border-bottom:0; }
.recipe-card .ingredients input[type="checkbox"] { width:18px; height:18px; accent-color: var(--rcard-primary); }
.recipe-card .ingredients label { cursor:pointer; color:var(--rcard-text); }
.recipe-card .ingredients li.checked label { text-decoration: line-through; color:var(--rcard-muted); }

/* PREP/COOK/TOTAL meta - sağa hizalı satır
   küçük ekranlarda dikey olur */
.recipe-meta { display:flex; gap:14px; justify-content:flex-end; align-items:center; margin-top:8px; color:var(--rcard-muted); font-weight:600; }
@media (max-width:720px) { .recipe-meta { flex-direction:column; align-items:flex-start; justify-content:flex-start; } }

/* Sidebar recipes widget daha yumuşak görünüm */
.recipes-widget { background: transparent; border-radius: 10px; padding: 6px; }
.recipes-widget .search-input { display:block; width:100%; padding:12px 16px; border-radius:28px; border:1px solid rgba(15,23,42,0.06); box-shadow:none; }
.author-widget { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.94)); padding:18px; border-radius:12px; text-align:center; }
.author-widget { background: #faf7f4; padding:18px; border-radius:12px; text-align:center; position:relative; overflow:visible }
.author-widget img { width:120px;height:120px;border-radius:999px;object-fit:cover;border:6px solid #fff; box-shadow:0 10px 28px rgba(2,6,23,0.08); margin:-68px auto 4px; display:block; background:#fff }
.author-widget h3 { margin:8px 0 6px 0; font-size:22px; color: #123044; font-weight:900; letter-spacing: -0.02em }
.author-widget p { color:var(--rcard-muted); font-size:0.98rem; line-height:1.45; margin:8px 0; max-width:220px; margin-left:auto; margin-right:auto }
.author-widget .read-more { display:inline-block; margin-top:12px; padding:8px 16px; border-radius:999px; background:#fff; color:var(--rcard-primary); font-weight:800; text-decoration:none; border:1px solid rgba(15,23,42,0.04); text-transform:uppercase }

/* Intro paragraph style (büyük ve okunaklı) */
.post-intro { font-size:1.05rem; color:#374151; line-height:1.8; margin:18px 0 20px; max-width:880px; margin-left:auto; margin-right:auto }

/* Jump-to pill buttons */
.jump-nav { display:flex; gap:12px; justify-content:center; padding:12px 0; border-top:1px solid rgba(15,23,42,0.04); border-bottom:1px solid rgba(15,23,42,0.04); margin:14px 0 }
.jump-nav .pill {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rcard-primary) 6%, #fff), #fff);
  color: color-mix(in srgb, var(--rcard-primary) 80%, #000);
  padding:6px 20px;
  border-radius:12px;
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.04em;
  text-decoration:none;
  border: 1px solid color-mix(in srgb, var(--rcard-primary) 12%, rgba(0,0,0,0.04));
  min-height:36px;
}

/* Author/meta row under title */
.post-author-row { display:flex; align-items:center; gap:14px; justify-content:center; margin:12px 0 8px 0 }
.post-author-row img { width:56px;height:56px;border-radius:999px;object-fit:cover }
.post-author-row .byline { font-weight:700; color:var(--rcard-text) }
.post-author-row .meta-small { color:var(--rcard-muted); margin-top:6px; font-size:13px }
.recipes-widget .item { display:flex; gap:10px; padding:8px 6px; align-items:center; border-radius:8px; }
.recipes-widget .item img { width:56px; height:56px; object-fit:cover; border-radius:8px; }

/* Detaylar/accordion için uyumlu görünüm */
.faq-details summary { cursor:pointer; font-weight:700; list-style:none; }
.faq-details details[open] summary { color: var(--rcard-primary); }

/* Güçlü override (kademeli) - eğer eski global kurallar beyaz arka plan koyuyorsa
   daha hedefli class'lar ile site görünümünü bozmadan şeffaflık sağlanır. */
.post-article, .post-article * { background-color: transparent !important; }
.recipes-widget, .recipes-widget * { background-color: transparent !important; }

/* Küçük dokunuş: görsel kontrast ve okunabilirlik
   (daha ileri değişiklikler için bu dosyayı genişletebiliriz) */
.recipe-card h2, .recipe-card h3 { color: var(--rcard-text); }

/* İçerik içindeki başlıklar: H2 ve H3 sol hizalı ve H1 ile aynı birincil renkte olsun. 
  Bu kural, post.php içindeki inline stilin üzerine yazmak için daha spesifik / !important kullanır. */
.post-content h2, .post-content h3 {
  text-align: left !important;
  color: var(--rcard-primary) !important;
  margin-top: 1.25rem;
  margin-bottom: .75rem;
  font-weight: 800;
}

.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.12rem; }

/* Yazdırma için basit destek: malzeme işaretlemelerini koru */
@media print {
  .mobile-hamburger, #offcanvas-menu, .offcanvas-overlay { display: none !important; }
  .post-article { box-shadow:none; }
}

/* Ensure checked ingredient checkboxes show a white tick inside the colored box */
.rcard3-ingredient-checkbox:checked {
  background-color: var(--rcard3-primary) !important;
  border-color: var(--rcard3-primary) !important;
  /* inline SVG tick white color encoded so it renders consistently */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M20.285 6.708a1 1 0 0 0-1.414-1.416L9 15.17l-3.87-3.87a1 1 0 0 0-1.414 1.414l4.577 4.577a1 1 0 0 0 1.414 0L20.285 6.708z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.rcard3-ingredient-checkbox { background-position: center; }

/* Debug / enforce: ensure category layout always shows right sidebar and grid columns
  This helps if other global CSS hides the aside on certain templates. */
.category-layout { grid-template-columns: 1fr 320px !important; }
.category-layout aside { display: block !important; visibility: visible !important; }
.category-grid > .card { background:#fff; }
