@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");

:root {
  --bg-dark: #2b0f0f;
  --bg-darker: #1a0505;
  --accent: #f3c98b;
  --text-light: #f7f3ee;
  --text-muted: #d0c3b8;
  --card-bg: #ffffff;
  --body-bg: #f8efe1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Merriweather", serif;
  background: var(--body-bg);
  color: #222;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ÜST BANNER */
.top-banner {
  background: linear-gradient(to bottom, #fdf3e2 0%, #f7e5c3 100%);
  padding: 18px 0;
}
.template-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #5a4632;
}
.template-brand strong {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-wrapper {
  background: var(--bg-dark);
  color: var(--text-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */
.blog-hero {
  padding: 42px 0 24px;
  background:
    radial-gradient(900px 260px at 20% 10%, rgba(243, 201, 139, 0.35), transparent 60%),
    radial-gradient(700px 260px at 80% 30%, rgba(43, 15, 15, 0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(43,15,15,0.10);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 16px 40px rgba(26, 5, 5, 0.07);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(43,15,15,0.08);
  border: 1px solid rgba(43,15,15,0.12);
  color: var(--bg-dark);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--bg-darker);
}
.hero-copy p {
  margin-top: 12px;
  color: rgba(26,5,5,0.75);
  font-size: 15px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--bg-dark);
  color: var(--text-light);
  box-shadow: 0 10px 24px rgba(43,15,15,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(43,15,15,0.22); }
.btn-ghost {
  background: rgba(255,255,255,0.65);
  border-color: rgba(43,15,15,0.12);
  color: var(--bg-dark);
}
.btn-ghost:hover { transform: translateY(-1px); }

.hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  border-radius: 16px;
  border: 1px solid rgba(43,15,15,0.12);
  background: rgba(255,255,255,0.65);
  padding: 12px;
}
.stat-num { font-size: 18px; font-weight: 700; color: var(--bg-darker); }
.stat-label { margin-top: 4px; font-size: 12px; color: rgba(26,5,5,0.65); }

.hero-slider {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(43,15,15,0.10);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 16px 40px rgba(26, 5, 5, 0.07);
}

/* Swiper slide card */
.swiper { width: 100%; height: 100%; }
.slide-card {
  padding: 22px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  margin-left: 30px;
  justify-content:space-evenly;
}
.slide-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(26,5,5,0.65);
}
.tag {
  background: rgba(243, 201, 139, 0.45);
  border: 1px solid rgba(43,15,15,0.10);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--bg-darker);
}
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(26,5,5,0.35); display: inline-block; }
.slide-card h3 { margin-top: 12px; font-size: 20px; color: var(--bg-darker); }
.slide-card p { margin-top: 10px; color: rgba(26,5,5,0.72); font-size: 14px; }
.slide-link {
  margin-top: 14px;
  color: var(--bg-dark);
  font-weight: 700;
  width: fit-content;
  border-bottom: 2px solid rgba(43,15,15,0.25);
}
.slide-link:hover { border-bottom-color: var(--accent); }

/* Swiper controls */
.swiper-button-prev, .swiper-button-next { color: var(--bg-dark); }
.swiper-pagination-bullet { opacity: 0.35; }
.swiper-pagination-bullet-active { opacity: 1; }

/* FILTER BAR */
.filter-bar {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.filter-left h2 { color: var(--bg-darker); font-size: 22px; }
.filter-left p {
  margin-top: 6px;
  color: rgba(26,5,5,0.7);
  font-size: 14px;
}
.filter-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(43,15,15,0.12);
  color: rgba(26,5,5,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.is-active {
  background: rgba(43,15,15,0.08);
  border-color: rgba(43,15,15,0.22);
  color: var(--bg-darker);
  box-shadow: 0 10px 22px rgba(26,5,5,0.08);
}

.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input {
  width: 260px;
  padding: 11px 42px 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(43,15,15,0.12);
  background: rgba(255,255,255,0.75);
  outline: none;
  font-size: 13px;
}
.search-hint {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: rgba(26,5,5,0.55);
  border: 1px solid rgba(43,15,15,0.12);
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
}

/* POSTS GRID */
.posts-grid {
  margin-top: 18px;
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(43,15,15,0.10);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 14px 34px rgba(26,5,5,0.06);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(26,5,5,0.10);
}
.post-thumb {
  height: 160px;
  position: relative;
  background:
    radial-gradient(420px 200px at 30% 30%, rgba(243,201,139,0.65), transparent 60%),
    radial-gradient(380px 200px at 80% 20%, rgba(43,15,15,0.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
}
.thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,5,5,0.22), transparent 55%);
}
.thumb-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(43,15,15,0.12);
  color: var(--bg-darker);
  font-size: 12px;
  font-weight: 700;
}
.post-body { padding: 16px; }
.post-meta { font-size: 12px; color: rgba(26,5,5,0.62); display: flex; align-items: center; gap: 8px; }
.sep { opacity: 0.6; }
.post-body h3 { margin-top: 10px; font-size: 17px; color: var(--bg-darker); }
.post-body p { margin-top: 8px; color: rgba(26,5,5,0.72); font-size: 13px; }

.post-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-weight: 800;
  color: var(--bg-dark);
  border-bottom: 2px solid rgba(43,15,15,0.22);
}
.read-more:hover { border-bottom-color: var(--accent); }

.save-btn {
  border: 1px solid rgba(43,15,15,0.14);
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(26,5,5,0.85);
  transition: transform 0.15s ease, background 0.15s ease;
}
.save-btn:hover { transform: translateY(-1px); background: rgba(43,15,15,0.06); }

/* FOOTER */
.footer {
  border-top: 1px solid rgba(43,15,15,0.10);
  background: rgba(255,255,255,0.55);
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-left { display: flex; gap: 10px; align-items: baseline; color: rgba(26,5,5,0.8); }
.footer-right { display: flex; gap: 14px; color: rgba(26,5,5,0.7); font-size: 13px; }
.footer-right a:hover { color: var(--bg-darker); }

/* OFFCANVAS PANEL */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,5,5,0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 90;
}
.post-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(255,255,255,0.92);
  border-left: 1px solid rgba(43,15,15,0.12);
  box-shadow: -24px 0 60px rgba(26,5,5,0.20);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 100;
  padding: 18px;
  overflow: auto;
}
body.panel-open { overflow: hidden; }
body.panel-open .panel-overlay { opacity: 1; pointer-events: auto; }
body.panel-open .post-panel { transform: translateX(0%); }

.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,5,5,0.65);
}
.panel-close {
  border: 1px solid rgba(43,15,15,0.14);
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(26,5,5,0.85);
}
.panel-title { margin-top: 14px; color: var(--bg-darker); font-size: 22px; line-height: 1.2; }
.panel-meta {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(26,5,5,0.6);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43,15,15,0.10);
}
.panel-content { margin-top: 14px; color: rgba(26,5,5,0.8); font-size: 14px; }
.panel-content p { margin: 10px 0; }

/* ✅ PANEL COVER (EKLENDİ) */
.panel-cover{
  margin-top: 14px;
  width: 100%;
  height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(43,15,15,0.12);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.panel-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(26,5,5,0.45), transparent 65%);
}

/* WINE WIDGET (Pour çalışır) */
.wine-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 110px;
  height: 170px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(43,15,15,0.12);
  box-shadow: 0 18px 44px rgba(26,5,5,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 80;
  pointer-events: none;
}
.wine-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,5,5,0.65);
}
.wine-svg { width: 88px; height: 120px; }
.wine-liquid { fill: rgba(43, 15, 15, 0.85); }
.wine-wave { fill: rgba(243, 201, 139, 0.22); opacity: 0.9; }

.liquid-group {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: liquidRise 3.6s ease-in-out infinite;
}
.wine-wave {
  transform-box: fill-box;
  transform-origin: center;
  animation: waveMove 1.7s ease-in-out infinite;
}
.post-panel .panel-img {
    height: 0; /* Başlangıçta resmi gizle */
    opacity: 0;
    transition: height 0.3s ease-out, opacity 0.3s ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin-bottom: 20px;
    content: " "; /* İçeriği temizle */
}

/* Resim yüklendiğinde/ayarladığında bu sınıf eklenir */
.post-panel .panel-img.has-cover {
    height: 180px; /* Veya istediğiniz bir yükseklik */
    opacity: 1;
}

/* Panel içindeki diğer elemanlar için de boşlukları kontrol edin */
.post-panel h2.panel-title {
    margin-top: 0; /* Resmi gösterince başlık ile birleşmesin */
}
@keyframes liquidRise {
  0%   { transform: translateY(60px); }
  55%  { transform: translateY(0px); }
  100% { transform: translateY(60px); }
}
@keyframes waveMove {
  0%   { transform: translateX(-8px); }
  50%  { transform: translateX(8px); }
  100% { transform: translateX(-8px); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .hero-copy h1 { font-size: 28px; }
  .posts-grid { grid-template-columns: 1fr; }
  .search-wrap input { width: 100%; }
}
