/**
 * Public footer — Dergi stili (E) + imza odaklı (D)
 * Mockup: assets/mockups/footer/footer-design-e-dergi-kirmizi.jpg
 */

.pub-footer--magazine {
  --pub-footer-bg: #0a0a0a;
  --pub-footer-bg-bottom: #111111;
  --pub-footer-fg: #ffffff;
  --pub-footer-accent: #e50914;
  --pub-footer-muted: rgba(255, 255, 255, 0.72);
  --pub-footer-link: rgba(255, 255, 255, 0.88);
  background: var(--pub-footer-bg) !important;
  color: var(--pub-footer-fg) !important;
  margin-top: 0;
  border-top: none;
  position: relative;
}

.pub-footer__accent {
  height: 4px;
  width: 100%;
  background: var(--pub-footer-accent);
}

.pub-footer__main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.pub-footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1.75rem;
  align-items: start;
}

.pub-footer__brand {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.pub-footer__tagline {
  margin: 0;
  max-width: 18rem;
  color: var(--pub-footer-muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pub-footer__col-title {
  margin: 0 0 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pub-footer__col-nav {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.pub-footer__col-nav a {
  color: var(--pub-footer-link) !important;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.pub-footer__col-nav a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.pub-footer__signature-wrap {
  padding: 0.5rem 1.25rem 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pub-footer__signature {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.35rem;
  font-family: 'Great Vibes', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  transition: color 0.18s ease, transform 0.18s ease;
}

a.pub-footer__signature:hover {
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.pub-footer__bottom {
  background: var(--pub-footer-bg-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-footer__bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  text-align: center;
}

.pub-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .pub-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }

  .pub-footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (min-width: 769px) {
  .pub-footer--magazine {
    margin-bottom: 0 !important;
  }

  body.mat-mobile-tabs,
  body.has-guest-mobile-cta {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Alt tab / guest CTA: body padding-bottom yeterli — footer margin ekleme */
  body.mat-mobile-tabs .pub-footer,
  body.has-guest-mobile-cta .pub-footer {
    margin-bottom: 0;
  }

  body:not(.mat-mobile-tabs):not(.has-guest-mobile-cta) .pub-footer {
    margin-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .pub-footer__main {
    padding: 1.75rem 1rem 1.35rem;
  }

  .pub-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pub-footer__brand-col {
    grid-column: auto;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pub-footer__signature {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .pub-footer__copy {
    font-size: 0.74rem;
  }
}

@media (max-width: 575px) {
  .pub-footer__col-nav a {
    font-size: 0.84rem;
  }
}

[data-theme='dark'] .pub-footer--magazine {
  --pub-footer-bg: #0a0a0a;
  --pub-footer-bg-bottom: #111111;
}

@media (prefers-reduced-motion: reduce) {
  .pub-footer__col-nav a,
  a.pub-footer__signature {
    transition: none;
  }
}
