/* Enhanced Footer Design - Antikythera Technologies */

/* Glass Footer with Tokyo Night Theme */
/* Global Footer Fix - Remove all gaps */
.footer {
  background: linear-gradient(to bottom, transparent, rgba(26, 27, 38, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(122, 162, 247, 0.1);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 50%, rgba(122, 162, 247, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(187, 154, 247, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tn-text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  transition: var(--tn-transition-fast);
}

.footer__logo:hover {
  color: var(--tn-cyan);
}

.footer__logo img {
  width: 32px;
  height: 32px;
  filter: brightness(1.2);
  transition: var(--tn-transition-fast);
}

.footer__logo:hover img {
  transform: scale(1.1);
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(125, 207, 255, 0.5));
}

.footer__tagline {
  color: var(--tn-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer__column h4 {
  color: var(--tn-text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--tn-gradient-primary);
  border-radius: 2px;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__connect-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  max-width: 240px;
  flex-direction: unset !important;
}

.footer__connect-grid li {
  margin: 0;
}

.footer__connect-grid a {
  text-align: left;
  white-space: nowrap;
  font-size: 0.9rem;
}

.footer__column li {
  margin: 0;
}

.footer__column a {
  color: var(--tn-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--tn-transition-fast);
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer__column a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tn-cyan);
  transition: width 0.3s ease;
}

.footer__column a:hover {
  color: var(--tn-cyan);
  transform: translateX(5px);
}

.footer__column a:hover::before {
  width: 100%;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__legal a {
  color: var(--tn-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--tn-transition-fast);
  opacity: 0.8;
}

.footer__legal a:hover {
  color: var(--tn-cyan);
  opacity: 1;
}

.footer__legal span {
  color: var(--tn-text-muted);
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer__copyright {
  color: var(--tn-text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
  position: relative;
}

/* Subtle Admin Link - Nearly invisible */
.footer__admin {
  position: absolute;
  right: 0;
  bottom: -15px;
  font-size: 0.65rem;
  opacity: 0.15;
  color: var(--tn-bg-tertiary);
  text-decoration: none;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  z-index: 1;
}

.footer__admin:hover {
  opacity: 0.4;
  color: var(--tn-text-muted);
}

.footer__admin:visited {
  color: var(--tn-bg-tertiary);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer__admin {
    position: static;
    display: block;
    text-align: center;
    margin-top: 5px;
    opacity: 0.1;
  }
}

/* Social Icons (if needed later) */
.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 162, 247, 0.1);
  border: 1px solid rgba(122, 162, 247, 0.2);
  border-radius: 10px;
  color: var(--tn-text-secondary);
  transition: var(--tn-transition-fast);
}

.footer__social a:hover {
  background: rgba(122, 162, 247, 0.2);
  border-color: var(--tn-cyan);
  color: var(--tn-cyan);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(122, 162, 247, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer__legal {
    justify-content: center;
  }
  
  .footer__column h4 {
    font-size: 1.1rem;
  }
  
  .footer__column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer__column ul {
    text-align: center;
  }
  
  .footer__column a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .footer__column a:hover {
    transform: none;
  }
  
  .footer__connect-grid {
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer__logo {
    font-size: 1.1rem;
  }
  
  .footer__tagline {
    font-size: 0.85rem;
  }
  
  .footer__legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer__legal span {
    display: none;
  }
}