/* static/css/components/footer.css */

/* =========================
   Footer shell
========================= */
.modern-footer {
  position: relative;
  margin-top: 40px;
  padding: 50px 20px 25px;
  color: #bbb;
  border-top: none;
  background: rgba(4, 4, 4, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 150px;
  background: radial-gradient(circle at top, rgba(182, 140, 74, 0.08), transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

/* =========================
   Brand
========================= */
.footer-brand {
  text-align: center;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #1a1a1a;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(182, 140, 74, 0.3));
  transition: transform 0.3s ease;
}

.brand-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.brand-logo h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.brand-desc {
  margin: 0;
  color: #888;
  font-size: 14px;
}

/* =========================
   Social links
========================= */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 25px 0;
}

.social-btn {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}

.social-btn:hover {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), rgba(20, 20, 20, 1));
  border-color: rgba(182, 140, 74, 0.8);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.social-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* =========================
   Contact cards
========================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    background 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.info-card:hover {
  border-color: rgba(182, 140, 74, 0.7);
  background: rgba(15, 15, 15, 0.98);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 140, 74, 0.12);
  border-radius: 50%;
}

.info-icon span {
  color: #b68c4a;
  font-size: 18px;
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-text .label {
  color: #777;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-text .value {
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================
   Enamad
========================= */
.enamad-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0;
  margin-bottom: 20px;
}

.enamad-wrapper {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enamad-link {
  display: inline-block;
  padding: 15px 20px;
  text-decoration: none;
  opacity: 0;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.enamad-link.loaded {
  opacity: 1;
}

.enamad-link:hover {
  border-color: rgba(182, 140, 74, 0.7);
  background: rgba(15, 15, 15, 0.98);
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
}

.enamad-link img {
  display: block;
  width: auto;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
}

/* =========================
   Enamad states
========================= */
.enamad-status {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.enamad-status.loading {
  color: #f3c87c;
}

.enamad-status.error {
  color: #e74c3c;
}

.enamad-status span {
  font-size: 14px;
  font-weight: 600;
}

.enamad-status small {
  color: #777;
  font-size: 12px;
}

.enamad-status i {
  font-size: 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #1a1a1a;
  border-top-color: #b68c4a;
  border-radius: 50%;
  animation: footerSpin 1s linear infinite;
}

@keyframes footerSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   Copyright
========================= */
.footer-copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #1a1a1a;
}

.footer-copyright p {
  margin: 0;
  color: #777;
  font-size: 12px;
}

/* =========================
   Responsive
========================= */
@media (min-width: 768px) {
  .modern-footer {
    padding: 70px 40px 35px;
  }

  .footer-brand {
    margin-bottom: 35px;
    padding-bottom: 35px;
  }

  .footer-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-logo h2 {
    font-size: 26px;
  }

  .brand-desc {
    font-size: 15px;
  }

  .social-links {
    gap: 18px;
    padding: 30px 0;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
  }

  .info-card {
    padding: 20px;
  }

  .info-text .value {
    font-size: 15px;
  }

  .enamad-link img {
    height: 100px;
  }
}

@media (max-width: 767px) {
  .enamad-status {
    min-width: 220px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 575px) {
  .modern-footer {
    padding-inline: 16px;
  }

  .social-links {
    gap: 12px;
  }

  .social-btn {
    width: 54px;
    height: 54px;
  }

  .social-btn img {
    width: 24px;
    height: 24px;
  }

  .info-card {
    padding: 16px;
  }

  .info-text .value {
    font-size: 13px;
  }

  .enamad-link {
    padding: 12px 16px;
  }

  .enamad-link img {
    height: 84px;
  }
}