﻿:root{
  --ct-bg: #f4efe6;
  --ct-paper: #fbf8f1;
  --ct-ink: #1f2426;
  --ct-muted: rgba(31,36,38,.68);
  --ct-line: rgba(31,36,38,.12);
  --ct-shadow: 0 14px 40px rgba(0,0,0,.10);
  --ct-radius: 20px;
}

/* =========================================================
   Collecting Tips – Quiet Paper Background
   ========================================================= */
/*
.ct-body{
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(184,138,43,.06), transparent 55%),
    radial-gradient(900px 500px at 80% 0%, rgba(74,47,87,.05), transparent 55%),
    #f6f1e9;
}
*/

.ct-wrap{
  padding: 26px 0 50px;   /* sadece üst-alt nefes */
}

.ct-container{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

@media (max-width: 600px){
  .ct-container{
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Views */
.ct-view{ display: none; }
.ct-view--active{ display: block; }

/* Head */
.ct-head{
  padding: 18px 0 10px;
}
.ct-head__title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
}
.ct-head__subtitle{
  margin: 10px 0 0;
  color: var(--ct-muted);
  line-height: 1.6;
}

/* List grid */
/* List grid — single column */
.ct-grid{
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.ct-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;

  text-align: left;
  border: 1px solid var(--ct-line);
  background: rgba(251,248,241,.75);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
  padding: 10px 16px;
  cursor: pointer;

  transition: background-color .2s ease, border-color .2s ease;
}

.ct-item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background-color .2s ease;
}

.ct-item:hover{
  background: rgba(251,248,241,.97);   /* daha görünür */
  border-color: rgba(184,138,43,.55);  /* daha belirgin */
}

.ct-item:hover::before{
  background: rgba(184,138,43,.55);
}

.ct-item.is-active{
  background: rgba(251,248,241,.86);
  border-color: rgba(31,36,38,.18);
}
.ct-item.is-active::before{
  background: rgba(31,36,38,.22);
}

.ct-item:focus-visible{
  outline: none;
  border-color: rgba(184,138,43,.60);
}

.ct-item__roman{
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ct-line);
  background: rgba(0,0,0,.03);
  font-weight: 700;
  flex-shrink: 0;
}

.ct-item__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ct-item__hint{
  display: block;
  margin-top: 6px;
  color: var(--ct-muted);
  line-height: 1.55;
}

/* Detail */
.ct-detailBar{
  margin: 8px 0 16px;
}
.ct-back{
  border: 1px solid var(--ct-line);
  background: rgba(251,248,241,.75);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

/* Article */
.ct-article__head{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  margin: 12px 0 12px;
}
.ct-article__kicker{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ct-line);
  background: rgba(0,0,0,.03);
  font-weight: 800;
}
.ct-article__title{
  margin: 0;
  font-size: 28px;
}
.ct-article__subtitle{
  margin: 6px 0 0;
  color: var(--ct-muted);
  font-style: italic;
}

/* Card */
.ct-card{
  border: 1px solid var(--ct-line);
  background: var(--ct-paper);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
  overflow: hidden;
}
.ct-card__body{
  padding: 18px 18px 10px;
  line-height: 1.75;
}
.ct-card__body p{ margin: 0 0 14px; }

/* Quote */
.ct-quote{
  margin: 16px 0;
  padding: 14px 14px;
  border-left: 3px solid rgba(184,138,43,.55);
  background: rgba(184,138,43,.08);
  border-radius: 14px;
}

.ct-quote p{
  margin: 0;
}

/* ===============================
   Collecting Tips – Intro Overlay
   =============================== */

.ct-intro{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.ct-intro.is-active{
  display: block;
}

.ct-intro__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.ct-intro__card{
  position: relative;
  max-width: 760px;
  margin: 8vh auto 0;
  padding: 14px;
}

.ct-intro__media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.ct-intro__media img{
  width: 100%;
  height: auto;
  display: block;
}

.ct-intro__overlayText{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,.38);
  color: #fff;
  backdrop-filter: blur(6px);
}

.ct-intro__title{
  font-size: 22px;
  font-weight: 700;
}

.ct-intro__subtitle{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
}

/* Fade-out */
.ct-intro.fade-out{
  animation: ctIntroFade .6s ease forwards;
}

@keyframes ctIntroFade{
  to{
    opacity: 0;
    transform: translateY(-6px);
  }
}

.ct-intro__skip{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;

  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .02em;
  cursor: pointer;

  opacity: .75;
  backdrop-filter: blur(6px);
}

.ct-intro__skip:hover{ opacity: 1; 
}

/* Active/seen item — very subtle */
.ct-item.is-active{
  border-color: rgba(31,36,38,.18);
  background: rgba(251,248,241,.88);
}

.ct-item.is-active::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(31,36,38,.22);
}

.ct-view{ will-change: opacity, transform; }

.ct-view.is-enter{
  opacity: 0;
  transform: translateY(8px);
}
.ct-view.is-enter.is-enter-active{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ct-view.is-leave{
  opacity: 1;
  transform: translateY(0);
}
.ct-view.is-leave.is-leave-active{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

html body.collecting-tips{
  background-image: url("../images/collecting/collecting-tips-bg.jpg");
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* ← kritik satır */
  background-color: #f2efe6;
  min-height: 100vh;
}

/* Mobilde performans/uyumluluk için scroll */
@media (max-width: 768px){
  html body.collecting-tips{
    background-attachment: scroll;
  }
}

/* Desktop only — shift text to the right */
@media (min-width: 1024px){
  .collecting-tips .ct-container{
    margin-left: auto;
    margin-right: 8%;
  }
  
  /* Article II - Use full width */
  .collecting-tips #pip-article-2 .ct-container{
    margin-right: 2%;  /* Daha geniş alan */
    max-width: 1400px;  /* Daha geniş container */
  }
}

.ct-table{
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.ct-table th,
.ct-table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--ct-line);
  text-align: left;
  vertical-align: top;
}

.ct-table thead th{
  font-weight: 700;
  color: var(--ct-ink);
  background: rgba(0,0,0,.03);
}

.ct-table tbody tr:hover{
  background: rgba(184,138,43,.06);
}


/* ===== Language visibility ===== */

/* Varsayılan: sadece EN */
.lang-tr .ct-tr {
  display: block;
}

.lang-tr .ct-en {
  display: none;
}

.lang-en .ct-tr {
  display: none;
}

.lang-en .ct-en {
  display: block;
}

/* =========================================================
   MOBILE READABILITY FIX — STEP 1 (LOCKED)
   ========================================================= */
@media (max-width: 768px){

  /* Ana makale metni */
  .ct-card__body{
    font-size: 16px;          /* ← KRİTİK */
    line-height: 1.7;
    padding: 18px 16px 14px;  /* yanlardan biraz nefes */
  }

  .ct-card__body p{
    margin-bottom: 16px;
  }

  /* Liste içindeki kısa açıklamalar */
  .ct-item__hint{
    font-size: 14px;
    line-height: 1.6;
  }

  /* Makale başlığı */
  .ct-article__title{
    font-size: 22px;
    line-height: 1.25;
  }

  /* Roma rakamı / kicker */
  .ct-article__kicker{
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px){
  html body.collecting-tips .ct-container{
    padding-left: clamp(96px, 13vw, 230px);
    padding-right: 28px;
  }
}

@media (min-width: 768px){
  body.collecting-tips .ct-card{
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Article II - Wider for table */
  body.collecting-tips #pip-article-2 .ct-card{
    max-width: 95%;  /* Geniş alan */
    margin-left: auto;
    margin-right: auto;
  }
}
  
body.collecting-tips .ct-back{
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
body.collecting-tips .ct-back:active{
  transform: translateY(1px);
}

body.collecting-tips .ct-card{
  background: rgba(251,248,241,.94);
}

/* =========================================================
   MOBILE — Button Active Polish (STEP 2)
   ========================================================= */
@media (max-width: 768px){

  .ct-item.is-active{
    background: rgba(251,248,241,.92);
    border-color: rgba(31,36,38,.22);
  }

  .ct-item.is-active::before{
    background: rgba(184,138,43,.75);
    width: 3px;
  }

  .ct-item.is-active .ct-item__roman{
    background: rgba(184,138,43,.12);
    border-color: rgba(184,138,43,.45);
  }
}

@media (max-width: 768px){
  .ct-item:active{
    transform: translateY(1px);
    background: rgba(251,248,241,1);
  }
}


/* =========================================================
   PUBLISHERS TABLE & DETAIL
   ========================================================= */

.ct-table-intro{
  font-style: italic;
  color: var(--ct-muted);
  margin-bottom: 18px;
  font-size: 15px;
}

/* Publishers table - wider layout */
.ct-publishers-table{
  margin-top: 18px;
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}

.ct-publishers-table th{
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  line-height: 1.4;
  background: rgba(14,107,101,.08);  /* Koyu background */
  border-bottom: 2px solid rgba(14,107,101,.2);
}

.ct-publishers-table td{
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  vertical-align: top;
  background: var(--ct-paper);  /* Her hücre için arka plan */
}

.ct-publishers-table tbody tr:hover td{
  background: rgba(184,138,43,.06);
}

/* Sütun genişlikleri - tüm sütunlar görünsün */
.ct-publishers-table th:nth-child(1),
.ct-publishers-table td:nth-child(1) {
  width: 16%;  /* Yayıncı adı */
  min-width: 160px;
}

.ct-publishers-table th:nth-child(2),
.ct-publishers-table td:nth-child(2) {
  width: 16%;  /* Merkez - 2 satır olabilir */
  min-width: 140px;
}

.ct-publishers-table th:nth-child(3),
.ct-publishers-table td:nth-child(3) {
  width: 13%;  /* Yıllar */
  min-width: 110px;
  white-space: nowrap;
}

.ct-publishers-table th:nth-child(4),
.ct-publishers-table td:nth-child(4) {
  width: 16%;  /* İmza */
  min-width: 140px;
}

.ct-publishers-table th:nth-child(5),
.ct-publishers-table td:nth-child(5) {
  width: 15%;  /* Rol */
  min-width: 130px;
}

.ct-publishers-table th:nth-child(6),
.ct-publishers-table td:nth-child(6) {
  width: 24%;  /* Özellik */
  min-width: 200px;
}

/* Tablo scroll container */
.ct-table-wrapper{
  overflow-x: auto;
  margin: 18px -18px;
  padding: 0 18px;
  position: relative;
  -webkit-overflow-scrolling: touch;  /* iOS smooth scroll */
  scroll-behavior: smooth;
}

/* Card body'yi genişlet */
.ct-card__body{
  overflow: visible;  /* Scroll için */
}

/* Scrollbar styling */
.ct-table-wrapper::-webkit-scrollbar {
  height: 10px;
}

.ct-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,.05);
  border-radius: 5px;
}

.ct-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(184,138,43,.4);
  border-radius: 5px;
}

.ct-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(184,138,43,.6);
}

/* =========================================================
   MOBİL VE TABLET - İLK SÜTUN SABİT (STICKY)
   iPad Mini, iPad Air, ve mobil cihazlar için
   ========================================================= */

@media (max-width: 1024px){
  .ct-publishers-table{
    font-size: 12px;
  }
  
  .ct-publishers-table th,
  .ct-publishers-table td{
    font-size: 12px;
    padding: 8px 10px;
  }
  
  /* Tablo wrapper - sola kaydır */
  .ct-table-wrapper{
    margin-left: 0;  /* Sol boşluk yok */
    margin-right: -18px;
    padding-left: 0;
    padding-right: 18px;
  }
  
  /* İlk sütun (Yayıncı adı) sabit kalsın - MOBİL VE TABLET */
  .ct-publishers-table th:first-child,
  .ct-publishers-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #fbf8f1;  /* Tam opak, hex renk */
    box-shadow: 3px 0 6px rgba(0,0,0,.15);
    min-width: 140px;
    max-width: 140px;
    padding-left: 12px;  /* İç padding */
  }
  
  /* Header için daha koyu ve OPAK arka plan */
  .ct-publishers-table th:first-child {
    background: #d4e4e3;  /* Tam opak yeşilimsi */
    z-index: 11;
    font-weight: 800;
  }
  
  /* Tıklanmış satır için OPAK arka plan */
  .ct-publishers-table tbody tr:hover td:first-child,
  .ct-publishers-table tbody tr.active td:first-child {
    background: #f5edd9;  /* Tam opak altın */
  }
  
  /* Diğer header'lar da solid olsun */
  .ct-publishers-table th {
    background: rgba(14,107,101,.12);
  }
  
  /* Diğer td'ler de solid */
  .ct-publishers-table td {
    background: var(--ct-paper);
  }
  
  /* Hover durumunda solid arka plan */
  .ct-publishers-table tbody tr:hover td {
    background: rgba(184,138,43,.06);
  }
  
  /* Diğer sütunlar minimum genişlik */
  .ct-publishers-table th:nth-child(2),
  .ct-publishers-table td:nth-child(2) {
    min-width: 120px;
  }
  
  .ct-publishers-table th:nth-child(3),
  .ct-publishers-table td:nth-child(3) {
    min-width: 100px;
  }
  
  .ct-publishers-table th:nth-child(4),
  .ct-publishers-table td:nth-child(4) {
    min-width: 110px;
  }
  
  .ct-publishers-table th:nth-child(5),
  .ct-publishers-table td:nth-child(5) {
    min-width: 100px;
  }
  
  .ct-publishers-table th:nth-child(6),
  .ct-publishers-table td:nth-child(6) {
    min-width: 160px;
  }
  
  /* Scroll hint */
  .ct-table-wrapper::after{
    content: '→';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(184,138,43,.6);
    pointer-events: none;
    animation: scrollHint 2s ease-in-out infinite;
  }
  
  @keyframes scrollHint {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.8; transform: translateY(-50%) translateX(4px); }
  }
  
  /* Scroll başladığında hint'i gizle */
  .ct-table-wrapper.scrolled::after{
    display: none;
  }
}

/* Tablet landscape - biraz daha büyük font */
@media (min-width: 768px) and (max-width: 1024px){
  .ct-publishers-table{
    font-size: 13px;
  }
  
  .ct-publishers-table th,
  .ct-publishers-table td{
    font-size: 13px;
    padding: 9px 11px;
  }
}

/* Tıklanabilir yayıncı isimleri */
.publisher-link{
  background: none;
  border: none;
  color: #0e6b65;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-align: left;
  transition: color .2s ease;
}

.publisher-link:hover{
  color: #b88a2b;
}

.publisher-link:active{
  transform: translateY(1px);
}

/* SEO özet kutusu */
.ct-seo-summary{
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(184,138,43,.08);
  border-left: 3px solid rgba(184,138,43,.55);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.ct-seo-summary p{
  margin: 0;
}

/* Yayıncı detay alanı */
.publisher-detail{
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--ct-line);
}

.publisher-detail-content{
  font-size: 15px;
  line-height: 1.75;
}

.publisher-detail-content h3{
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ct-ink);
}

.publisher-detail-content h4{
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--ct-muted);
  font-weight: 500;
  font-style: italic;
}

.publisher-detail-content p{
  margin: 0 0 16px;
}

.publisher-close{
  margin-top: 24px;
  padding: 10px 16px;
  background: rgba(14,107,101,.1);
  border: 1px solid rgba(14,107,101,.25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: #0e6b65;
  font-weight: 600;
  transition: all .2s ease;
}

.publisher-close:hover{
  background: rgba(14,107,101,.18);
  border-color: rgba(14,107,101,.4);
}