/*
 * BComm.net — Footer Styles
 * ═══════════════════════════════════════════════════════════════════
 * PHASE 1 — READ-ONLY AFTER VALIDATION
 *
 * Depends on: tokens.css, base.css
 * ═══════════════════════════════════════════════════════════════════
 */


/* ── Footer Shell ─────────────────────────────────────────────────────────── */

#main-footer {
  position: relative;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-blue);
  overflow: hidden;
}

/* Subtle background ambient glow */
#main-footer::before {
  content: '';
  position: absolute;
  bottom: -80px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, var(--color-blue-ultra-dim) 0%, transparent 70%);
  pointer-events: none;
}


/* ── Footer Top ───────────────────────────────────────────────────────────── */

.footer-top {
  padding-block: var(--space-12) var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-8);
}


/* ── Footer Brand Column ──────────────────────────────────────────────────── */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Logo reuse (same markup as navbar) */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  width: fit-content;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-light);
  max-width: 320px;
  line-height: var(--lh-relaxed);
}


/* ── Social Links Column ──────────────────────────────────────────────────── */

.footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}

html[dir="rtl"] .footer-social-col {
  align-items: flex-start;
}

.footer-social-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

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


/* Social icon button */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  transition:
    background    var(--transition-smooth),
    border-color  var(--transition-smooth),
    color         var(--transition-smooth),
    transform     var(--transition-bounce),
    box-shadow    var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  transition: opacity var(--transition-smooth);
}

/* WhatsApp — green tint */
.social-btn--whatsapp:hover {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
  transform: translateY(-3px);
}

/* Facebook — blue tint */
.social-btn--facebook:hover {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.25);
  transform: translateY(-3px);
}

/* Instagram — gradient tint */
.social-btn--instagram:hover {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.25);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}


/* ── Footer Divider ──────────────────────────────────────────────────────── */

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border-subtle) 20%,
    var(--color-border-medium) 50%,
    var(--color-border-subtle) 80%,
    transparent 100%
  );
}


/* ── Footer Bottom (Copyright) ───────────────────────────────────────────── */

.footer-bottom {
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

.footer-copyright .year {
  color: var(--color-blue-light);
}

.footer-copyright .brand-name {
  color: var(--color-gold-light);
  font-weight: var(--fw-medium);
}

.footer-links-inline {
  display: flex;
  gap: var(--space-5);
}

.footer-link-inline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-link-inline:hover {
  color: var(--color-blue-light);
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

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

  .footer-social-col {
    align-items: flex-start;
  }

  html[dir="rtl"] .footer-social-col {
    align-items: flex-end;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  html[dir="rtl"] .footer-bottom {
    align-items: flex-end;
  }
}
