/**
 * 頁尾：小工具、品牌、頁尾導覽、版權
 *
 * @package Yafun2027
 */

/* ==========================================================================
   基礎樣式（源自 Dyad，已精簡；先於本檔下方的野放樣式）
   ========================================================================== */

.site-footer::before,
.site-footer::after,
.widget-area::before,
.widget-area::after,
.footer-bottom-info::before,
.footer-bottom-info::after {
  content: "";
  display: table;
}

.site-footer::after,
.widget-area::after,
.footer-bottom-info::after {
  clear: both;
}

.error404 .entry-content .widget {
  display: table-cell;
  padding: 0 2rem 3rem;
  width: 100%;
}

.error404 .entry-content .widget a {
  text-decoration: none;
}

.error404 .entry-content .widget ul li {
  border-color: #c0c9d3;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.widget-area {
  font-size: 90%;
  margin: 0 auto;
  max-width: 80%;
  padding: 7rem 0;
  position: relative;
}

.is-singular.has-post-thumbnail:not(.home):not(.page-template-eventbrite-index) .widget-area {
  max-width: calc(72% + 4em);
}

.widget-area .widget {
  float: left;
  margin: 0 0 60px;
  padding: 0 30px;
  width: 24.5%;
}

.widget-area.widgets-two .widget,
.has-post-thumbnail.is-singular:not(.home):not(.single-format-image):not(.page-template-eventbrite-index) .widget-area .widget {
  width: 49.5%;
}

.footer-bottom-info {
  font-size: 1.4rem;
  padding: 3rem 5.5rem;
}

.widget {
  color: #616a74;
  margin: 0 0 1.5em;
  text-align: left;
}

.widget-title {
  color: #8c97a2;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin: 0 0 1.62em;
  text-transform: uppercase;
}

.widget ul {
  list-style: none;
  margin: 0;
}

.widget ul li {
  border-bottom: 1px solid #363b40;
  border-top: 1px solid #363b40;
  padding: 8px 0;
}

.widget ul li + li {
  margin-top: -1px;
}

.widget_recent_entries ul li a {
  display: block;
}

.widget .tagcloud a,
.widget.widget_tag_cloud a {
  border: 1px solid #363b40;
  float: left;
  position: relative;
  transition: background 0.2s;
  overflow-wrap: break-word;
  z-index: 0;
  margin: 4px 4px 0 0 !important;
}

.widget .tagcloud a:hover,
.widget.widget_tag_cloud a:hover {
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

@media only screen and (max-width: 1600px) {
  .widget-area {
    max-width: calc(100% - 4em);
  }

}
@media only screen and (max-width: 1400px) {
  .has-post-thumbnail.is-singular:not(.home):not(.single-format-image):not(.page-template-eventbrite-index) .widget-area .widget {
    width: 100%;
  }

}
@media only screen and (max-width: 1200px) {
  .widget-area {
    max-width: calc(84% + 4em);
  }

}
@media only screen and (max-width: 680px) {

  .error404 .entry-content .widget {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }

  .widget-area .widget,
  .widget-area.widgets-two .widget,
  .is-singular:not(.home) .widget-area .widget,
  .has-post-thumbnail.is-singular:not(.home):not(.single-format-image):not(.page-template-eventbrite-index) .widget-area .widget {
    float: none;
    width: 100%;
  }

}

/* ==========================================================================
   頁尾
   ========================================================================== */

.site-footer .widget-title {
  color: #e8e4d8;
  letter-spacing: 0.1em;
}

/* 最新留言 */
.site-footer .widget_recent_comments li {
  border-color: rgba(255, 255, 255, 0.08);
  color: #7d8a7a;
}

/* 標籤雲 */
.site-footer .widget .tagcloud a,
.site-footer .widget.widget_tag_cloud a {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8cfc4;
  font-size: 1.4rem !important;
  padding: 4px 14px 5px !important;
  transition: background 0.2s, color 0.2s;
}

/* 底部資訊列 */
.footer-bottom-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 4rem;
  background-color: #18211c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 5.5rem;
}

.footer-site-name {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-kai);
  margin: 0.3em 0 0;
  font-size: 1.3rem;
  color: #7d8a7a;
}

.footer-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .footer-bottom-info {
    padding: 3rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .widget .tagcloud a {
    transition: none;
  }
}
/* ---------- Footer ---------- */

.site-footer {
  text-align: left;
  background-color: var(--forest-900);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(201, 169, 110, 0.35);
}

.site-footer a {
  color: var(--on-dark);
  transition: color 0.2s;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--on-dark-accent);
  text-decoration: none;
}

.site-footer .widget-title {
  color: var(--on-dark);
}

.site-footer .widget ul li,
.site-footer .widget_recent_comments li {
  border-color: var(--line-dark);
  color: var(--on-dark-soft);
}

.site-footer .widget .tagcloud a,
.site-footer .widget.widget_tag_cloud a {
  background: rgba(240, 236, 226, 0.06);
  color: var(--on-dark-muted);
}

.site-footer .widget .tagcloud a:hover,
.site-footer .widget.widget_tag_cloud a:hover {
  background: var(--color-leaf);
  color: #fff;
}

.footer-bottom-info {
  background-color: var(--forest-950);
  border-top: 1px solid var(--line-dark);
}

.footer-tagline {
  color: var(--on-dark-soft);
}

.footer-nav-items a {
  color: var(--on-dark-muted);
}

.footer-bottom-info .site-info {
  flex-basis: 100%;
  font-size: 1.25rem;
  color: var(--on-dark-soft);
}

/* 頁尾「照片授權」：字小但點擊範圍維持 44px */
.footer-bottom-info .site-info-license {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 0.8em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (prefers-reduced-motion: reduce) {
  #site-navigation > div > ul > li > a::after,
  #site-navigation a,
  .site-footer a {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yf-search-close,
  .yf-search-close:hover {
    transition: none;
    transform: none;
  }
}

/* 頁尾「最新文章」日期 */
.site-footer .widget .post-date {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-pen);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--on-dark-accent);
}
