/**
 * Korenel Theme - Footer Stilleri
 * Profesyonel ve yeniden kullanılabilir footer tasarımı
 * @package Korenel Theme
 */

/* ==========================================================================
   FOOTER BASE
   ========================================================================== */
.site-footer {
  background: #0b1e33;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
  margin-top: auto;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h3::after,
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--gs-primary, #0066b3);
  border-radius: 2px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 15px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: var(--gs-primary, #0066b3);
}

/* ==========================================================================
   FOOTER LOGO
   ========================================================================== */
.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info li i {
  color: var(--color-light, #1766a1);
  font-size: 16px;
  margin-top: 3px;
  min-width: 16px;
}

.contact-info li strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.contact-info li a {
  color: rgba(255, 255, 255, 0.75);
}

.contact-info li a:hover {
  color: var(--gs-primary, #0066b3);
}

/* ==========================================================================
   SOCIAL ICONS
   ========================================================================== */
.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icons li a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icons li a:hover {
  background: var(--gs-primary, #0066b3);
  color: #fff; /* Keep icon white on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

/* Global Social Link Styles (for template hardcoded links) */
.social-link {
  width: 45px;
  height: 45px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08); /* Match social-icons background */
  border-radius: 10px; /* Match social-icons radius or use 50% for circle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gs-primary, #0066b3);
  color: #fff !important; /* Keep icon white on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

/* ==========================================================================
   FOOTER MENU
   ========================================================================== */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.footer-menu li a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-light, #1766a1);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-menu li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-menu li a:hover::before {
  opacity: 1;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  margin-left: 20px;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--gs-primary, #0066b3);
}

/* Korenel Logo */
.korenel-logo {
  display: inline-block;
  transition: var(--transition-base);
}

.korenel-logo img {
  height: 16px;
  width: auto;
  opacity: 1;
  transition: var(--transition-base);
}

.korenel-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER TEMPLATES
   ========================================================================== */

/* Classic Template */
.site-footer.footer-classic .row > div {
  margin-bottom: 30px;
}

/* Minimal Template */
.site-footer.footer-minimal {
  padding: 40px 0 0;
}

.site-footer.footer-minimal .footer-bottom {
  margin-top: 30px;
}

/* Centered Template */
.site-footer.footer-centered {
  text-align: center;
}

.site-footer.footer-centered h3::after,
.site-footer.footer-centered h4::after {
  left: 50%;
  transform: translateX(-50%);
}

.site-footer.footer-centered .contact-info {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.site-footer.footer-centered .contact-info li {
  margin-bottom: 0;
}

.site-footer.footer-centered .social-icons {
  justify-content: center;
  margin-top: 25px;
}

/* Full Width Template */
.site-footer.footer-full-width {
  padding: 80px 0 0;
}

.site-footer.footer-full-width > .container {
  max-width: 100%;
  padding: 0 60px;
}

/* ==========================================================================
   NEWSLETTER (Optional)
   ========================================================================== */
.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--gs-primary, #0066b3);
  background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form button {
  padding: 12px 25px;
  background: var(--gs-primary, #0066b3);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
  background: var(--gs-primary-dark, #004d86);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .site-footer {
    padding: 50px 0 0;
  }

  .site-footer .row > div {
    margin-bottom: 35px;
  }

  .footer-bottom .row {
    text-align: center;
  }

  .footer-bottom .col-md-4 {
    margin-bottom: 15px;
  }

  .footer-bottom .text-right,
  .footer-bottom .text-end {
    text-align: center !important;
  }

  .footer-bottom a {
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  .site-footer {
    text-align: center; /* Center everything on mobile */
  }

  .site-footer h3,
  .site-footer h4 {
    font-size: 1.1rem;
    text-align: center;
  }

  .site-footer h3::after,
  .site-footer h4::after {
    left: 50%; /* Center the underline */
    transform: translateX(-50%);
  }

  /* Footer Widget Bottom Spacing */
  .footer-widget {
    margin-bottom: 40px;
  }

  /* Center Social Icons */
  .social-links {
    justify-content: center;
    gap: 15px; /* Increase gap for better touch targets */
  }

  .social-link {
    width: 45px; /* Bigger touch target */
    height: 45px;
    font-size: 18px; /* Bigger icon */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Make them circular */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
  }

  .social-link:hover {
    background: var(--gs-primary);
    transform: translateY(-3px);
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons li a {
    width: 45px; /* Increased from 38px */
    height: 45px;
    font-size: 18px; /* Increased from 14px */
  }

  /* Contact Info Centering */
  .contact-info li {
    justify-content: center;
    text-align: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-form button {
    width: 100%;
    margin-top: 10px;
  }

  .site-footer.footer-centered .contact-info {
    flex-direction: column;
    gap: 15px;
  }

  /* Footer Bottom Links Stack */
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom a {
    margin: 0;
  }
}
