.site-footer {
  background: var(--beyaz);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
}

.site-footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-7);
  align-items: stretch;
}

.site-footer-apps {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* sol taraf: uygulama listesi */
.site-footer-apps h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.site-footer-app {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 6px 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.site-footer-app:hover {
  color: var(--brand-600);
}

.site-footer-app strong {
  font-weight: 700;
}

.site-footer-app-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.site-footer-app-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: filter var(--transition);
}

/* üstüne gelince her platformun kendi rengi */
.app-pardus:hover     .site-footer-app-icon { background: var(--hardal); }
.app-windows:hover    .site-footer-app-icon { background: #0078D4; }
.app-macos:hover      .site-footer-app-icon { background: #1D1D1F; }
.app-web:hover        .site-footer-app-icon { background: #3AA0DC; }
.app-pardus234:hover  .site-footer-app-icon { background: var(--turuncu); }
.app-answerkey:hover  .site-footer-app-icon { background: var(--kirmizi); }
.app-video:hover      .site-footer-app-icon { background: var(--kirmizi); }
.app-audio:hover      .site-footer-app-icon { background: var(--kirmizi); }
.app-ebook:hover      .site-footer-app-icon { background: #3AA0DC; }

.app-macos:hover .site-footer-app-icon img {
  filter: brightness(0) invert(1);
}

/* sağ taraf: logo + nav kartı */
.site-footer-card {
  background: rgba(232, 38, 47, .14);
  border-radius: 20px;
  padding: var(--space-6) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.site-footer-card-logo {
  width: 92px;
  height: auto;
  display: block;
}

.site-footer-card-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer-card-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: 700;
  transition: color var(--transition);
}

.site-footer-card-links a:hover {
  color: var(--kirmizi);
}

.site-footer-social {
  display: flex;
  gap: var(--space-3);
}

.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition);
}

.site-footer-social a:hover {
  transform: translateY(-3px);
}

.site-footer-social a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ayraç */
.site-footer-divider {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

/* alt satır: adres / telefon / e-posta */
.site-footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-5) 0;
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer-bottom .site-footer-address:nth-child(1) { text-align: left; }
.site-footer-bottom .site-footer-address:nth-child(2) { text-align: center; }
.site-footer-bottom .site-footer-address:nth-child(3) { text-align: right; }

.site-footer-address {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-primary);
}

/* en alt katman: telif hakkı */
.site-footer-legal {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.site-footer-legal p {
  max-width: var(--container);
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .site-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer-apps {
    text-align: left;
  }

  .site-footer-app {
    justify-content: flex-start;
  }

  .site-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer-bottom .site-footer-address:nth-child(1),
  .site-footer-bottom .site-footer-address:nth-child(2),
  .site-footer-bottom .site-footer-address:nth-child(3) {
    text-align: center;
  }

  .site-footer-legal {
    text-align: center;
  }
}
