/* Unified Platform Footer */
.traylinx-footer {
  background: #0A0A0A !important; /* Matched to traylinx.com dark mode */
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 5rem 2rem 4rem !important;
  margin-top: 5rem !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  
  /* BREAKOUT TRICK: Ensure full-width even if nested in a centered container */
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  margin-left: -50vw !important;
  box-sizing: border-box !important;
  clear: both !important;
  display: block !important;
  visibility: visible !important;
}

/* Light Mode Overrides */
[data-md-color-scheme="default"] .traylinx-footer {
  background: #F5F5F5 !important;
  color: #1a1a1a !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.footer-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
}

.footer-section h3 {
  font-size: 0.9rem; /* Reduced from 1.1rem */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: inherit !important;
  letter-spacing: 0.02em;
}

.footer-section p {
  font-size: 0.85rem; /* Reduced from 1rem */
  color: #a0a0a0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

[data-md-color-scheme="default"] .footer-section p {
  color: #666666;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 1rem;
}

.footer-section a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.85rem; /* Reduced from 1rem */
  transition: all 0.2s ease;
}

[data-md-color-scheme="default"] .footer-section a {
  color: #666666;
}

.footer-section a:hover {
  color: #ffffff;
}

[data-md-color-scheme="default"] .footer-section a:hover {
  color: #8800ff; /* Traylinx Purple */
}

.footer-brand {
  padding-right: 5rem;
}

.brand-links a {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: inherit !important;
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="default"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem; /* Reduced from 0.95rem */
  color: #a0a0a0;
}

[data-md-color-scheme="default"] .footer-bottom-container {
  color: #666666;
}

.social-links {
  display: flex;
  gap: 2.5rem;
}

.social-links a {
  color: inherit !important;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

/* Platform Navigation Bar (Top) */
.platform-nav {
  background: #8e24aa !important; /* Traylinx Purple */
  color: white !important;
  padding: 0.75rem 2rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  
  /* breakout */
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  margin-left: -50vw !important;
  box-sizing: border-box !important;
}

.platform-nav a {
  color: white !important;
  text-decoration: none !important;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.platform-nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.platform-nav .cta-btn {
  background: rgba(255, 255, 255, 0.25) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 6px !important;
  backdrop-filter: blur(4px);
}

/* Material Layout Cleanup */
.md-main {
  display: block !important;
}

.md-main__inner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Hide theme's default footer metadata and copyright */
.md-footer-meta, 
.md-copyright,
.md-footer__inner,
.md-footer-nav {
  display: none !important;
}

.md-footer {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: span 2;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .social-links {
    gap: 2rem;
  }
  
  .platform-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}
