/* ============================================================
   TORÎma Akademî — index.css  (temiz sürüm)
   Tüm v3.x / v4.x yamaları birleştirildi ve sadeleştirildi.
   ============================================================ */


/* ── 1. CONTENT CONTAINER ──────────────────────────────────── */
/* Raylar ekranın üst kenarından (header bitişiğinden) başlasın.
   Üstte 0 padding, yanlarda ve altta normal boşluk.            */
.content-container {
  padding: 0 0 70px;
  /* max-width ve margin:auto'yu style.css'ten ezip tam genişlik yap */
  max-width: 100% !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ── Kategori bölümleri de tam genişlik — padding ve border-radius sıfırla ── */
.content-container > .category-section,
#main-gallery > .category-section {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: 34px;
}
.content-container > .category-section::before,
#main-gallery > .category-section::before {
  display: none !important;
}

/* ── Tüm metin / başlık öğelerine yatay dolgu — sol/sağ köşeler hizalı ── */
/* ── Tüm başlıklar tek hizada — tek padding değeri ── */
.content-container > #recent > h2.section-title,
.content-container > #recent > .section-header-inline,
#main-gallery > .category-section > .section-header-inline,
.section-heading-row {
  padding-left: clamp(16px, 4%, 44px);
  padding-right: clamp(16px, 4%, 44px);
}
/* latest-articles-block: section-header-inline'a padding ver, içindeki h3'e verme */
.content-container > #recent .latest-articles-block > .section-header-inline {
  padding-left: clamp(16px, 4%, 44px);
  padding-right: clamp(16px, 4%, 44px);
}
.content-container > #recent .latest-articles-block > .section-header-inline .sub-title {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* main-gallery sub-section başlıkları */
#main-gallery > .category-section .sub-section > h3.sub-title,
#main-gallery > .category-section .sub-section > .sub-title {
  padding-left: clamp(16px, 4%, 44px);
  padding-right: clamp(16px, 4%, 44px);
}

/* writer-subgroup__head (Zanyar/Nîvîskar/Hunermend/Fîlozof başlık satırı) */
#main-gallery .writer-subgroup__head,
.content-container .writer-subgroup__head {
  padding-left: clamp(16px, 4%, 44px);
  padding-right: clamp(16px, 4%, 44px);
}
/* wrapper'ın içindeki h3 ekstra padding almasın */
#main-gallery .writer-subgroup .sub-title,
.content-container .writer-subgroup .sub-title {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ── 2. HERO (NASA Simülasyon) ─────────────────────────────── */
.premium-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: clamp(420px, 68vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid #1a1a1a;
  /* Header sticky olduğu için hero tam bitişiğinden başlar —
     ekstra margin/padding yok                                  */
}

.hero-sim-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.hero-sim-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  transition: opacity 1s ease-in-out;
}

/* Alt kısımdan yukarı doğru kararma */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(12,12,12,1) 0%,
    rgba(12,12,12,0.7) 30%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  padding: 50px 5%;
  pointer-events: none;
}

.hero-text-area {
  pointer-events: auto;
  max-width: 750px;
}

.hero-tag-sim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.9);
  color: #000;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
}

.hero-text-area h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 15px 0;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.9);
  font-weight: 900;
}

.hero-text-area p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--torima-gold);
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all var(--transition-base);
  text-decoration: none;
  font-size: 14px;
}
.hero-action-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212,175,55,0.3);
}


/* ── 3. SECTION BAŞLIKLARI ─────────────────────────────────── */
.sub-title {
  font-size: 16px;
  color: var(--torima-gold);
  margin-bottom: 10px;
  margin-top: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.rtl .sub-title { text-align: right; }

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-right: 5%;
}
.section-heading-row--spaced { margin-top: 34px; }

.section-title-link { display: inline-flex; min-width: 0; }
.section-title-link .section-title {
  margin-bottom: 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.section-title-link:hover .section-title {
  color: var(--torima-accent, var(--torima-gold));
  border-color: #fff;
}

.section-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid #2d2d2d;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f1f1f1;
  background: #111;
  transition: all var(--transition-base);
}
.section-view-all-btn:hover {
  background: var(--torima-gold);
  color: #000;
  border-color: var(--torima-gold);
  transform: translateY(-1px);
}

.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.section-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #121212;
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.22s ease;
}
.section-link-pill:hover {
  background: var(--torima-gold);
  color: #000;
  border-color: var(--torima-gold);
}



/* Demo/açıklama yazılarını gizle */
.writer-subgroup__meta { display: none !important; }
/* ── 4. KATEGORİ / RECENT BÖLÜMLERI ───────────────────────── */
/* Bölümlerin kendisi şeffaf — arkaplanı raylar taşır */
.content-container > .category-section,
#main-gallery > .category-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  scroll-margin-top: calc(var(--site-header-height, 70px) + 18px);
}

/* "Nûtirîn Vîdyo" bölümü ilk bölüm — üstte boşluk verir */
.content-container > #recent {
  padding-top: 28px;
}

.sub-section {
  margin-bottom: 18px;
}

.latest-articles-block {
  margin-top: 28px;
}
/* Nûtirîn Nîvîs başlığı — Nûtirîn Vîdyo ile aynı görünüm */
.latest-articles-block .sub-title,
#recent .latest-articles-block h3.sub-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
  font-weight: 800 !important;
  color: var(--torima-text) !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px;
  margin-top: 0;
}


/* ── 5. RAY ŞERİTLERİ (carousel / rail arka planı) ────────── */
/* Video + makale rayları */
.content-container > #recent > .latest-videos-wrapper,
.content-container > #recent .latest-articles-block .carousel-wrapper,
#main-gallery > .category-section > .sub-section > .carousel-wrapper {
  overflow: clip;
  padding: 12px clamp(16px, 4%, 44px) 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7,7,9,0.50), rgba(7,7,9,0.50)),
    radial-gradient(circle at 12% 0%, rgba(212,175,55,0.07), transparent 26rem);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.20);
  backdrop-filter: blur(3px) saturate(1.03);
  -webkit-backdrop-filter: blur(3px) saturate(1.03);
}

/* Slider'ın kendi arka planı sıfır — şerit wrapper'da */
.content-container > #recent > .latest-videos-wrapper .video-slider,
.content-container > #recent .latest-articles-block .carousel-wrapper .video-slider,
#main-gallery > .category-section > .sub-section > .carousel-wrapper .video-slider {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-items: stretch;
}

/* Scroll butonları dikey ortalı */
.content-container > #recent > .latest-videos-wrapper .scroll-btn,
.content-container > #recent .latest-articles-block .scroll-btn,
#main-gallery > .category-section > .sub-section > .carousel-wrapper .scroll-btn {
  top: 50%;
}

/* Yazar / sanatçı / bilim insanı otomatik rayları */
#main-gallery .writer-subgroup > .auto-carousel-wrapper.author-rail-mask,
.content-container .writer-subgroup > .auto-carousel-wrapper.author-rail-mask {
  overflow: clip;
  padding: 12px clamp(16px, 4%, 44px) 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7,7,9,0.50), rgba(7,7,9,0.50)),
    radial-gradient(circle at 14% 0%, rgba(212,175,55,0.075), transparent 26rem);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.20);
  backdrop-filter: blur(3px) saturate(1.03);
  -webkit-backdrop-filter: blur(3px) saturate(1.03);
}

/* author-rail mask efekti */
.author-rail-mask {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

.author-rail-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  animation: scrollLeft 230s linear infinite;
  will-change: transform;
  padding: 3px 0 6px;
}
.author-rail-mask.reverse .author-rail-track { animation-direction: reverse; }
.author-rail-mask:hover .author-rail-track { animation-play-state: paused; }


/* ── 6. OTOMATİK KAYAN CAROUSEL (big-card) ────────────────── */
.auto-carousel-wrapper { overflow: hidden; position: relative; }
.auto-carousel-track {
  display: flex;
  gap: 14px;
  animation: scrollLeft 40s linear infinite;
  width: max-content;
}
.auto-carousel-track:hover { animation-play-state: paused; }
.auto-carousel-wrapper.reverse .auto-carousel-track { animation-direction: reverse; }

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* big-card yalnızca auto-carousel içinde (author-rail değil) */
.auto-carousel-wrapper:not(.author-rail-mask) {
  border-radius: 18px;
  background: rgba(7,7,9,0.50);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: 0 14px 34px rgba(0,0,0,0.20);
  padding: 10px 8px;
  backdrop-filter: blur(4px) saturate(1.04);
  -webkit-backdrop-filter: blur(4px) saturate(1.04);
}

.big-card {
  flex: 0 0 220px;
  height: 310px;
  background: rgba(18,18,20,0.62);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.11);
  transition: border-color 0.3s;
  display: block;
  text-decoration: none;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
}
.big-card:hover { border-color: var(--torima-gold); }
.big-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.4s;
}
.big-card:hover img { opacity: 0.48; }
.big-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 15px 13px;
  background: linear-gradient(to top, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.38) 58%, transparent 100%);
}
.big-card-info h3 { font-size: 0.94rem; color: #fff; font-weight: 800; margin-bottom: 6px; line-height: 1.24; }
.big-card-info p  {
  font-size: 0.68rem; color: #aaa; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.big-card-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--torima-gold); color: #000;
  font-size: 8px; font-weight: 900;
  text-transform: uppercase; padding: 3px 7px;
  border-radius: 2px; letter-spacing: 1px;
}


/* ── 7. YAZAR RAY KARTI ────────────────────────────────────── */
.author-rail-card {
  flex: 0 0 66px;
  width: 66px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20,20,22,0.62);
  border: 1px solid rgba(255,255,255,0.11);
  display: block;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.author-rail-card:hover {
  transform: translateY(-4px);
  border-color: var(--torima-gold);
  box-shadow: 0 16px 30px rgba(0,0,0,0.35);
}
.author-rail-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: #090909;
}
.author-rail-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.author-rail-card:hover .author-rail-card__media img {
  transform: scale(1.05);
  opacity: 0.82;
}
.author-rail-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.06) 55%, transparent 100%);
}
.author-rail-card__body {
  padding: 6px 6px 7px;
  background: linear-gradient(180deg, rgba(13,13,15,0.34), rgba(13,13,15,0.56));
}
.author-rail-card__title {
  color: #fff;
  font-size: 0.42rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-rail-card__desc {
  color: #a6a6a6;
  font-size: 0.36rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-rail-card__badge {
  position: absolute;
  top: 5px; left: 5px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(212,175,55,0.94);
  color: #000;
  font-size: 5px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 999px;
}
.author-rail-empty {
  color: #8a8a8a;
  font-size: 0.95rem;
  padding: 12px 2px 6px;
}


/* ── 8. MAKALE KARTI ───────────────────────────────────────── */
.article-card-link .custom-thumbnail img {
  opacity: 1;
  object-fit: cover;
  padding: 0;
  background: #050505;
  filter: none;
}
.article-card-link:hover .custom-thumbnail img {
  transform: scale(1.035);
  opacity: 1;
  filter: none;
}
.article-card-link .play-overlay { background: rgba(212,175,55,.92); }
.article-card-link:not(:hover) .play-overlay { opacity: 0; }
.latest-articles-block .video-slider { scroll-behavior: smooth; }
.latest-articles-block .video-card { min-height: 100%; }

.loading-placeholder,
.empty-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  color: #9b9b9b;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
  background: #111;
  padding: 18px;
  text-align: center;
}

.section-mini-note {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}


/* ── 9. RTL ────────────────────────────────────────────────── */
html[dir="rtl"] .hero-content-wrapper { direction: rtl; }
html[dir="rtl"] .hero-text-area       { text-align: right; }
html[dir="rtl"] .section-title        { direction: rtl; }
html[dir="rtl"] .category-section     { direction: rtl; }
html[dir="rtl"] .latest-videos-wrapper,
html[dir="rtl"] .latest-articles-wrapper { direction: rtl; }


/* ── 10. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {

  .premium-hero {
    height: auto;
    min-height: 460px;
    aspect-ratio: 16 / 15;
  }
  .hero-overlay {
    background: linear-gradient(to top, rgba(12,12,12,1) 0%, rgba(12,12,12,0.84) 42%, rgba(0,0,0,0.18) 100%);
  }
  .hero-content-wrapper { padding: 24px 16px 22px; }
  .hero-text-area { max-width: 100%; }
  .hero-text-area h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-text-area p  { font-size: 0.98rem; margin-bottom: 22px; max-width: 100%; }
  .hero-action-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    min-height: 48px;
    border-radius: 12px;
  }

  .content-container > #recent { padding-top: 20px; }
  .latest-articles-block .sub-title,
  #recent .latest-articles-block h3.sub-title {
    font-size: 1.25rem !important;
  }

  /* Başlıklar ve alt başlıklar mobilde kenarlara hizalı */
  .content-container > #recent > h2.section-title,
  .content-container > #recent > .section-header-inline,
  .content-container > #recent .latest-articles-block > .section-header-inline,
  #main-gallery > .category-section > .section-header-inline,
  #main-gallery > .category-section .sub-section > h3.sub-title,
  #main-gallery > .category-section .sub-section > .sub-title,
  #main-gallery .writer-subgroup__head,
  .content-container .writer-subgroup__head,
  .section-heading-row {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }
  .section-view-all-btn { padding: 9px 13px; }

  .author-rail-mask {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .author-rail-track { gap: 7px; animation-duration: 190s; }
  .author-rail-card  { flex-basis: 47px; width: 47px; }

  .auto-carousel-track { gap: 10px; }
  .big-card { flex-basis: 170px; height: 242px; border-radius: 10px; }
  .big-card-info { padding: 11px 10px; }
  .big-card-info h3 {
    font-size: 0.76rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .big-card-info p { display: none; }
  .auto-carousel-wrapper:not(.author-rail-mask) { padding: 8px 6px; border-radius: 14px; }

  .content-container > #recent > .latest-videos-wrapper,
  .content-container > #recent .latest-articles-block .carousel-wrapper,
  #main-gallery > .category-section > .sub-section > .carousel-wrapper,
  #main-gallery .writer-subgroup > .auto-carousel-wrapper.author-rail-mask,
  .content-container .writer-subgroup > .auto-carousel-wrapper.author-rail-mask {
    padding: 10px 10px 12px;
    border-radius: 14px;
  }

  #main-gallery .video-slider > .video-card,
  #grid-recent.video-slider > .video-card,
  #grid-latest-articles.video-slider > .video-card {
    flex: 0 0 275px;
    min-width: 275px;
    max-width: 275px;
  }
  #main-gallery .custom-thumbnail,
  #grid-recent .custom-thumbnail,
  #grid-latest-articles .custom-thumbnail { padding-bottom: 58%; }
  #main-gallery .video-info h3,
  #grid-recent .video-info h3,
  #grid-latest-articles .video-info h3 { font-size: 0.84rem; line-height: 1.28; }
  #main-gallery .video-info p,
  #grid-recent .video-info p,
  #grid-latest-articles .video-info p   { font-size: 0.72rem; line-height: 1.3; }

  .video-card.category-entry-card { min-width: min(86vw, 360px); }
}

@media (max-width: 560px) {

  .premium-hero {
    min-height: 400px;
    aspect-ratio: 16 / 16;
  }
  .hero-tag-sim   { font-size: 10px; letter-spacing: 1px; }
  .hero-text-area h1 { font-size: clamp(1.7rem, 8.4vw, 2.35rem); }
  .hero-text-area p  { font-size: 0.93rem; }
  .hero-action-btn   { padding: 12px 16px; }

  .content-container > #recent { padding-top: 16px; }
  .latest-articles-block .sub-title,
  #recent .latest-articles-block h3.sub-title {
    font-size: 1.1rem !important;
  }

  .big-card { flex-basis: 138px; height: 200px; }
  .big-card-info h3 { font-size: 0.68rem; }
  .big-card-tag { font-size: 7px; left: 8px; top: 8px; }
  .auto-carousel-wrapper:not(.author-rail-mask) { padding: 8px 6px; border-radius: 12px; }

  .content-container > #recent > .latest-videos-wrapper,
  .content-container > #recent .latest-articles-block .carousel-wrapper,
  #main-gallery > .category-section > .sub-section > .carousel-wrapper,
  #main-gallery .writer-subgroup > .auto-carousel-wrapper.author-rail-mask,
  .content-container .writer-subgroup > .auto-carousel-wrapper.author-rail-mask {
    padding: 8px 8px 10px;
    border-radius: 12px;
  }

  #main-gallery .video-slider > .video-card,
  #grid-recent.video-slider > .video-card,
  #grid-latest-articles.video-slider > .video-card {
    flex-basis: 238px;
    min-width: 238px;
    max-width: 238px;
  }
  #main-gallery .video-info h3,
  #grid-recent .video-info h3,
  #grid-latest-articles .video-info h3 { font-size: 0.78rem; }
  #main-gallery .video-info p,
  #grid-recent .video-info p,
  #grid-latest-articles .video-info p   { font-size: 0.66rem; }

  .video-card.category-entry-card { min-width: 43vw; }
}
