@import url("./footer-topbar.css");

/* Footer — ana gövde */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 30, 30, 0.14);
  background: var(--site-shell-gradient);
  color: var(--site-text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 30, 30, 0.06);
  padding-bottom: max(6.5rem, calc(4.75rem + env(safe-area-inset-bottom, 0px)));
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.site-footer__body {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .site-footer__body {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__body {
    padding-inline: 2rem;
  }
}

.site-footer__inner {
  padding-top: 2.5rem;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-top: 3rem;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2rem;
  }
}

.site-footer__col {
  min-width: 0;
}

.site-footer__col-head {
  margin-bottom: 1rem;
}

.site-footer__col-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3f4f6;
}

.site-footer__col-rule {
  margin-top: 0.625rem;
  height: 2px;
  width: 2.75rem;
  max-width: 5.5rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--site-accent-red, #ff1e1e) 0%,
    var(--site-accent, #1677ff) 62%,
    transparent 100%
  );
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.site-footer__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--site-text-soft);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__link-dot {
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--site-accent-red, #ff1e1e);
  box-shadow: 0 0 8px rgba(255, 30, 30, 0.35);
  opacity: 0.9;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.site-footer__link-label {
  min-width: 0;
}

.site-footer__link:hover {
  color: #fff;
  transform: translateX(2px);
}

.site-footer__link:hover .site-footer__link-dot {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255, 30, 30, 0.55);
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 30, 30, 0.1);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    margin-top: 3rem;
    padding-top: 2rem;
  }
}

.site-footer__disclaimer {
  margin: 0 auto;
  max-width: 52rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--site-text-soft);
}

@media (min-width: 640px) {
  .site-footer__disclaimer {
    font-size: 0.75rem;
  }
}

.site-footer__bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
  }
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--site-text-soft);
  letter-spacing: 0.02em;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

@media (min-width: 768px) {
  .site-footer__bottom-links {
    justify-content: flex-end;
  }
}

.site-footer__bottom-link {
  font-size: 0.6875rem;
  color: var(--site-text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__bottom-link:hover {
  color: var(--site-accent-red-bright, #ff6b6b);
}

.site-footer__bottom-credit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: var(--site-text-soft);
  letter-spacing: 0.02em;
}

.site-footer__bottom-link--brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__bottom-sep {
  color: var(--site-border);
  user-select: none;
}

[data-theme="light"] .site-footer {
  background: var(--site-shell-gradient);
}

[data-theme="light"] .site-footer {
  border-top-color: rgba(255, 30, 30, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 30, 30, 0.04);
}

[data-theme="light"] .site-footer__col-title {
  color: #0f172a;
}

[data-theme="light"] .site-footer__link-dot {
  box-shadow: 0 0 6px rgba(255, 30, 30, 0.28);
}

[data-theme="light"] .site-footer__link:hover {
  color: #0f172a;
}

[data-theme="light"] .site-footer__link:hover .site-footer__link-dot {
  box-shadow: 0 0 8px rgba(255, 30, 30, 0.45);
}

[data-theme="light"] .site-footer__bottom-link:hover {
  color: #ff1e1e;
}
