/* ═══════════════════════════════════════════════════════════════════════
   V2 — Footer ("Forward Operating Base")
   Class prefix: .v2-ft-
   Enhances existing #footer947 without breaking it
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Islamic Geometric Top Border ── */
.v2-ft-islamic-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
  z-index: 2;
}

.v2-ft-islamic-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--v2-sector-amber) 0%,
    var(--v2-sector-cyan) 50%,
    var(--v2-sector-amber) 100%
  );
  opacity: 0.5;
}

.v2-ft-islamic-border::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4' viewBox='0 0 16 4'%3E%3Cpath d='M0 2L2 0L4 2L2 4ZM4 2L6 0L8 2L6 4ZM8 2L10 0L12 2L10 4ZM12 2L14 0L16 2L14 4Z' fill='rgba(0,0,0,0.3)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 4px;
}

/* ── Topographic Contour Background ── */
.v2-ft-topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Radar Sweep (bottom-right, desktop only) ── */
.v2-ft-radar {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
}

.v2-ft-radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--v2-sector-green);
}

/* Concentric rings */
.v2-ft-radar::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid var(--v2-sector-green);
  opacity: 0.6;
}

.v2-ft-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(16, 185, 129, 0.15) 30deg,
    transparent 60deg
  );
  animation: v2-radarSweep 4s linear infinite;
}

@keyframes v2-radarSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Enhanced Brand Area ── */
.v2-ft-brand-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

/* ── Link Column Headers: Military Style ── */
.v2-ft-heading {
  position: relative;
  font-family: var(--v2-hud-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--z-text, #f1f5f9);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.v2-ft-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--z-accent, #f59e0b);
  border-radius: 2px;
  opacity: 0.5;
}

/* ── Link Hover Enhancement ── */
.v2-ft-link {
  position: relative;
  display: inline-block;
  transition: color var(--v2-duration) var(--v2-ease);
}

.v2-ft-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--z-accent, #f59e0b);
  transition: width var(--v2-duration) var(--v2-ease);
}

.v2-ft-link:hover {
  color: var(--z-accent, #f59e0b);
}

.v2-ft-link:hover::after {
  width: 100%;
}

/* ── Newsletter: Secure Comms ── */
.v2-ft-comms {
  position: relative;
}

.v2-ft-comms-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v2-hud-font);
  font-size: var(--v2-hud-size);
  font-weight: var(--v2-hud-weight);
  letter-spacing: var(--v2-hud-spacing);
  text-transform: uppercase;
  color: var(--v2-sector-green);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

/* ── Social Icons: Glitch Hover ── */
.v2-ft-social:hover {
  animation: v2-socialGlitch 0.15s ease;
}

@keyframes v2-socialGlitch {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

/* ── Status Line (bottom bar enhancement) ── */
.v2-ft-statusline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--v2-hud-font);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--z-text-muted, #64748b);
  opacity: 0.4;
  margin-top: 0.5rem;
}

.v2-ft-statusline .v2-heartbeat {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-sector-green);
  animation: v2-pulse 2s ease-in-out infinite;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .v2-ft-radar { display: none; }
  .v2-ft-topo { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-ft-radar-sweep { animation: none; }
  .v2-ft-social:hover { animation: none; }
  .v2-ft-statusline .v2-heartbeat { animation: none; opacity: 1; }
}
