/* ============================================================
   Project Archon — Footer CSS
   Professional dark footer with multi-column layout
   ============================================================ */

/* ── Footer Wrapper ──────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* ── Decorative background glow ──────────────────────────── */
.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer Grid ─────────────────────────────────────────── */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-color);
}

/* ── Brand Column ────────────────────────────────────────── */
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer__brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.footer__brand-name span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

/* ── Newsletter in footer ────────────────────────────────── */
.footer__newsletter {
  display: flex;
  gap: 0;
}

.footer__newsletter-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-base);
}

.footer__newsletter-input::placeholder { color: var(--text-muted); }
.footer__newsletter-input:focus        { border-color: var(--primary); }

.footer__newsletter-btn {
  padding: 0.65rem 1.25rem;
  background: var(--grad-primary);
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: opacity var(--transition-base);
  white-space: nowrap;
}
.footer__newsletter-btn:hover { opacity: 0.9; }

/* ── Footer Column ───────────────────────────────────────── */
.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__link-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
}

/* ── Footer Social Icons ─────────────────────────────────── */
.footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--primary-glow);
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Footer Bottom ───────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-8);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--primary);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__bottom-link:hover {
  color: var(--text-secondary);
}

.footer__compliance {
  display: flex;
  gap: var(--space-3);
}

.footer__compliance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem 0.5rem;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-10);
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
  }
  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
  .footer__compliance { justify-content: center; }
}

.footer__logo-img { height: 70px; width: auto; object-fit: contain; mix-blend-mode: screen; clip-path: inset(2% 0); }
