/* Clean, Sophisticated Footer Layout */
.footer { 
  position: relative;
  padding: 5.5rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(5, 7, 18, 0.4) 0%, rgba(3, 4, 10, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Elegant thin top neon border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(108, 241, 214, 0.4) 30%, 
    rgba(122, 162, 255, 0.4) 70%, 
    transparent 100%
  );
  opacity: 0.8;
}

/* Main Container */
.footer__container {
  width: min(1200px, 92vw);
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 4rem;
}

/* Columns */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Brand styling */
.footer__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.footer__description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 320px;
}

/* Social icons styling */
.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: all 0.25s ease;
}

.footer__social-link:hover {
  background: rgba(108, 241, 214, 0.08);
  border-color: rgba(108, 241, 214, 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Links column styling */
.footer__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.3rem;
  position: relative;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--muted);
  transition: all var(--transition);
  width: fit-content;
}

.footer__link:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* Status & Newsletter Column */
.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-green 2s infinite;
}

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

.status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__info {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer__info svg {
  color: var(--accent-2);
  opacity: 0.8;
}

.footer__form {
  margin-top: 0.5rem;
  max-width: 260px;
}

.footer__input-group {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0;
  transition: border-color 0.25s ease;
}

.footer__input-group:focus-within {
  border-color: var(--accent);
}

.footer__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.footer__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.footer__submit {
  background: transparent;
  color: var(--muted);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: all 0.25s ease;
  display: grid;
  place-items: center;
}

.footer__submit:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* Footer Bottom */
.footer__bottom {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__bottom-link {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

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

.footer__restart {
  font-size: 0.85rem;
  color: var(--muted);
  transition: all var(--transition);
}

.footer__restart:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Light Theme Adjustments */
body.theme-light .footer {
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.4) 0%, rgba(229, 231, 235, 0.8) 100%);
  border-top-color: rgba(12, 21, 48, 0.05);
}

body.theme-light .footer::before {
  opacity: 0.5;
}

body.theme-light .footer__social-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #4b5563;
}

body.theme-light .footer__social-link:hover {
  background: rgba(12, 21, 48, 0.05);
  border-color: rgba(12, 21, 48, 0.15);
  color: #0c1530;
}

body.theme-light .footer__link {
  color: #4b5563;
}

body.theme-light .footer__link:hover {
  color: #0c1530;
}

body.theme-light .footer__info {
  color: #4b5563;
}

body.theme-light .footer__input-group {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .footer__input {
  color: #0c1530;
}

body.theme-light .footer__input::placeholder {
  color: rgba(12, 21, 48, 0.4);
}

body.theme-light .footer__submit {
  color: #4b5563;
}

body.theme-light .footer__submit:hover {
  color: #0c1530;
}

body.theme-light .footer__bottom-link {
  color: #4b5563;
}

body.theme-light .footer__bottom-link:hover {
  color: #0c1530;
}

body.theme-light .footer__restart {
  color: #4b5563;
}

body.theme-light .footer__restart:hover {
  color: #0c1530;
}

/* Responsive Layouts */
@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer__col--brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 4rem 0 2rem;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .footer__col--brand {
    grid-column: span 1;
  }
  
  .footer__nav {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer__bottom-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
