/* ==========================================================================
   DOĞTAP - Footer Stilleri
   ========================================================================== */

.main-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

/* Dekoratif Arka Plan Şekli */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(29,37,94,0.4) 0%, rgba(17,23,58,0) 70%);
  transform: translate(30%, -30%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Footer Logosu ve Açıklama */
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* Başlıklar */
.footer-heading {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  font-weight: var(--font-semibold);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Bağlantı Listeleri */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
}

.footer-links a::before {
  content: '→';
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary-light);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* İletişim Bilgileri */
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  align-items: flex-start;
}

.footer-contact-item i,
.footer-contact-item span:first-child {
  color: var(--color-secondary);
  margin-top: 4px;
}

/* Sosyal Medya İkonları */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-6);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.3); /* secondary rengin saydamı */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* Footer Alt Bilgi (Copyright & BMG) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: var(--color-secondary);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: var(--color-secondary-light);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding-top: 60px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}

/* ==========================================================================
   Şablon (includes/footer.php) ile eşleşen sınıflar

   footer.php markup'ı .footer-desc / .footer-contact / .social-links /
   .footer-col / .footer-bottom-inner kullanıyor; yukarıdaki bloklar ise
   .footer-description / .footer-contact-item / .footer-social adlarıyla
   yazılmış. Aşağıdaki kurallar gerçek markup'ı hedefler.
   ========================================================================== */

.footer-col { min-width: 0; }

.footer-col h4 {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  font-weight: var(--font-semibold);
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Koyu zeminde okunur kalması için altın tonlu gradyan */
.main-footer .text-gradient {
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* Alt bilgi: flex düzeni dıştaki .footer-bottom yerine iç sarmalayıcıda olmalı */
.footer-bottom {
  display: block;
  padding: 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 24px 0;
}

.footer-bottom-inner p { margin: 0; }

.developer-link {
  color: var(--color-secondary);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.developer-link:hover {
  color: var(--color-secondary-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* İletişim satırlarındaki ikonlar ve bağlantılar */
.footer-contact li i {
  color: var(--color-secondary);
  width: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  text-align: center;
}

.footer-contact a {
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-secondary-light);
}

/* Sosyal medya artık metin değil ikon barındırıyor */
.social-links a {
  font-size: 1rem;
}
