/* ============================================================
   ATIKLER FLAKE — Türkiye Geneli Hizmet
   Dosya: assets/anasayfa-turkiye-geneli-hizmet.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  --red:        #D32F2F;
  --red2:       #FF5252;
  --red-dim:    rgba(211,47,47,0.18);
  --red-border: rgba(211,47,47,0.35);
  --dark:       #0C0D11;
  --dark2:      #12141A;
  --dark3:      #191C26;
  --glass:      rgba(255,255,255,0.04);
  --border:     rgba(255,255,255,0.07);
  --white:      #FFFFFF;
  --muted:      rgba(255,255,255,0.42);
  --ease:       cubic-bezier(.22,1,.36,1);
}

/* ======================================================
   SECTION
   ====================================================== */
.tgh-section {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: 0;
  font-family: 'Barlow', sans-serif;
}

/* ======================================================
   ARKA PLAN
   ====================================================== */
.tgh-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.tgh-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
}

.tgh-bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.tgh-bg-glow.g1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(211,47,47,0.13) 0%, transparent 70%);
  top: -150px; left: -120px;
}
.tgh-bg-glow.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(211,47,47,0.09) 0%, transparent 70%);
  bottom: -100px; right: 5%;
}
.tgh-bg-glow.g3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(211,47,47,0.07) 0%, transparent 70%);
  top: 50%; right: 35%; transform: translateY(-50%);
}

/* ======================================================
   İÇ KONTEYNER
   ====================================================== */
.tgh-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 100px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ======================================================
   SOL
   ====================================================== */

/* Badge */
.tgh-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 18px; border-radius: 3px;
  margin-bottom: 32px;
}
.tgh-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red2);
  box-shadow: 0 0 0 0 rgba(255,82,82,0.6);
  animation: tgh-badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tgh-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,82,82,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255,82,82,0); }
}

/* Başlık */
.tgh-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 900; line-height: 1.05;
  color: var(--white); letter-spacing: -0.5px;
  margin: 0 0 22px; text-transform: uppercase;
}
.tgh-title em {
  font-style: normal; color: var(--red);
  text-shadow: 0 0 40px rgba(211,47,47,0.55);
}

/* Açıklama */
.tgh-desc {
  font-size: 16px; color: var(--muted); line-height: 1.75;
  margin: 0 0 44px; max-width: 430px;
}

/* ---- Özellik listesi ---- */
.tgh-features {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}

.tgh-feat {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  position: relative; overflow: hidden;
  /* giriş animasyonu */
  opacity: 0; transform: translateX(-20px);
  animation: tgh-feat-in 0.5s var(--ease) forwards;
  animation-delay: calc(0.6s + var(--i) * 0.1s);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
@keyframes tgh-feat-in {
  to { opacity:1; transform: translateX(0); }
}
.tgh-feat:hover {
  border-color: var(--red-border);
  background: rgba(211,47,47,0.07);
  box-shadow: 0 0 28px rgba(211,47,47,0.1);
}
/* Sol çizgi */
.tgh-feat::before {
  content: ''; position: absolute;
  left: 0; top: 25%; bottom: 25%; width: 3px;
  background: var(--red); border-radius: 0 3px 3px 0;
  opacity: 0; transform: scaleY(0.5);
  transition: opacity 0.3s, transform 0.3s;
}
.tgh-feat:hover::before { opacity: 1; transform: scaleY(1); }

.tgh-feat-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(211,47,47,0.12);
  border: 1px solid rgba(211,47,47,0.22);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red2);
  transition: background 0.3s, box-shadow 0.3s;
}
.tgh-feat-icon svg { width: 20px; height: 20px; }
.tgh-feat:hover .tgh-feat-icon {
  background: var(--red);
  box-shadow: 0 0 18px rgba(211,47,47,0.5);
  color: #fff;
}

.tgh-feat-body { flex: 1; min-width: 0; }
.tgh-feat-body strong {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--white); margin-bottom: 3px;
}
.tgh-feat-body span { font-size: 13px; color: var(--muted); }

/* ---- Stats ---- */
.tgh-stats {
  display: flex; align-items: center;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  opacity: 0; animation: tgh-fade-up 0.5s var(--ease) 1.1s forwards;
}
@keyframes tgh-fade-up {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

.tgh-stat { flex: 1; text-align: center; }
.tgh-stat-sep { width: 1px; height: 42px; background: var(--border); flex-shrink: 0; }

.tgh-stat-n {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 3vw, 42px); font-weight: 900;
  color: var(--red); line-height: 1;
  text-shadow: 0 0 24px rgba(211,47,47,0.5);
}
.tgh-stat-n sup { font-size: 18px; letter-spacing: 0; vertical-align: super; }
.tgh-stat-l {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 2px; margin-top: 5px;
}

/* ======================================================
   SAĞ — LOJİSTİK AĞI GÖRSELİ
   ====================================================== */
.tgh-right {
  opacity: 0; animation: tgh-fade-right 0.7s var(--ease) 0.3s forwards;
}
@keyframes tgh-fade-right {
  from { opacity:0; transform: translateX(30px); }
  to   { opacity:1; transform: translateX(0); }
}

.tgh-network {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  max-width: 480px; margin: 0 auto;
}

/* Arka deko halkalar */
.tgh-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(211,47,47,0.12);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: tgh-ring-spin 30s linear infinite;
}
.r1 { width: 85%; height: 85%; animation-duration: 40s; }
.r2 { width: 60%; height: 60%; animation-duration: 28s; animation-direction: reverse; }
.r3 { width: 35%; height: 35%; animation-duration: 20s; }
@keyframes tgh-ring-spin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* SVG çizgi katmanı */
.tgh-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.tgh-line {
  stroke: rgba(211,47,47,0.22); stroke-width: 1.2;
  stroke-dasharray: 4 6;
  animation: tgh-line-appear 0.6s var(--ease) var(--d) both;
}
@keyframes tgh-line-appear {
  from { opacity:0; }
  to   { opacity:1; }
}

/* Paket animasyonu (SVG circle hareket) */
.tgh-packet {
  fill: var(--red2);
  filter: drop-shadow(0 0 4px var(--red2));
  animation: tgh-move-packet 3s linear var(--pd) infinite;
}
@keyframes tgh-move-packet {
  0%   { cx: var(--x1); cy: var(--y1); opacity:0; }
  5%   { opacity:1; }
  90%  { opacity:1; }
  100% { cx: var(--x2); cy: var(--y2); opacity:0; }
}

/* Merkez hub */
.tgh-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 10;
}
.tgh-hub-pulse {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(211,47,47,0.5);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: tgh-hub-expand 2.5s ease-out infinite;
}
.p1 { width: 70px; height: 70px; animation-delay: 0s; }
.p2 { width: 70px; height: 70px; animation-delay: 0.8s; }
.p3 { width: 70px; height: 70px; animation-delay: 1.6s; }
@keyframes tgh-hub-expand {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; }
}

.tgh-hub-core {
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a0a0a, #1a0505);
  border: 2px solid rgba(211,47,47,0.6);
  box-shadow:
    0 0 0 4px rgba(211,47,47,0.15),
    0 0 30px rgba(211,47,47,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.tgh-hub-label {
  margin-top: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--red2); text-shadow: 0 0 12px rgba(255,82,82,0.6);
  white-space: nowrap; position: relative; z-index: 2;
}

/* Şehir noktaları */
.tgh-node {
  position: absolute;
  left: var(--nx); top: var(--ny);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0;
  animation: tgh-node-in 0.4s var(--ease) var(--nd) forwards;
  z-index: 5;
}
@keyframes tgh-node-in {
  from { opacity:0; transform: translate(-50%,-50%) scale(0.5); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}

.tgh-node-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #FF5252, #B71C1C);
  border: 2px solid rgba(255,82,82,0.5);
  box-shadow: 0 0 12px rgba(255,82,82,0.6), 0 0 24px rgba(211,47,47,0.3);
  animation: tgh-dot-glow 2s ease-in-out infinite alternate;
}
@keyframes tgh-dot-glow {
  from { box-shadow: 0 0 8px rgba(255,82,82,0.5),  0 0 16px rgba(211,47,47,0.2); }
  to   { box-shadow: 0 0 16px rgba(255,82,82,0.9), 0 0 32px rgba(211,47,47,0.5); }
}

.tgh-node span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.65); white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Merkez istatistik etiketi (sağ alt) */
.tgh-center-tag {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(211,47,47,0.15);
  border: 1px solid rgba(211,47,47,0.3);
  border-radius: 8px; padding: 12px 18px;
  text-align: center;
  opacity: 0; animation: tgh-fade-up 0.5s var(--ease) 1.4s forwards;
}
.tgh-ct-n {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px; font-weight: 900; color: var(--white); line-height: 1;
}
.tgh-ct-l {
  display: block; font-size: 9px; font-weight: 700;
  color: var(--red2); letter-spacing: 2px; text-transform: uppercase;
  margin-top: 4px;
}

/* Köşe dekorasyonlar */
.tgh-corner {
  position: absolute; width: 20px; height: 20px; pointer-events: none;
}
.tgh-corner.tl { top:0; left:0;   border-top:2px solid var(--red-border); border-left:2px solid var(--red-border);  }
.tgh-corner.tr { top:0; right:0;  border-top:2px solid var(--red-border); border-right:2px solid var(--red-border); }
.tgh-corner.bl { bottom:0; left:0;  border-bottom:2px solid var(--red-border); border-left:2px solid var(--red-border);  }
.tgh-corner.br { bottom:0; right:0; border-bottom:2px solid var(--red-border); border-right:2px solid var(--red-border); }

/* ======================================================
   TABLET
   ====================================================== */
@media (max-width: 1024px) {
  .tgh-inner {
    grid-template-columns: 1fr;
    gap: 60px; padding: 72px 32px;
  }
  .tgh-network { max-width: 400px; }
  .tgh-desc { max-width: 100%; }
}

/* ======================================================
   MOBİL
   ====================================================== */
@media (max-width: 700px) {
  .tgh-inner { padding: 56px 18px; gap: 44px; }

  .tgh-title { font-size: clamp(34px, 9vw, 52px); }
  .tgh-desc  { font-size: 14px; margin-bottom: 28px; }

  .tgh-badge { font-size: 10px; letter-spacing: 2px; padding: 7px 14px; margin-bottom: 22px; }

  /* Özellik kartları */
  .tgh-features { gap: 10px; margin-bottom: 28px; }
  .tgh-feat { padding: 13px 14px; gap: 13px; border-radius: 10px; }
  .tgh-feat-icon { width: 40px; height: 40px; border-radius: 9px; }
  .tgh-feat-icon svg { width: 18px; height: 18px; }
  .tgh-feat-body strong { font-size: 14px; }
  .tgh-feat-body span   { font-size: 12px; }

  /* Stats */
  .tgh-stats { padding: 18px 14px; border-radius: 10px; }
  .tgh-stat-n { font-size: 30px; }
  .tgh-stat-l { font-size: 9px; }

  /* Network görseli */
  .tgh-network { max-width: 340px; }
  .tgh-hub-core { width: 54px; height: 54px; }
  .tgh-hub-core svg { width: 22px; height: 22px; }
  .tgh-p1,.tgh-p2,.tgh-p3 { width: 56px; height: 56px; }
  .tgh-hub-label { font-size: 11px; margin-top: 9px; }
  .tgh-node-dot  { width: 11px; height: 11px; }
  .tgh-node span { font-size: 9px; }
  .tgh-center-tag { padding: 9px 14px; }
  .tgh-ct-n { font-size: 28px; }
}

@media (max-width: 400px) {
  .tgh-network { max-width: 290px; }
  .tgh-stat-n  { font-size: 26px; }
}