/* Modern Footer CSS */
.modern-footer-front {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.modern-footer-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

/* Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10px, 10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Ana Footer İçeriği */
.footer-main {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

/* Marka Bölümü */
.footer-brand {
  margin-bottom: 2rem;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-right: 1rem;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 350px;
}

/* Footer İstatistikleri */
.footer-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  animation: slideInRight 0.8s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.stat-item:hover .stat-number {
  color: #8b5cf6;
  transform: scale(1.1);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: #cbd5e1;
}

/* Footer Bölümleri */
.footer-section {
  margin-bottom: 2rem;
  animation: slideInLeft 0.6s ease-out;
  animation-fill-mode: both;
}

.footer-section:nth-child(2) {
  animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
  animation-delay: 0.3s;
}

.footer-section:nth-child(5) {
  animation-delay: 0.4s;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
}

.footer-title:hover {
  color: #3b82f6;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.footer-title:hover::after {
  width: 50px;
}

/* Footer Linkler */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  border-radius: 4px;
}

.footer-link:hover {
  color: #3b82f6;
  text-decoration: none;
  transform: translateX(4px);
}

.footer-link i {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-link:hover i {
  opacity: 1;
}

/* Sosyal Medya Linkleri */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  transform: scale(0);
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link.instagram {
  background: linear-gradient(135deg, #e4405f, #f77737);
  color: #fff;
}

.social-link.facebook {
  background: #1877f2;
  color: #fff;
}

.social-link.twitter {
  background: #1da1f2;
  color: #fff;
}

.social-link.youtube {
  background: #ff0000;
  color: #fff;
}

.social-link.linkedin {
  background: #0077b5;
  color: #fff;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* İletişim Bilgileri */
.contact-info {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.contact-item i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Alt Footer */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  animation: slideInUp 0.6s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright-text {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.copyright-text:hover {
  color: #cbd5e1;
}

.footer-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  justify-content: end;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: default;
}

.badge-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.badge-item:nth-child(1) {
  animation: bounce 2s infinite;
  animation-delay: 1s;
}

.badge-item:nth-child(2) {
  animation: bounce 2s infinite;
  animation-delay: 1.2s;
}

.badge-item:nth-child(3) {
  animation: bounce 2s infinite;
  animation-delay: 1.4s;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
  .footer-main {
    padding: 3rem 0 2rem;
  }

  .footer-stats {
    gap: 1.5rem;
  }
}

/* Mobilde footer bölümlerini alt alta, küçük ve okunabilir yap */
@media (max-width: 768px) {
  .footer-main {
    padding: 1.2rem 0 0.7rem;
  }
  .footer-main .row {
    display: block;
    flex-wrap: unset;
    overflow-x: unset;
    gap: 0;
    padding-bottom: 0;
  }
  .footer-main .col-6,
  .footer-main .col-12,
  .footer-main .col-md-4,
  .footer-main .col-lg-2,
  .footer-main .col-lg-4 {
    min-width: unset;
    max-width: 100%;
    flex: unset;
    margin-bottom: 1.1rem;
  }
  .footer-section,
  .footer-brand {
    margin-bottom: 0.7rem;
    padding: 0 0.5rem;
  }
  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  .footer-link {
    font-size: 0.97rem;
  }
  .footer-stats {
    gap: 1.2rem;
    margin-top: 0.7rem;
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
  .brand-logo-wrapper {
    margin-bottom: 0.7rem;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-description {
    font-size: 0.97rem;
    margin-bottom: 0.7rem;
    max-width: 100%;
  }
  .social-links {
    gap: 0.7rem;
    font-size: 1.2rem;
  }
  .footer-bottom {
    padding: 0.7rem 0;
    font-size: 0.95rem;
  }
  .footer-badges {
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  .footer-duo {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }
  .footer-duo .footer-section {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0.2rem;
  }
}

/* Webde (md ve üstü) daha kompakt ve sıkı footer */
@media (min-width: 768px) {
  .footer-main {
    padding: 2rem 0 1rem;
  }
  .footer-main .row {
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
  }
  .footer-section,
  .footer-brand {
    margin-bottom: 0.7rem;
    padding: 0 0.5rem;
  }
  .footer-title {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
  }
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  .footer-link {
    font-size: 0.98rem;
  }
  .footer-stats {
    gap: 1.2rem;
    margin-top: 0.7rem;
    font-size: 0.97rem;
  }
  .stat-number {
    font-size: 1.15rem;
  }
  .brand-logo-wrapper {
    margin-bottom: 0.7rem;
  }
  .brand-name {
    font-size: 1.3rem;
  }
  .brand-description {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    max-width: 100%;
  }
  .social-links {
    gap: 0.7rem;
    font-size: 1.2rem;
  }
  .footer-bottom {
    padding: 0.7rem 0;
    font-size: 0.97rem;
  }
  .footer-badges {
    gap: 0.5rem;
    font-size: 0.92rem;
  }
}

@media (min-width: 992px) {
  .footer-main .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  /* Orta 3 sütunu tek bir flex gruba al */
  .footer-main .col-lg-2 {
    flex: 1 1 0;
    max-width: 220px;
    min-width: 180px;
  }
  /* Marka (sol) ve Sosyal (sağ) bölümler sabit genişlikte */
  .footer-main .col-lg-4,
  .footer-main .col-lg-2:last-child {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .brand-logo-wrapper {
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .brand-description {
    text-align: center;
    max-width: none;
    font-size: 0.95rem;
  }

  .footer-stats {
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .footer-title {
    justify-content: center;
    font-size: 1rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-link {
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.375rem 0;
  }

  .social-links {
    justify-content: center;
    gap: 1rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding: 1.25rem 0;
  }

  .footer-badges {
    justify-content: center;
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .copyright-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .footer-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .footer-badges {
    gap: 0.5rem;
  }

  .badge-item {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .modern-footer-front {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  .brand-description {
    color: #94a3b8;
  }

  .footer-link {
    color: #cbd5e1;
  }

  .footer-link:hover {
    color: #60a5fa;
  }

  .contact-item {
    color: #cbd5e1;
  }

  .copyright-text {
    color: #64748b;
  }

  .footer-bottom {
    background: rgba(0,0,0,0.4);
    border-top-color: rgba(255,255,255,0.05);
  }
}

/* Accessibility Improvements */
.footer-link:focus,
.social-link:focus,
.badge-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .modern-footer-front,
  .footer-section,
  .footer-stats,
  .footer-bottom,
  .footer-link,
  .social-link,
  .stat-item,
  .badge-item {
    animation: none !important;
    transition: none !important;
  }

  .modern-footer-front::before {
    animation: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .modern-footer-front {
    background: #000;
    color: #fff;
  }

  .footer-link {
    color: #fff;
  }

  .footer-link:hover {
    color: #ffff00;
  }

  .social-link {
    border: 2px solid #fff;
  }

  .badge-item {
    border: 2px solid #fff;
    background: #000;
    color: #fff;
  }
}