/* ============================================
   COMPONENTS — Shared UI
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-spring),
              box-shadow var(--dur-normal) var(--ease-out),
              background var(--dur-fast),
              border-color var(--dur-fast),
              color var(--dur-fast);
  cursor: none;
}

/* Focus state for all buttons */
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Shimmer on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }

/* Primary — white fill */
.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border: none;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}
.btn--primary:active { transform: translateY(0); }

/* Outline — transparent + white border */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}
.btn--outline:active { transform: translateY(0); }

/* Accent — green fill */
.btn--accent {
  background: var(--color-accent);
  color: var(--color-black);
  border: none;
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--color-accent-glow);
}

/* Ghost — subtle border */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  min-height: 44px;
}
.btn--ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
  background: var(--color-bg-elevated);
}

/* Size variants */
.btn--lg {
  padding: 18px 48px;
  font-size: var(--text-md);
  min-height: 56px;
}
.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
  min-height: 40px;
}

/* ── Tags / Labels ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.tag--accent {
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-color: rgba(0, 217, 126, 0.2);
}

/* ── Section Label ── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-label);
  margin-bottom: var(--space-4);
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-16) 0;
}

/* ── Stat Block ── */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--color-text-primary);
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-regular);
}

/* ── Image Placeholder ── */
.img-placeholder {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-align: center;
  padding: var(--space-8);
}
.img-placeholder svg { width: 32px; height: 32px; opacity: 0.35; }
.img-placeholder span { opacity: 0.45; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-20) 0 var(--space-12);
  margin-top: var(--space-32);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

/* Brand column */
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: opacity var(--dur-fast);
}
.footer__logo:hover { opacity: 0.7; }

/* Geometric logo mark in footer */
.footer__logo-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__logo-mark svg { width: 100%; height: 100%; }

.footer__logo-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 260px;
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast),
              background var(--dur-fast),
              transform var(--dur-fast);
}
.footer__social-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  transform: translateY(-2px);
}
.footer__social-link svg {
  width: 14px; height: 14px;
  fill: var(--color-text-secondary);
  transition: fill var(--dur-fast);
}
.footer__social-link:hover svg { fill: var(--color-accent); }

/* Nav columns */
.footer__nav-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--dur-fast);
  padding: var(--space-1) 0;
}
.footer__nav-link:hover { color: var(--color-text-primary); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.footer__status-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--color-accent-glow); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}
