/* public/css/layout/footer.css */

/* ==================== Desktop: 1025px 以上 ==================== */
.site-footer {
  background: linear-gradient(180deg, #2c2c2c 0%, #1f1f1f 100%);
  color: var(--color-white);
  padding: 60px 0 20px;
  margin-top: auto;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* ==================== Footer 欄位樣式 ==================== */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--color-white);
  border-bottom: 2px solid #4a4a4a;
  padding-bottom: 8px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

/* ==================== 孕婦友善資訊區域 ==================== */
.pregnancy-info p {
  color: #cccccc;
  line-height: 1.6;
  margin: 0 0 12px 0;
  font-size: 0.8rem;
}

/* ==================== 品牌區域樣式 ==================== */
.footer-brand {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  align-items: flex-end;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 65px;
}

.brand-logo img {
  width: 80%;
}

/* ==================== 社群媒體樣式 ==================== */
.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #404040;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #555555;
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link.threads:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.social-link.facebook:hover {
  background-color: #1877f2;
}

/* ==================== Footer 底部樣式 ==================== */
.footer-bottom {
  border-top: 1px solid #4a4a4a;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

.separator {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ==================== 無障礙設計 ==================== */
.social-link:focus,
.footer-links a:focus,
.footer-bottom-links a:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* ==================== Laptop: 769px - 1024px ==================== */
@media (max-width: 1024px) {
  .site-footer {
    padding: 50px 0 20px;
  }

  /* NOTE: ≤1024px 起（漢堡選單斷點）三個連結欄改由漢堡選單提供，footer 只留品牌區 */
  .footer-column:not(.footer-brand) {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .brand-logo img {
    width: 70%;
  }

  .brand-logo {
    margin-bottom: 50px;
  }
}

/* ==================== Tablet: 481px - 768px ==================== */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .brand-logo {
    margin-bottom: 40px;
  }

  .brand-logo img {
    width: 60%;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==================== Mobile: 480px 以下 ==================== */
@media (max-width: 480px) {
  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-content {
    gap: 25px;
  }

  .brand-logo {
    margin-bottom: 30px;
  }

  .brand-logo img {
    width: 50%;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }

  .separator {
    display: none;
  }
}

/* ==================== 列印樣式 ==================== */
@media print {
  .site-footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .social-links {
    display: none;
  }
}
