/**
 * Concept Combined — shared site footer
 * Used by every public page so the footer stays identical.
 */

@keyframes footerWaveScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes backToTopBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes footerFloatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.anim-float-slow {
  animation: footerFloatSlow 8s ease-in-out infinite;
}

.footer-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.footer-wave-top svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: block;
  animation: footerWaveScroll 32s linear infinite;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-yellow, #f8c400), transparent);
  border-radius: 2px;
}

.footer-link {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.35s ease, transform 0.35s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-yellow, #f8c400);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-link:hover::after {
  width: 70%;
}

.footer-newsletter {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.footer-newsletter:focus-within {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}

.footer-newsletter input {
  background: transparent;
  border: none;
  padding: 9px 16px;
  color: #ffffff;
  flex: 1;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter button {
  background: #ffffff;
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-newsletter button:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(248, 196, 0, 0.35);
  transform: translateY(-4px);
}

.footer-social a:hover svg,
.footer-social a svg,
.back-to-top .arrow-up svg {
  color: var(--accent-yellow, #f8c400);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: #ffffff;
}

.back-to-top .arrow-up {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: backToTopBob 2.4s ease-in-out infinite;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.4s ease;
}

.back-to-top:hover .arrow-up {
  background: #ffffff;
  color: var(--accent-yellow, #f8c400);
}

.footer-watermark {
  font-size: clamp(56px, 14vw, 200px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.035em;
  text-align: center;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

html[dir="rtl"] .footer-heading::after,
html[dir="rtl"] .footer-link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .footer-link:hover {
  transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-wave-top svg,
  .back-to-top .arrow-up,
  .anim-float-slow {
    animation: none !important;
  }
}
