/* Footer styles - Comprehensive version with all styles */

/* Base Footer Structure */
.main-footer {
  background-color: var(--surface-color);
  box-shadow: 0 -4px 20px var(--shadow-color);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Logo and Branding */
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  justify-content: flex-start;
  text-decoration: none;
  transition: transform var(--transition-speed);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo .logo-icon {
  margin-right: 10px;
}

.footer-tagline {
  color: var(--text-color-secondary);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Social Links */
.footer-social-row {
  position: absolute;
  top: 8px;
  right: 2rem;
  margin: 0;
  padding: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background-color: var(--surface-color-alt);
  color: var(--text-color-secondary);
  transition: all var(--transition-speed);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  clear: both;
  margin-bottom: 2rem;
}

/* Section Styles */
.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

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

.footer-section ul a {
  color: var(--text-color-secondary);
  transition: color var(--transition-speed);
}

.footer-section ul a:hover {
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text-color-secondary);
}

/* Copyright */
.copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-color-tertiary);
  font-size: 0.875rem;
}

.copyright p:last-child {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.7;
  font-style: italic;
}

/* Large Desktop Screens */
@media screen and (min-width: 1201px) {
  .footer-top,
  .footer-middle {
    display: none;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .footer-bottom-left,
  .footer-bottom-right {
    flex: 1;
  }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 991px) and (min-width: 769px) {
  .footer-logo {
    margin-bottom: 1rem;
  }
  
  .footer-social-row {
    position: static;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Small Screens (Mobile) */
@media screen and (max-width: 768px) {
  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .footer-social-row {
    position: static;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .contact-info p {
    text-align: center;
  }
  
  /* Mobile screens (under 768px) - Single column 4x1 in specific order */
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 1.5rem;
  }
  
  .footer-section {
    padding: 0;
    width: 100%;
    margin-bottom: 1rem;
    grid-area: auto !important;
    text-align: center;
  }
  
  /* Explicit order for mobile: Logo → Contact → Explorer → Service */
  .logo-section {
    order: 1;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .contact-section {
    order: 2;
  }
  
  .nav-section {
    order: 3;
  }
  
  .service-section {
    order: 4;
  }
  
  .footer-section .footer-logo {
    margin-bottom: 0;
    justify-content: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
  }
  
  .footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-section ul {
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-section ul li {
    padding: 0.5rem 0;
  }
  
  /* Center contact info paragraphs */
  .footer-section .contact-info p {
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* Very small screens */
@media screen and (max-width: 480px) {
  .footer-content {
    /* Already set as flex column in the parent media query */
    gap: 1rem;
  }
  
  .footer-section {
    margin-bottom: 0.5rem;
  }
  
  /* More compact contact info on very small screens */
  .contact-info p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
}

/* Additional footer-related components */

/* Bike Card Footer */
.bike-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .bike-footer {
  border-top-color: #424242;
}

/* Map Modal Footer */
.map-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 15px;
}