/**
 * WActivity CMS Shell - Footer Styles
 * Shared footer component with multiple layouts and CSS custom properties for theming.
 */

/* ===== Base Footer ===== */
.wac-footer {
  background: var(--footer-bg, #f9fafb);
  color: var(--footer-text, #1f2937);
  width: 100%;
  box-sizing: border-box;
}

.wac-footer--border-top {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

/* Padding variants */
.wac-footer[data-padding="compact"] .wac-footer__inner {
  padding: 1.5rem 1rem;
}
.wac-footer[data-padding="normal"] .wac-footer__inner {
  padding: 2.5rem 1.5rem;
}
.wac-footer[data-padding="spacious"] .wac-footer__inner {
  padding: 4rem 2rem;
}

.wac-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Links ===== */
.wac-footer a {
  color: var(--footer-text, #1f2937);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wac-footer a:hover {
  opacity: 0.7;
}

.wac-footer a:focus-visible {
  outline: 2px solid var(--footer-accent, #d32f2f);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Section headings ===== */
.wac-footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  opacity: 0.7;
}

/* ===== Brand ===== */
.wac-footer__logo {
  display: block;
  margin-bottom: 0.75rem;
  max-width: 100%;
  object-fit: contain;
}

.wac-footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.wac-footer__desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

/* ===== Contact ===== */
.wac-footer__contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

.wac-footer__contact address p {
  margin: 0;
}

/* ===== Hours ===== */
.wac-footer__hours-list {
  margin: 0;
  font-size: 0.85rem;
}

.wac-footer__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.wac-footer__hours-row dt {
  font-weight: 500;
}

.wac-footer__hours-row dd {
  margin: 0;
  opacity: 0.8;
}

/* ===== Links list ===== */
.wac-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wac-footer__links li {
  padding: 0.2rem 0;
}

.wac-footer__links a {
  font-size: 0.9rem;
}

/* ===== Social Icons ===== */
.wac-footer__social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wac-footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.1);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.wac-footer__social-icons a:hover {
  background: rgba(128, 128, 128, 0.2);
  opacity: 1;
}

.wac-footer__social-icons svg {
  width: 18px;
  height: 18px;
}

/* ===== Bottom bar ===== */
.wac-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.wac-footer__copyright {
  margin: 0;
}

.wac-footer__powered {
  margin: 0;
}

.wac-footer__legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wac-footer__legal a {
  font-size: 0.8rem;
}

/* ==============================
   LAYOUT: Simple (centered, single column)
   ============================== */
.wac-footer--simple .wac-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.wac-footer--simple .wac-footer__social-icons {
  justify-content: center;
}

/* ==============================
   LAYOUT: Columns (responsive grid)
   ============================== */
.wac-footer--columns .wac-footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* ==============================
   LAYOUT: Minimal (single line)
   ============================== */
.wac-footer--minimal .wac-footer__main {
  display: none;
}

.wac-footer--minimal .wac-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ==============================
   LAYOUT: Centered (logo top, centered content)
   ============================== */
.wac-footer--centered .wac-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.wac-footer--centered .wac-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wac-footer--centered .wac-footer__social-icons {
  justify-content: center;
}

.wac-footer--centered .wac-footer__contact address {
  text-align: center;
}

.wac-footer--centered .wac-footer__hours-list {
  max-width: 300px;
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .wac-footer--columns .wac-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wac-footer--columns .wac-footer__social-icons {
    justify-content: center;
  }

  .wac-footer--columns .wac-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wac-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Print ===== */
@media print {
  .wac-footer__social-icons,
  .wac-footer__powered {
    display: none;
  }

  .wac-footer {
    background: none !important;
    color: #000 !important;
    border-top: 1px solid #ccc;
  }

  .wac-footer a::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
  }
}
