/*
 * UFO & Bilinmeyenler — Footer Stilleri
 * footer.css
 *
 * Tema kök dizinine koyun ve functions.php'den enqueue edin.
 */

/* ── Değişkenler (diğer CSS dosyaları yüklendiyse bu bloğu silin) ── */
:root {
  --tmnf-bg:              #0b0c10;
  --tmnf-surface:         #0f1117;
  --tmnf-surface-2:       #14161e;
  --tmnf-surface-offset:  #1a1d28;
  --tmnf-surface-dynamic: #222536;
  --tmnf-border:          rgba(255,255,255,0.08);
  --tmnf-divider:         rgba(255,255,255,0.05);
  --tmnf-text:            #e2e4ed;
  --tmnf-text-muted:      #8b8fa8;
  --tmnf-text-faint:      #4a4e65;
  --tmnf-accent:          #00d4c8;
  --tmnf-accent-dim:      rgba(0,212,200,0.13);
  --tmnf-accent-hover:    #00b8ad;
  --tmnf-font-display:    'Exo 2', 'Helvetica Neue', sans-serif;
  --tmnf-font-body:       'Source Serif 4', Georgia, serif;
  --tmnf-text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --tmnf-text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --tmnf-text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --tmnf-text-lg:   clamp(1.125rem, 1rem    + 0.65vw, 1.375rem);
  --tmnf-sp-2:  0.5rem;   --tmnf-sp-3:  0.75rem; --tmnf-sp-4:  1rem;
  --tmnf-sp-5:  1.25rem;  --tmnf-sp-6:  1.5rem;  --tmnf-sp-8:  2rem;
  --tmnf-sp-10: 2.5rem;   --tmnf-sp-12: 3rem;    --tmnf-sp-16: 4rem;
  --tmnf-ease:  200ms cubic-bezier(0.16, 1, 0.3, 1);
  --tmnf-radius-sm: 4px;  --tmnf-radius-md: 8px; --tmnf-radius-lg: 12px;
  --tmnf-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --tmnf-shadow-lg: 0 12px 40px rgba(0,0,0,0.65);
}

/* ═══════════════════════════════════════════════════════
   FOOTER KAPSAYICI
═══════════════════════════════════════════════════════ */

.tmnf-footer {
  background: var(--tmnf-surface);
  margin-top: 0;
  position: relative;
}

/* Üst gürültü çizgisi — ince aksan çizgisi */
.tmnf-footer__topline {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,212,200,0.0) 5%,
    var(--tmnf-accent) 35%,
    rgba(0,212,200,0.6) 65%,
    rgba(0,212,200,0.0) 95%,
    transparent 100%
  );
}

/* ── Container ── */
.tmnf-footer__container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(var(--tmnf-sp-4), 5vw, var(--tmnf-sp-10));
}

/* ── Ana içerik ── */
.tmnf-footer__main {
  padding-block: clamp(var(--tmnf-sp-12), 7vw, var(--tmnf-sp-16));
}

/* ── 4 Sütun Grid ── */
.tmnf-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(var(--tmnf-sp-8), 4vw, var(--tmnf-sp-12));
  align-items: start;
}

@media (max-width: 1024px) {
  .tmnf-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--tmnf-sp-8) var(--tmnf-sp-10);
  }
}

@media (max-width: 580px) {
  .tmnf-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--tmnf-sp-8);
  }
}

/* ═══════════════════════════════════════════════════════
   SÜTUN BAŞLIĞI
═══════════════════════════════════════════════════════ */

.tmnf-footer__col-title {
  display: flex;
  align-items: center;
  gap: var(--tmnf-sp-3);
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--tmnf-sp-5) 0;
}

.tmnf-footer__col-title-line {
  display: block;
  width: 3px;
  height: 14px;
  background: var(--tmnf-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   LOGO & MARKA SÜTUNU
═══════════════════════════════════════════════════════ */

.tmnf-footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--tmnf-sp-5);
}

.tmnf-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tmnf-accent);
  width: fit-content;
}

.tmnf-footer-logo__mark {
  flex-shrink: 0;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity var(--tmnf-ease);
}

.tmnf-footer-logo:hover .tmnf-footer-logo__mark {
  transform: rotate(45deg);
  opacity: 0.75;
}

.tmnf-footer-logo__name {
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-base);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color var(--tmnf-ease);
}

.tmnf-footer-logo:hover .tmnf-footer-logo__name {
  color: var(--tmnf-accent);
}

/* Tagline */
.tmnf-footer__tagline {
  font-family: var(--tmnf-font-body);
  font-size: var(--tmnf-text-sm);
  color: var(--tmnf-text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 30ch;
}

/* Sosyal medya butonları */
.tmnf-social-links {
  display: flex;
  gap: var(--tmnf-sp-2);
  flex-wrap: wrap;
}

.tmnf-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--tmnf-radius-md);
  border: 1px solid var(--tmnf-border);
  background: var(--tmnf-surface-offset);
  color: var(--tmnf-text-muted);
  text-decoration: none;
  transition: color var(--tmnf-ease), background var(--tmnf-ease),
              border-color var(--tmnf-ease), transform var(--tmnf-ease);
}

.tmnf-social-btn:hover {
  color: var(--tmnf-accent);
  background: var(--tmnf-accent-dim);
  border-color: rgba(0,212,200,0.35);
  transform: translateY(-2px);
}

.tmnf-social-btn:focus-visible {
  outline: 2px solid var(--tmnf-accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   LİNK LİSTELERİ (Kategoriler + Hızlı Bağlantılar)
═══════════════════════════════════════════════════════ */

.tmnf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tmnf-footer__links li a {
  display: flex;
  align-items: center;
  gap: var(--tmnf-sp-2);
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-sm);
  color: var(--tmnf-text-muted);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--tmnf-divider);
  transition: color var(--tmnf-ease), gap var(--tmnf-ease);
}

.tmnf-footer__links li:last-child a { border-bottom: none; }

.tmnf-footer__links li a svg {
  flex-shrink: 0;
  color: var(--tmnf-text-faint);
  transition: color var(--tmnf-ease), transform var(--tmnf-ease);
}

.tmnf-footer__links li a:hover {
  color: #fff;
  gap: var(--tmnf-sp-3);
}

.tmnf-footer__links li a:hover svg {
  color: var(--tmnf-accent);
  transform: translateX(2px);
}

/* Yazı sayısı */
.tmnf-footer__link-count {
  font-size: 11px;
  color: var(--tmnf-text-faint);
  margin-left: auto;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   SON YAZILAR
═══════════════════════════════════════════════════════ */

.tmnf-footer__recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tmnf-footer__recent-item {
  display: flex;
  gap: var(--tmnf-sp-3);
  align-items: flex-start;
  padding: var(--tmnf-sp-3) 0;
  border-bottom: 1px solid var(--tmnf-divider);
}

.tmnf-footer__recent-item:last-child { border-bottom: none; }

.tmnf-footer__recent-thumb-link {
  display: block;
  flex-shrink: 0;
  width: 68px;
  height: 50px;
  border-radius: var(--tmnf-radius-sm);
  overflow: hidden;
  background: var(--tmnf-surface-offset);
}

.tmnf-footer__recent-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease, filter var(--tmnf-ease);
  filter: brightness(0.85);
}

.tmnf-footer__recent-item:hover .tmnf-footer__recent-thumb {
  transform: scale(1.06);
  filter: brightness(1);
}

.tmnf-footer__recent-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tmnf-footer__recent-title {
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-xs);
  font-weight: 600;
  color: var(--tmnf-text-muted);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tmnf-ease);
}

.tmnf-footer__recent-title:hover { color: #fff; }

.tmnf-footer__recent-date {
  font-family: var(--tmnf-font-display);
  font-size: 11px;
  color: var(--tmnf-text-faint);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   COPYRIGHT ÇUBUĞU
═══════════════════════════════════════════════════════ */

.tmnf-footer__bar {
  border-top: 1px solid var(--tmnf-border);
  background: var(--tmnf-surface-2);
  padding-block: var(--tmnf-sp-4);
}

.tmnf-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tmnf-sp-4);
  flex-wrap: wrap;
}

.tmnf-footer__copy {
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-xs);
  color: var(--tmnf-text-faint);
  margin: 0;
}

.tmnf-footer__copy a {
  color: var(--tmnf-text-muted);
  text-decoration: none;
  transition: color var(--tmnf-ease);
}

.tmnf-footer__copy a:hover { color: var(--tmnf-accent); }

.tmnf-footer__legal {
  display: flex;
  align-items: center;
  gap: var(--tmnf-sp-3);
  flex-wrap: wrap;
}

.tmnf-footer__legal a {
  font-family: var(--tmnf-font-display);
  font-size: var(--tmnf-text-xs);
  color: var(--tmnf-text-faint);
  text-decoration: none;
  transition: color var(--tmnf-ease);
}

.tmnf-footer__legal a:hover { color: var(--tmnf-accent); }

.tmnf-footer__legal a:focus-visible {
  outline: 2px solid var(--tmnf-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.tmnf-footer__legal span {
  color: var(--tmnf-text-faint);
  font-size: 10px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   YUKARI ÇIK BUTONU
═══════════════════════════════════════════════════════ */

.tmnf-back-top {
  position: fixed;
  bottom: var(--tmnf-sp-6);
  right: var(--tmnf-sp-6);
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tmnf-border);
  background: var(--tmnf-surface-offset);
  color: var(--tmnf-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tmnf-shadow-lg);
  /* Başlangıçta gizli */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 280ms ease,
    visibility 0ms 280ms,
    transform 280ms ease,
    background var(--tmnf-ease),
    border-color var(--tmnf-ease),
    color var(--tmnf-ease);
}

.tmnf-back-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 280ms ease,
    visibility 0ms 0ms,
    transform 280ms ease,
    background var(--tmnf-ease),
    border-color var(--tmnf-ease),
    color var(--tmnf-ease);
}

.tmnf-back-top:hover {
  background: var(--tmnf-accent-dim);
  border-color: rgba(0,212,200,0.4);
  color: var(--tmnf-accent);
  transform: translateY(-3px);
}

.tmnf-back-top--visible:hover {
  transform: translateY(-3px);
}

.tmnf-back-top:focus-visible {
  outline: 2px solid var(--tmnf-accent);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 580px) {
  .tmnf-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tmnf-sp-2);
  }
  .tmnf-back-top {
    bottom: var(--tmnf-sp-4);
    right: var(--tmnf-sp-4);
  }
}

/* Yazıcı görünümü */
@media print {
  .tmnf-footer,
  .tmnf-back-top { display: none; }
}
