/* public/css/footer.css - 修正版本，完全匹配 React FooterStyles */

/* Footer 容器 - 對應 FooterContainer */
.footer-container {
  background-color: #b8272e;
  color: #ffffff;
  padding: 3rem 10rem 2rem 10rem;
  display: flex;
  flex-direction: column;
}

/* Footer 主要內容區域 - 對應 React 的 Container */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* 公司資訊區域 - 40% 寬度 */
.company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 40%;
}

/* Footer Logo - 對應 ImageContainer */
.footer-logo {
  position: relative;
  width: 15rem;
  height: 5rem;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 公司詳細資訊 */
.company-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

/* Footer 段落 - 對應 FooterParagraph */
.footer-paragraph {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer 連結 - 對應 FooterLink */
.footer-link {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: inherit;
  text-decoration: none;
  display: block;
}

.footer-link:hover {
  text-decoration: underline;
}

/* 導航區域 - 40% 寬度，space-around 分佈 */
.navigation-section {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 40%;
}

/* Footer 欄位 - 對應每個導航列 */
.footer-column {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

/* 欄位標題 - 對應 ColumnTitle */
.column-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-right: 1rem;
  display: inline-block;
}

/* 垂直字母 - 對應 VerticalLetter */
.vertical-letter {
  display: block;
  line-height: 1.2;
  text-align: center;
}

/* 第一個字母是黑色 - 對應 &:first-child */
.vertical-letter.black {
  color: black;
}

/* 導航列表 - 對應 NavList */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 導航項目 - 對應 NavItem */
.nav-items {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* 導航連結 - 對應 NavLink */
.nav-links {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0%;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links:hover {
  opacity: 0.8;
}

/* 下載區域 - 20% 寬度 */
.download-section {
  width: 20%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 200px;
}

/* 下載按鈕 - 對應 DownloadButton，重置 a 標籤預設樣式 */
.download-button {
  background-color: #ffffff;
  color: #b8272e;
  padding: 1rem 1.5rem;
  border-radius: 31px;
  text-decoration: none;
  box-shadow: 0px 0px 10px 0px #00000040;
  display: inline-block;
  transition: background-color 0.3s;

  /* 重置 a 標籤的預設樣式 */
  border: none;
  outline: none;
  cursor: pointer;
}

.download-button:hover {
  background-color: #f0f0f0f2;
  text-decoration: none; /* 確保 hover 時不會有底線 */
}

.download-button:focus {
  outline: 2px solid #b8272e;
  outline-offset: 2px;
}

.download-button:active {
  background-color: #e0e0e0;
}

/* 版權聲明 */
.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 響應式設計 */
@media (max-width: 1200px) {
  .footer-container {
    padding: 2rem 5rem 1.5rem 5rem;
  }

  .footer-logo {
    width: 12rem;
    height: 4rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 2rem 2rem 1.5rem 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .company-info,
  .navigation-section,
  .download-section {
    width: 100%;
  }

  .navigation-section {
    justify-content: space-between;
  }

  .download-section {
    justify-content: center;
    min-height: auto;
  }

  .footer-logo {
    width: 10rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 1.5rem 1rem;
  }

  .navigation-section {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-column {
    flex-direction: column;
    align-items: center;
  }

  .column-title {
    margin-right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
  }

  .vertical-letter {
    display: inline;
    line-height: normal;
  }

  .nav-list {
    text-align: center;
  }
}
