/* =============================================
   DidarYanar.com — Ana Stil Dosyası
   Bootstrap 5 üzerine özelleştirmeler
   ============================================= */

:root {
  --primary:     #c0392b;
  --primary-light: #e74c3c;
  --secondary:   #2c3e50;
  --accent:      #f39c12;
  --light-bg:    #fdf8f6;
  --card-radius: 14px;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Lato', -apple-system, sans-serif;
}

/* ── Genel ── */
body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 { font-family: var(--font-serif); }

a { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-light); }

/* ── Topbar ── */
.topbar { background: var(--light-bg); border-bottom: 1px solid #f0e8e4; }

/* ── Navbar ── */
.navbar { border-bottom: 2px solid #f5eeeb; }
.navbar-brand .brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-first { font-family: var(--font-sans); font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); }
.brand-last  { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--secondary); }

.navbar .nav-link { font-weight: 600; font-size: .9rem; letter-spacing: .5px; color: var(--secondary); padding: .5rem .75rem; border-radius: 6px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); background: #fff0ee; }

/* ── Hero (Anasayfa) ── */
.hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #c0392b 100%);
  min-height: 520px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/hero-pattern.svg') repeat;
  opacity: .05;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; }
.hero-section p  { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .9rem; border-radius: 30px;
  color: #fff; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn-primary   { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ── Post Kartı ── */
.post-card {
  border: none; border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.post-card .card-img-top {
  height: 220px; object-fit: cover;
}
.post-card .card-body { padding: 1.25rem; }
.post-card .cat-badge {
  font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 700; color: var(--primary);
  background: #fff0ee; padding: .25rem .6rem; border-radius: 20px;
}
.post-card .card-title { font-size: 1.05rem; font-weight: 700; margin: .6rem 0 .4rem; }
.post-card .card-title a { color: var(--secondary); text-decoration: none; }
.post-card .card-title a:hover { color: var(--primary); }
.post-card .card-text { font-size: .875rem; color: #666; }
.post-card .card-footer { background: transparent; border-top: 1px solid #f5f0ee; font-size: .8rem; color: #999; }

/* ── Placeholder görüntü ── */
.img-placeholder {
  background: linear-gradient(135deg, #fdf2f0, #f5e6e4);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 3rem;
}

/* ── Sayfa Başlığı (page hero) ── */
.page-hero {
  background: var(--light-bg);
  border-bottom: 1px solid #f0e8e4;
  padding: 2.5rem 0;
}
.page-hero h1 { font-size: 2rem; margin-bottom: .3rem; }
.breadcrumb-item a { color: var(--primary); }

/* ── Tekil Yazı ── */
.post-content {
  font-size: 1.05rem; line-height: 1.9; color: #333;
}
.post-content h2, .post-content h3 {
  margin-top: 2rem; color: var(--secondary);
}
.post-content img {
  max-width: 100%; border-radius: 10px; margin: 1rem 0;
}
.post-content ul, .post-content ol {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem; margin: 1.5rem 0;
  background: var(--light-bg); border-radius: 0 8px 8px 0;
  font-style: italic; color: #555;
}

/* Malzeme Listesi (Tarifler için) */
.ingredient-list {
  background: var(--light-bg); border-radius: var(--card-radius);
  padding: 1.5rem;
}
.ingredient-list h5 {
  color: var(--primary); margin-bottom: 1rem;
  font-size: 1rem; letter-spacing: .5px; text-transform: uppercase;
}
.ingredient-list li { padding: .3rem 0; border-bottom: 1px dashed #e8ddd9; font-size: .95rem; }
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list li i { color: var(--primary); margin-right: .4rem; }

/* ── Sidebar ── */
.sidebar-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-card h5 {
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.2rem; font-family: var(--font-sans); font-weight: 700;
}
.sidebar-post { display: flex; gap: .75rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid #f5f0ee; }
.sidebar-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-post-title { font-size: .85rem; font-weight: 700; color: var(--secondary); text-decoration: none; }
.sidebar-post-title:hover { color: var(--primary); }
.sidebar-post-date  { font-size: .75rem; color: #999; }

.cat-pill {
  display: inline-block; padding: .4rem .9rem; margin: .2rem;
  background: var(--light-bg); border-radius: 30px;
  font-size: .82rem; color: var(--secondary); text-decoration: none;
  border: 1px solid #e8ddd9; transition: all .2s;
}
.cat-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-pill .count { font-size: .7rem; color: #999; }

/* ── Hakkımda Bölümü ── */
.about-photo {
  border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.about-stats { background: var(--light-bg); border-radius: 12px; padding: 1.5rem; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label  { font-size: .8rem; color: #888; letter-spacing: 1px; text-transform: uppercase; }

/* ── Eğitimler ── */
.training-card {
  border-radius: var(--card-radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); border: none;
  transition: transform .25s;
}
.training-card:hover { transform: translateY(-4px); }
.training-card .badge-level {
  position: absolute; top: 12px; right: 12px;
  padding: .35rem .75rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
}

/* ── Footer ── */
.footer {
  background: var(--secondary); color: #aab3bb;
}
.footer-heading {
  font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase;
  letter-spacing: 2px; color: #fff; margin-bottom: 1rem; font-weight: 700;
}
.footer-links { padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #aab3bb; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links li:not(:has(a)) { font-size: .9rem; }

.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s, transform .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer hr { border-color: rgba(255,255,255,.1); }

/* ── Admin Panel ── */
.admin-sidebar {
  background: var(--secondary); min-height: 100vh; padding: 0;
}
.admin-sidebar .brand {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff; font-family: var(--font-serif); font-size: 1.1rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.75); padding: .65rem 1.5rem;
  border-radius: 0; font-size: .9rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: #fff; background: rgba(255,255,255,.1);
  border-left: 3px solid var(--primary);
}
.admin-sidebar .nav-link i { width: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { min-height: 360px; }
  .post-card .card-img-top { height: 180px; }
}
