/**
 * Footer Component Styles
 * Medyasyon WordPress Theme
 *
 * @package Medyasyon
 */

/* =============================
   Base Layout & Structure
   (Taşıma: style.css içerisinden footer bölümü çıkarıldıktan sonra buraya eklendi)
   Mobile-first yaklaşımı ile yapılandırıldı
============================= */

.site-footer {
  --footer-bg: var(--color-text);
  --footer-text: #ffffff;
  --footer-text-light: rgba(255, 255, 255, 0.7);
  --footer-border: rgba(255, 255, 255, 0.1);
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.site-footer a {
  color: var(--footer-text-light);
  text-decoration: none;
  transition: color var(--transition-base, 0.25s ease),
    transform var(--transition-base, 0.25s ease);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-secondary, #ff7a00);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--color-secondary, #ff7a00);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer__main {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--footer-border);
  position: relative;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr; /* mobile */
}

/* Kolon modifer'ları (isteğe bağlı manuel kullanım) */
.site-footer__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.site-footer__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer__grid--4-cols {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
@media (min-width: 900px) {
  .site-footer__grid {
    gap: 2.75rem;
  }
}

.site-footer__section {
  min-width: 0;
}

/* Marka Alanı */
.site-footer__brand {
  margin-bottom: 2rem;
}

/* Mobil tasarımda logo ortalı */
@media (max-width: 767px) {
  .site-footer__brand {
    text-align: center;
  }

  .site-footer__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
}

.site-footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.site-footer__brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Mobil tasarımda brand name ortalı */
@media (max-width: 767px) {
  .site-footer__brand-name {
    text-align: center;
  }
}

.site-footer__brand-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--footer-text-light);
}

/* Mobil tasarımda brand description ortalı */
@media (max-width: 767px) {
  .site-footer__brand-desc {
    text-align: center;
  }
}

/* İletişim Alanı */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer__contact-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  color: var(--color-secondary, #ff7a00);
}
.site-footer__contact-text {
  color: rgba(255, 255, 255, 0.8);
}

/* Başlıklar */
.site-footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  color: #fff;
  letter-spacing: 0.3px;
}
.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: var(--color-secondary, #ff7a00);
  border-radius: 2px;
}

/* Mobil tasarımda sosyal medya bölümü başlığı ve çizgisi ortalı */
@media (max-width: 767px) {
  .site-footer__section--social .site-footer__title {
    text-align: center;
  }

  .site-footer__section--social .site-footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Menü */
.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__menu a {
  position: relative;
  display: inline-block;
}
.site-footer__menu a::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: -1.25rem;
  opacity: 0;
  color: var(--color-secondary, #ff7a00);
  transform: translateX(-4px);
  transition: all var(--transition-base, 0.25s ease);
}
.site-footer__menu a:hover::before,
.site-footer__menu a:focus::before {
  opacity: 1;
  transform: translateX(0);
}

/* Sosyal */
.site-footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Mobil tasarımda sosyal medya ikonları ortalı */
@media (max-width: 767px) {
  .site-footer__social {
    justify-content: center;
  }
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base, 0.25s ease);
}

.site-footer__social-link:hover,
.site-footer__social-link:focus {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  color: var(--color-text, #333333);
}

/* Social Media Icon Animations */
.site-footer__social-link .fab {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-base, 0.25s ease);
}

.site-footer__social-link:hover .fab {
  transform: scale(1.1);
}

/* Newsletter */
.site-footer__newsletter {
  max-width: 100%;
}
.site-footer__newsletter-text {
  color: var(--footer-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.site-footer__newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.site-footer__newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm, 4px);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-base, 0.25s ease);
  backdrop-filter: blur(10px);
}
.site-footer__newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
/* Focus: Arka planı değiştirmiyoruz (Option A) */
.site-footer__newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-secondary, #ff7a00);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

/* Alt Bilgi */
.site-footer__bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__copy p {
  margin: 0;
  color: var(--footer-text-light);
  font-size: 0.875rem;
}
.site-footer__legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__legal-menu a {
  font-size: 0.875rem;
}

/* Küçük ekran düzenlemeleri - Sadeleştirilmiş mobil tasarım */
@media (max-width: 768px) {
  /* Footer main'de daha az padding */
  .site-footer__main {
    padding: 2rem 0 1.5rem;
  }

  /* Grid'i tek kolun yapmak için zorla */
  .site-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Newsletter'ı mobilde gizle */
  .site-footer__newsletter {
    display: none;
  }

  /* Newsletter form düzenlemeleri */
  .site-footer__newsletter-form {
    flex-direction: column;
  }
  .site-footer__newsletter-form input[type="email"] {
    min-width: auto;
  }

  /* Bottom kısmı sadeleştir */
  .site-footer__bottom {
    padding: 1rem 0;
  }
  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .site-footer__legal-menu {
    justify-content: center;
  }

  /* Menülerde daha az gap */
  .site-footer__menu {
    gap: 0.5rem;
  }

  /* Sosyal medya bölümünü sadeleştir */
  .site-footer__social {
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  /* Çözümlerimiz bölümünü mobilde gizle */
  .site-footer__section--solutions {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Daha da minimal padding */
  .site-footer__main {
    padding: 1.5rem 0 1rem;
  }

  /* Başlıkları küçült ve ortala */
  .site-footer__title {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
  }
  .site-footer__title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
  }

  /* Menüleri ortala */
  .site-footer__menu {
    text-align: center;
    gap: 0.4rem;
  }

  /* Newsletter text'i ortala (gizli olsa da) */
  .site-footer__newsletter-text {
    text-align: center;
  }

  /* Contact kısmını ortala */
  .site-footer__contact {
    align-items: center;
    gap: 0.5rem;
  }

  /* Legal menu'yu daha sadeleştir */
  .site-footer__legal-menu {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Bottom padding'i daha da azalt */
  .site-footer__bottom {
    padding: 0.75rem 0;
  }

  /* Sosyal medya ikonlarını küçült */
  .site-footer__social-link {
    width: 36px;
    height: 36px;
  }

  /* Brand kısmını küçült */
  .site-footer__brand {
    margin-bottom: 1rem;
  }
  .site-footer__brand-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .site-footer__brand-desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Geliştirilmiş görsel efektler (mobil varyantlarına dokunulmadan) */
@media (max-width: 600px) {
  .site-footer__social-link {
    width: 40px;
    height: 40px;
  }
  .site-footer__brand-name {
    font-size: 1.25rem;
  }
}

/* Font Awesome Icon Enhancements */
.site-footer .fas,
.site-footer .fab {
  transition: all var(--transition-base, 0.25s ease);
}

/* Contact Icons with Pulse Animation */
.site-footer__contact-icon {
  position: relative;
}

.site-footer__contact-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-secondary, #ff7a00);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all var(--transition-base, 0.25s ease);
}

.site-footer__contact-item:hover .site-footer__contact-icon::after {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.3);
}

/* Social Media Icon Base Styles */
.site-footer__social-link .fab {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-base, 0.25s ease);
}

.site-footer__social-link:hover .fab {
  transform: scale(1.1);
}

/* Newsletter Button Icon Animation */
.site-footer__newsletter-form .button .fas {
  transition: transform var(--transition-base, 0.25s ease);
}

.site-footer__newsletter-form .button:hover .fas {
  transform: translateX(3px) rotate(15deg);
}

/* Footer Animation Effects */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary),
    transparent
  );
  animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

/* Footer Links Hover Effects */
.site-footer__menu a {
  position: relative;
  overflow: hidden;
}

.site-footer__menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: var(--color-secondary);
  transition: left var(--transition-base);
}

.site-footer__menu a:hover::after,
.site-footer__menu a:focus::after {
  left: 0;
}

/* Legal Menu Specific Styles */
.site-footer__legal-menu a {
  position: relative;
  transition: all var(--transition-base, 0.25s ease);
}

.site-footer__legal-menu a:hover,
.site-footer__legal-menu a:focus {
  color: var(--color-secondary, #ff7a00);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Newsletter Form Enhancements */
.site-footer__newsletter-form {
  position: relative;
}

.site-footer__newsletter-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.site-footer__newsletter-form:focus-within::before {
  opacity: 1;
}

/* Social Media Enhanced Animations - Cleaned */
.site-footer__social-link {
  position: relative;
  overflow: hidden;
}

/* Footer Section Fade In Animation */
.site-footer__section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.site-footer__section:nth-child(1) {
  animation-delay: 0.1s;
}
.site-footer__section:nth-child(2) {
  animation-delay: 0.2s;
}
.site-footer__section:nth-child(3) {
  animation-delay: 0.3s;
}
.site-footer__section:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Item Hover Effects */
.site-footer__contact-item {
  transition: transform var(--transition-base);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: -0.5rem;
}

.site-footer__contact-item:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
}

/* Newsletter Input Focus Effect */
.site-footer__newsletter-form input[type="email"] {
  position: relative;
}

/* Tekil focus kuralı: sadece hareket ve görsel vurgu, arka plan sabit */
.site-footer__newsletter-form input[type="email"]:focus {
  transform: translateY(-2px);
}

/* Footer Bottom Gradient */
.site-footer__bottom {
  position: relative;
}

.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary),
    transparent
  );
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .site-footer::before,
  .site-footer__section,
  .site-footer__social-link::before {
    animation: none;
  }

  .site-footer__section {
    opacity: 1;
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .site-footer {
    background: #000;
    color: #fff;
  }

  .site-footer__contact-text,
  .site-footer__menu a,
  .site-footer__legal-menu a {
    color: #fff;
  }

  .site-footer__social-link {
    background: #fff;
    color: #000;
  }
}

/* Dark Mode Adaptations */
@media (prefers-color-scheme: dark) {
  .site-footer__newsletter-form input[type="email"] {
    /* Option A: base ile aynı arka plan değeri, fark hissi yok */
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* Print Styles */
@media print {
  .site-footer {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .site-footer__social,
  .site-footer__newsletter {
    display: none !important;
  }

  .site-footer__contact-text {
    color: #000 !important;
  }
}
