@import url("../styles/components/base.css");

/* Footer */
.eclipse-footer {
  width: 100%;
  background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark) 100%);
  color: var(--light);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  position: relative;
  flex-shrink: 0; /* keep footer at bottom */
}

.eclipse-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.eclipse-footer-inner {
  width: 85%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

/* Company + Social */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-name {
  font-weight: 700;
  color: var(--light);
  margin: 0;
}

.trading-as {
  font-weight: 400;
  color: var(--gray);
  display: block;
  font-size: 0.9rem;
}

.company-details p {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 2px 0;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--light);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 99, 0.3);
}

/* Navigation */
.footer-links-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.footer-column a:hover {
  color: var(--light);
  padding-left: 6px;
}

.footer-column a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.footer-column a:hover::before {
  width: 4px;
}

/* Mobile */
@media (max-width: 992px) {
  .eclipse-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer-links-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Company + Social */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.company-name {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Primary contact info - most prominent */
.company-copyright {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.company-copyright a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-copyright a:hover {
  color: var(--primary-light);
}

/* Secondary details - subtle but readable */
.company-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-details p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.social-links {
  display: flex;
  gap: 16px;
  padding-top: 4px;
}

.discord-banner {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: var(--light);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.2);
  position: relative;
  overflow: hidden;
  width: auto;
}

.discord-banner-content {
  width: 85%;
  width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discord-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.discord-text {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  position: relative;
  z-index: 1;
}

.discord-button {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discord-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Styles */
@media (max-width: 1200px) {
  .discord-banner {
    padding: 16px 0;
  }

  .discord-banner-content {
    width: 90%;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .discord-text {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .discord-banner-content {
    width: 95%;
  }
  .discord-banner {
    padding: 20px 0;
  }
}

.highlight {
  color: var(--primary);
}