/*!
 * Turla360 — Nasıl Gidilir? Detay Sayfası
 * Blog tarzı premium article layout
 */

/* HERO */
.tg-hero { position: relative; min-height: 480px; background: #0a1628; overflow: hidden; color: #fff; }
.tg-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: tg-zoom 20s ease-in-out infinite alternate;
}
@keyframes tg-zoom { 0% { transform: scale(1) } 100% { transform: scale(1.08) } }
@media (prefers-reduced-motion: reduce) {
  .tg-hero-bg { animation: none; }
}
.tg-hero-overlay {
  position: absolute; inset: 0;
  /* Eskiden .6 -> .92 idi: kapak fotografi neredeyse gorunmuyordu.
     Ust kisim acildi, metnin oturdugu alt kisim okunabilirlik icin koyu kaldi. */
  background: linear-gradient(180deg, rgba(10,22,40,.28) 0%, rgba(10,22,40,.55) 45%, rgba(10,22,40,.88) 100%),
              radial-gradient(circle at 20% 30%, rgba(99,102,241,.18), transparent 50%);
}
.tg-hero-wrap {
  position: relative; z-index: 2;
  padding: 48px 32px 80px !important;
  display: flex; flex-direction: column;
}
.tg-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: .2s;
  width: fit-content;
}
.tg-back:hover { background: rgba(255,255,255,.18); transform: translateX(-3px); }
.tg-back { margin-bottom: 28px !important; }
.tg-back svg { width: 14px; height: 14px; }
.tg-hero-content { margin-top: 28px; max-width: 780px; }
.tg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 16px;
}
.tg-hero-badge span { font-size: 16px; }
.tg-hero-title {
  font-family: var(--head);
  font-size: clamp(32px, 5vw, 52px);   /* 60px olcek disiydi -> 52 */
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.tg-hero-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,.75);
  max-width: 640px;
}
.tg-hero-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 6px 12px;
  border-radius: 8px; background: rgba(255,255,255,.08);
  font-size: 13px; color: rgba(255,255,255,.85);
}
.tg-hero-meta svg { width: 14px; height: 14px; }

/* BODY */
.tg-body-wrap { background: #fafbff; padding: 60px 0; min-height: 400px; }
.tg-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .tg-grid { grid-template-columns: 1fr; } }

/* MAIN ARTICLE */
.tg-main {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: 0 1px 3px rgba(12,15,20,.04);
}
@media (max-width: 640px) { .tg-main { padding: 28px 22px; } }

.tg-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 500;
}

.tg-content { font-size: 16px; line-height: 1.75; color: #374151; }
.tg-content h1, .tg-content h2, .tg-content h3, .tg-content h4 {
  font-family: var(--head);
  color: #0f172a;
  margin: 32px 0 14px;
  letter-spacing: -.02em;
}
.tg-content h2 { font-size: 26px; font-weight: 800; }
.tg-content h3 { font-size: 21px; font-weight: 800; }
.tg-content h4 { font-size: 17px; font-weight: 700; }
.tg-content p { margin: 0 0 18px; }
.tg-content a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.tg-content ul, .tg-content ol { margin: 0 0 18px; padding-left: 26px; }
/* Tailwind preflight `ul{list-style:none}` yapar -> madde isaretleri kaybolur.
   Makale govdesinde liste, liste gibi gorunmeli: acikca geri veriliyor. */
.tg-content ul { list-style: disc; }
.tg-content ol { list-style: decimal; }
.tg-content ul ul { list-style: circle; }
.tg-content li { margin: 6px 0; padding-left: 2px; }
.tg-content li::marker { color: var(--theme-primary, #1557DC); }
.tg-content img { max-width: 100%; border-radius: 12px; margin: 18px 0; }
.tg-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #1d4ed8;
  background: #eff6ff;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1e40af;
}
.tg-content code { padding: 2px 7px; background: #f3f4f6; border-radius: 5px; font-size: 14px; }
.tg-content pre { padding: 16px; background: #0f172a; color: #e2e8f0; border-radius: 10px; overflow-x: auto; }

/* SECTION TITLE */
.tg-section-title {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
  margin: 40px 0 20px;
  padding-top: 32px;
  border-top: 1px solid #f3f4f6;
}
.tg-main > .tg-section-title:first-child { margin-top: 0; padding-top: 0; border: none; }

/* GALLERY */
.tg-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .tg-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.tg-gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #f3f4f6;
}
.tg-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.tg-gallery-item:hover img { transform: scale(1.08); }
.tg-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.3), transparent 50%);
  opacity: 0; transition: opacity .25s;
}
.tg-gallery-item:hover::after { opacity: 1; }

/* LIGHTBOX */
.tg-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.tg-lb-img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.tg-lb-close, .tg-lb-prev, .tg-lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
  backdrop-filter: blur(8px);
}
.tg-lb-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
}
.tg-lb-prev, .tg-lb-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; font-size: 32px; font-weight: 300;
}
.tg-lb-prev { left: 24px; }
.tg-lb-next { right: 24px; }
.tg-lb-close:hover, .tg-lb-prev:hover, .tg-lb-next:hover { background: rgba(255,255,255,.2); }
.tg-lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
}

/* SIDEBAR */
.tg-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.tg-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(12,15,20,.04);
}
.tg-side-title {
  font-family: var(--head);
  font-size: 14px; font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.tg-info-list { list-style: none; padding: 0; margin: 0; }
.tg-info-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.tg-info-list li:last-child { border-bottom: none; }
.tg-info-list li strong { color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tg-info-list li span { color: #0f172a; font-weight: 600; text-align: right; }

.tg-map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}
.tg-map-link:hover { text-decoration: underline; }

/* CTA */
.tg-side-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 16px;
  padding: 22px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tg-side-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(251,191,36,.2), transparent 50%);
  pointer-events: none;
}
.tg-cta-t { font-family: var(--head); font-size: 16px; font-weight: 800; margin-bottom: 6px; position: relative; }
.tg-cta-p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.55; margin-bottom: 14px; position: relative; }
.tg-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a1628;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  transition: .2s;
  position: relative;
}
.tg-cta-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.tg-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(251,191,36,.4); }
.tg-cta-btn:hover svg { transform: translateX(3px); }

/* RELATED */
.tg-related { padding: 80px 0; background: #fff; border-top: 1px solid #e5e7eb; }
.tg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .tg-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tg-related-grid { grid-template-columns: 1fr; } }
.tg-rel-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
}
.tg-rel-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(12,15,20,.15); border-color: #bfdbfe; }
.tg-rel-img { height: 160px; background: linear-gradient(135deg, #eff6ff, #fae8ff); position: relative; overflow: hidden; }
.tg-rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tg-rel-card:hover .tg-rel-img img { transform: scale(1.06); }
.tg-rel-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.tg-rel-body { padding: 16px 18px; }
.tg-rel-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #eff6ff; border: 1px solid #dbeafe;
  border-radius: 100px;
  font-size: 11px; font-weight: 700; color: #1d4ed8;
  margin-bottom: 8px;
}
.tg-rel-t { font-family: var(--head); font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 6px; }
.tg-rel-p { font-size: 13px; color: #6b7280; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FAVORI BUTTON (GOREV 2) ───────────────────────── */
.tg-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:8px}
.tg-fav-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 18px;border-radius:24px;border:2px solid rgba(255,255,255,0.7);background:rgba(255,255,255,0.15);color:#fff;font-size:13px;font-weight:600;cursor:pointer;backdrop-filter:blur(4px);transition:all .2s;user-select:none}
.tg-fav-btn svg{width:18px;height:18px;transition:fill .2s}
.tg-fav-btn:hover{background:rgba(255,255,255,0.3);border-color:#fff}
.tg-fav-btn.tg-fav-active{background:rgba(255,59,48,0.85);border-color:rgba(255,59,48,0.5);color:#fff}
.tg-fav-btn.tg-fav-active svg{fill:#fff}

/* ── YORUMLAR SECTION (GOREV 1) ────────────────────── */
.tg-comments{margin-top:40px;padding-top:32px;border-top:2px solid #f3f4f6}
.tg-comment-count{font-size:14px;font-weight:500;color:#6b7280;margin-left:6px}
.tg-comment-list{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}
.tg-comment-item{background:#f9fafb;border-radius:12px;padding:16px 20px;border:1px solid #e5e7eb}
.tg-comment-header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.tg-comment-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#ff6b35,#e85d04);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0}
.tg-comment-name{font-size:14px;font-weight:600;color:#1f2937}
.tg-comment-date{font-size:12px;color:#9ca3af;margin-top:2px}
.tg-comment-body{font-size:14px;color:#374151;line-height:1.6;white-space:pre-wrap}
.tg-comment-empty{color:#9ca3af;font-style:italic;font-size:14px;padding:16px 0}

/* Yorum formu */
.tg-comment-form-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;margin-top:8px}
.tg-comment-form-title{font-size:16px;font-weight:700;color:#1f2937;margin:0 0 16px}
.tg-flash-success{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}
.tg-flash-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}
.tg-comment-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tg-comment-field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.tg-comment-field label{font-size:13px;font-weight:600;color:#374151}
.tg-comment-field label span{color:#ef4444}
.tg-comment-field input,.tg-comment-field textarea{border:1px solid #d1d5db;border-radius:8px;padding:9px 12px;font-size:14px;color:#1f2937;transition:border-color .2s;resize:vertical;font-family:inherit}
.tg-comment-field input:focus,.tg-comment-field textarea:focus{outline:none;border-color:#ff6b35;box-shadow:0 0 0 3px rgba(255,107,53,.1)}
.tg-comment-loggedin{font-size:13px;color:#6b7280;margin-bottom:12px;padding:8px 12px;background:#f3f4f6;border-radius:8px}
.tg-comment-submit{background:linear-gradient(135deg,#ff6b35,#e85d04);color:#fff;border:none;padding:11px 28px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}
.tg-comment-submit:hover{opacity:.9}
.tg-comment-note{font-size:12px;color:#9ca3af;margin-top:8px}

@media(max-width:640px){
  .tg-comment-row{grid-template-columns:1fr}
  .tg-fav-btn span{display:none}
}

/* ═══════════════ Liste Kartı (GYG tarzı) ═══════════════ */
.tgl-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
}
.tgl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(12,15,20,.15);
  border-color: transparent;
}
.tgl-card:hover .tgl-card-img { transform: scale(1.06); }
.tgl-card:hover .tgl-card-readmore { color: #1d4ed8; }
.tgl-card:hover .tgl-card-readmore svg { transform: translateX(3px); }

.tgl-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #eff6ff, #fae8ff);
  overflow: hidden;
}
.tgl-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  display: block;
}
.tgl-card-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.tgl-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  color: #0a0e1a;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: inline-flex; align-items: center; gap: 4px;
}

.tgl-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tgl-card-loc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #0a0e1a;
  letter-spacing: .01em;
}
.tgl-card-loc svg { width: 12px; height: 12px; color: #1d4ed8; flex-shrink: 0; }
.tgl-card-loc span { color: #0a0e1a; }

.tgl-card-title {
  font-family: var(--head, 'Inter', sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: #0a0e1a;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.tgl-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}

.tgl-card-meta {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}
.tgl-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600;
}
.tgl-meta-item svg { width: 13px; height: 13px; color: #94a3b8; flex-shrink: 0; }
.tgl-meta-date {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
}

.tgl-card-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0e1a;
  transition: color .2s;
}
.tgl-card-readmore svg {
  width: 13px; height: 13px;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}


/* ── PAYLAS KARTI (sidebar) ─────────────────────────────────
   Kanallar urun detayindaki paylas modaliyla AYNI (WhatsApp/Facebook/X/
   Instagram/E-posta/baglanti). Burada makale sayfasi oldugu icin modal
   yerine her zaman gorunur ikon satiri tercih edildi. */
/* 6 kanal TEK SATIRDA: 320px'lik sidebar'da sabit 40px + bosluk tasiyordu
   (6*40+5*8 = 280 > kart ic genisligi) ve son buton alt satira dusuyordu.
   Grid ile butonlar kalan genislige gore esit olceklenir, satir hep bir. */
.tg-share-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.tg-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.tg-share-btn svg { width: 18px; height: 18px; }
.tg-share-btn:hover { transform: translateY(-2px); }
.tg-share-btn[data-ch="wa"]:hover   { color:#fff; background:#25d366; border-color:#25d366; }
.tg-share-btn[data-ch="fb"]:hover   { color:#fff; background:#1877f2; border-color:#1877f2; }
.tg-share-btn[data-ch="x"]:hover    { color:#fff; background:#0f172a; border-color:#0f172a; }
.tg-share-btn[data-ch="ig"]:hover   { color:#fff; background:#e1306c; border-color:#e1306c; }
.tg-share-btn[data-ch="mail"]:hover { color:#fff; background:#0f766e; border-color:#0f766e; }
.tg-share-btn[data-ch="link"]:hover { color:#fff; background:var(--theme-primary,#1557DC); border-color:var(--theme-primary,#1557DC); }
.tg-share-btn:focus-visible {
  outline: 2px solid var(--theme-primary, #1557DC);
  outline-offset: 2px;
}
.tg-share-msg {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}

@media (max-width: 767px) {
  /* Dokunma hedefi: masaustunde 40px yeterli, mobilde 44px alt sinir. */
  .tg-share-btn { height: 44px; }
  .tg-share-btn svg { width: 20px; height: 20px; }
}
