/* ==========================================================================
   Footer Component Stylesheet
   Primary: #023638 | Secondary: #CD9F5C
   ========================================================================== */

.site-footer {
  background: var(--bg-dark, #011e1f);
  color: #ffffff;
  padding: 65px 0 110px; /* leaves room for bottom player */
  border-top: 2px solid rgba(205, 159, 92, 0.25);
  position: relative;
  font-family: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.15fr;
  gap: 36px;
  margin-bottom: 40px;
}

/* Col 1: Brand & About */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-img {
  max-height: 92px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

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

.footer-desc {
  font-size: 0.9rem;
  color: #9cb2b4;
  line-height: 1.85;
  margin-bottom: 20px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(205, 159, 92, 0.25);
  color: var(--secondary, #CD9F5C);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  background: var(--secondary, #CD9F5C);
  color: #012425;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.4);
}

/* Columns General */
.footer-col-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--secondary, #CD9F5C);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: #b1c6c8;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--secondary, #CD9F5C);
  transform: translateX(-4px);
}

body[dir="ltr"] .footer-links-list a:hover {
  transform: translateX(4px);
}

/* Col 4: Invite Friends & QR Card */
.footer-invite-col {
  display: flex;
  flex-direction: column;
}

.footer-qr-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1.2px solid rgba(205, 159, 92, 0.3);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-qr-card:hover {
  border-color: #CD9F5C;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.12);
}

.footer-qr-frame {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-qr-image {
  width: 95px;
  height: 95px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.footer-qr-hint {
  font-size: 0.78rem;
  color: #a4bebf;
  margin: 0;
  line-height: 1.5;
}

.footer-qr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.footer-qr-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.footer-qr-btn svg {
  flex-shrink: 0;
}

.footer-qr-btn-download {
  background: rgba(205, 159, 92, 0.16);
  color: #CD9F5C;
  border: 1px solid rgba(205, 159, 92, 0.4);
}

.footer-qr-btn-download:hover {
  background: #CD9F5C;
  color: #012425;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(205, 159, 92, 0.25);
}

.footer-qr-btn-copy {
  background: #023638;
  color: #ffffff;
  border: 1px solid rgba(205, 159, 92, 0.4);
}

.footer-qr-btn-copy:hover {
  background: #044b4e;
  border-color: #CD9F5C;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.3);
}

/* Bottom Bar & Mousahel Credit */
.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #7d9698;
  width: 100%;
}

.footer-bottom-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-rights {
  color: #7d9698;
  font-weight: 500;
}

.footer-made-badge {
  color: var(--secondary-light, #e1b97e);
  font-weight: 600;
}

.footer-mousahel-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9cb2b4;
  font-size: 0.86rem;
  text-align: center;
  width: 100%;
}

.mousahel-brand-link {
  color: var(--secondary, #CD9F5C);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
}

.mousahel-brand-link:hover {
  color: #f7d59c;
  background: rgba(205, 159, 92, 0.12);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-bottom-primary {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   Floating Action Stack (WhatsApp CTA & Back-to-Top Button)
   Globally available across all current and future platform pages
   ========================================================================== */

.floating-actions-stack {
  position: fixed;
  bottom: 95px; /* Safely floats above the bottom audio player */
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1050;
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.player-hidden .floating-actions-stack {
  bottom: 24px;
}

body[dir="ltr"] .floating-actions-stack {
  left: auto;
  right: 24px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* WhatsApp Floating Button */
.floating-wa-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.floating-wa-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulseWaRing 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseWaRing {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.floating-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #023638;
  color: #ffffff;
  border: 1px solid rgba(205, 159, 92, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body[dir="ltr"] .floating-wa-tooltip {
  right: auto;
  left: calc(100% + 12px);
  transform: translateX(-8px);
}

.floating-wa-btn:hover .floating-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll To Top Button */
.floating-top-btn {
  background: #023638;
  color: var(--secondary, #CD9F5C);
  border: 1.5px solid rgba(205, 159, 92, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
}

.floating-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-top-btn:hover {
  background: var(--secondary, #CD9F5C);
  color: #023638;
  border-color: #023638;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(205, 159, 92, 0.4);
}
