/* ============================================
   Footer Styles - Tokyo Mate
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 3rem 0 0 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer Grid Layout
   ============================================ */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

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

/* Mobile: 1 column */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 2rem 0 0 0;
    margin-top: 3rem;
  }

  .footer-content {
    padding: 0 1rem;
  }
}

/* ============================================
   Footer Sections
   ============================================ */

.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Logo Section
   ============================================ */

.footer-logo h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.footer-description-ja {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
}

/* ============================================
   Headings & Links
   ============================================ */

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Email icon */
.footer-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.footer-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   Language Selector
   ============================================ */

.footer-language {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
}

.language-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-right: 1rem;
  font-weight: 500;
}

.language-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.4rem 1rem;
  margin: 0 0.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-block;
}

.language-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.language-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
}

/* ============================================
   Copyright Bar
   ============================================ */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-copyright p,
.footer-credits p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-credits p {
  font-weight: 500;
}

/* Mobile: Stack copyright */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-copyright p,
  .footer-credits p {
    font-size: 0.85rem;
  }
}

/* ============================================
   Dark Mode Support
   ============================================ */

@media (prefers-color-scheme: dark) {
  .site-footer {
    /* Slightly darker gradient in dark mode */
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  }
}

/* ============================================
   Accessibility
   ============================================ */

.footer-links a:focus,
.language-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .footer-section {
    animation: none;
  }

  .footer-links a:hover,
  .language-link:hover {
    transform: none;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .site-footer {
    background: #ffffff;
    color: #000000;
    page-break-inside: avoid;
  }

  .footer-links a {
    color: #000000;
  }
}
