/* =======================================================
   SolarTempe — Footer Styles
   This file styles the main footer to match the
   futuristic "glassmorphism" aesthetic of the site.
   - Features: Live Status Indicator, Gradient Border
   - Animations: Pulsing Status Light, Link Underline Reveal
======================================================= */

/* ------------------------------
   Main Footer Container
------------------------------ */
.main-footer {
  position: relative;
  padding: 2.5rem 0;
  margin-top: 5rem; /* Give some space from the last content section */
  
  /* Glassmorphism Effect */
  background: var(--surface);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  
  /* NEW FEATURE 2: Gradient top border */
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent 5%, var(--line) 20%, var(--line) 80%, transparent 95%) 1;
}

.footer-content-wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

/* ------------------------------
   NEW FEATURE 1: System Status
------------------------------ */
.system-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.system-status b {
  color: #2fdd90; /* A vibrant green for "ONLINE" status */
  font-weight: 700;
  text-shadow: 0 0 8px rgba(47, 221, 144, 0.5);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2fdd90;
  box-shadow: 0 0 12px rgba(47, 221, 144, 0.6);
  
  /* NEW ANIMATION 1: Pulsing status light */
  animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ------------------------------
   Footer Navigation Links
------------------------------ */
.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

/* NEW ANIMATION 2: Underline reveal (consistent with main nav) */
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform: translateX(-50%);
}

.footer-nav a:hover::after {
  width: 100%;
}


/* ------------------------------
   Footer Quote
------------------------------ */
.footer-quote {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* ------------------------------
   Responsive Styles
------------------------------ */
@media (max-width: 992px) {
  .footer-content-wrapper {
    flex-direction: column;
    justify-content: center;
  }
  
  .system-status {
    order: 2; /* Move status below nav links on mobile */
  }
  
  .footer-nav {
    order: 1;
  }
  
  .footer-quote {
    order: 3;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    gap: 1.5rem;
  }
}
