/* css/footer.css - Compact and responsive footer */
.site-footer {
  background-color: var(--card-bg);
  color: var(--text);
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  position: relative;
}

/* Section buttons - compact style */
.footer-section-btn {
  all: unset;
  width: 100%;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-section-btn h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.footer-arrow {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.footer-section-btn[aria-expanded="true"] .footer-arrow {
  transform: rotate(180deg);
}

/* Expanded content - full page modal */
.footer-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 100vh;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: var(--card-bg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  padding: 1.5rem;
  overflow-y: auto;
}

.footer-content:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.footer-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Close button */
.footer-close-btn {
  align-self: flex-end;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.footer-close-btn:hover {
  opacity: 0.9;
}

.footer-content h4 {
  color: var(--accent3);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Backdrop */
.footer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}

.footer-content:not([hidden]) + .footer-backdrop {
  display: block;
}

/* Tablet - keep 3 columns but more compact */
@media (max-width: 900px) {
  .footer-container {
    gap: 1rem;
  }
  
  .footer-section-btn h3 {
    font-size: 0.95rem;
  }
  
  .footer-content {
    padding: 1rem;
  }
}

/* Mobile - single column */
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .footer-section {
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 0.5rem;
  }
  
  .footer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .footer-section-btn {
    padding: 0.6rem 0;
  }
  
  .site-footer {
    padding: 1rem 0.8rem;
  }
  
  .footer-bottom {
    margin-top: 1rem;
    padding-top: 0.8rem;
    font-size: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .footer-content-inner {
    padding: 0.5rem;
  }
  
  .footer-close-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .footer-content h4 {
    font-size: 1rem;
  }
}