﻿: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%;
  }
}

.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;
  }
}
  
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);
  }
}

