/* Yayınlar – cetinkayayucesan.av.tr/yayinlar benzeri */

body.page-yayinlar {
  background: #f5f3f0;
}

body.page-yayinlar main.yayinlar-main {
  padding-top: 0;
}

/* ── Hero kaydırıcı ── */
.yayinlar-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  background: #1a0a10;
}

.yayinlar-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.yayinlar-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.yayinlar-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.yayinlar-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center center;
}

/* Slayt değişiminde görsel yeniden sıfır + zoom-in */
.yayinlar-hero-slide:not(.is-active) .yayinlar-hero-media img {
  animation: none;
  transform: scale(1);
}

.yayinlar-hero-media img.yayinlar-hero-img-zoom {
  animation: yayinlar-hero-zoom-in 2s ease-out forwards;
}

@keyframes yayinlar-hero-zoom-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yayinlar-hero-media img.yayinlar-hero-img-zoom {
    animation: none;
  }

  .yayinlar-hero-slide:not(.is-active) .yayinlar-hero-media img {
    transform: scale(1);
  }
}

.yayinlar-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 8, 14, 0.92) 0%,
    rgba(26, 8, 14, 0.55) 45%,
    rgba(26, 8, 14, 0.25) 100%
  );
}

.yayinlar-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto clamp(5rem, 11vh, 8rem);
  padding: clamp(88px, 10vh, 120px) clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 3vh, 2rem);
  color: #fff;
}

.yayinlar-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.yayinlar-breadcrumb span::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

.yayinlar-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 820px;
}

.yayinlar-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.yayinlar-hero-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.yayinlar-hero-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
}

.yayinlar-hero-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0;
}

.yayinlar-hero-author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.yayinlar-hero-author-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.yayinlar-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  padding: 0;
  border: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.yayinlar-btn-read:hover {
  color: rgba(255, 255, 255, 0.85);
}

.yayinlar-btn-read-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.yayinlar-btn-read:hover .yayinlar-btn-read-icon {
  transform: translateX(4px);
}

.yayinlar-btn-read-icon svg {
  display: block;
}

/* Oklar */
.yayinlar-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
}

.yayinlar-hero-arrow:hover {
  background: rgba(75, 14, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
}

.yayinlar-hero-arrow--prev {
  left: clamp(0.75rem, 3vw, 2rem);
}

.yayinlar-hero-arrow--next {
  right: clamp(0.75rem, 3vw, 2rem);
}

/* Noktalar */
.yayinlar-hero-dots {
  position: absolute;
  bottom: clamp(4.5rem, 8vh, 6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.yayinlar-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.yayinlar-hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Aşağı kaydır – hero alt sağ, Yazıyı oku ile hizalı */
.yayinlar-scroll-hint {
  position: absolute;
  bottom: clamp(1.65rem, 4.2vh, 2.4rem);
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.yayinlar-scroll-hint:hover {
  color: #fff;
}

.yayinlar-scroll-hint svg {
  animation: yayinlar-bounce 2s ease-in-out infinite;
}

@keyframes yayinlar-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Header iç sayfa – hero üzerinde okunaklı */
body.page-yayinlar .site-header.header--inner {
  background: transparent !important;
}

body.page-yayinlar .site-header.header--inner .nav-link,
body.page-yayinlar .site-header.header--inner .logo-link {
  color: #fff;
}

body.page-yayinlar .site-header.header--inner .nav-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Son yayınlar (yatay kaydırma) ── */
.yayinlar-recent {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: #f5f3f0;
}

.yayinlar-recent-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.yayinlar-recent-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2rem;
}

.yayinlar-recent-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 0.5rem;
}

.yayinlar-recent-scroller::-webkit-scrollbar {
  display: none;
}

.yayinlar-recent-scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.yayinlar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2.25rem;
}

.yayinlar-recent-card {
  flex: 0 0 min(380px, 85vw);
  scroll-snap-align: start;
}

@media (min-width: 1100px) {
  .yayinlar-recent-scroller {
    overflow-x: visible;
    cursor: default;
  }

  .yayinlar-recent-list {
    gap: 2.5rem;
  }

  .yayinlar-recent-card {
    flex: 1 1 0;
    min-width: 0;
  }
}

.yayinlar-recent-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(75, 14, 30, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.yayinlar-recent-card-link:hover {
  box-shadow: 0 12px 40px rgba(75, 14, 30, 0.12);
  transform: translateY(-4px);
}

.yayinlar-recent-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e4e0;
}

.yayinlar-recent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yayinlar-recent-card-link:hover .yayinlar-recent-card-image img {
  transform: scale(1.04);
}

.yayinlar-recent-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.yayinlar-recent-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.02em;
}

.yayinlar-recent-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #1a1a1a;
}

.yayinlar-recent-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #4b0e1e;
  font-weight: 500;
}

.yayinlar-recent-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #777;
  margin-top: auto;
}

.yayinlar-empty-wrap {
  padding: clamp(140px, 20vh, 200px) 1.5rem 4rem;
  text-align: center;
}

.yayinlar-empty {
  font-family: 'Inter', sans-serif;
  color: #666;
}

@media (max-width: 768px) {
  .yayinlar-hero-arrow {
    width: 40px;
    height: 40px;
  }

  .yayinlar-hero-dots {
    bottom: 5.5rem;
  }

  .yayinlar-hero-content {
    margin-bottom: clamp(4rem, 9vh, 6rem);
    padding-top: clamp(80px, 9vh, 100px);
  }

  .yayinlar-btn-read {
    margin-top: 1.25rem;
    font-size: 0.65rem;
    gap: 0.6rem;
  }

  .yayinlar-scroll-hint {
    bottom: 1.35rem;
    right: 1.25rem;
    font-size: 0.65rem;
  }
}
