/*
 * Site footer styles — verbatim extract from blog-theme/partials/footer.hbs.
 * Linked from BaseLayout.astro so the Astro <Footer /> component matches
 * the live www.playbook.com footer 1:1. See DECISIONS.md ("Legacy CSS strategy").
 */

.site-footer {
  line-height: 1;
  padding: 50px 0 120px 0;
  margin: 0;  /* Negative margin to break out of .site container */
  width: 100%;  /* Compensate for negative margin */
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
}

@media (max-width: 767px) {
  .site-footer {
    margin: 0;
    width: 100%;
  }
  .hide-on-mobile,
  .footer-qr-container.hide-on-mobile {
    display: none !important;
  }
}

.site-footer-inner {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 100px;
  font-size: 16px;
  padding: 0 20px; /* Add side padding to prevent touching edges */
}

/* Override Bootstrap columns to make all 4 content columns evenly wider */
@media (min-width: 768px) {
  .site-footer-inner .col-md-3:first-child {
    width: 25% !important; /* Logo column stays at 25% */
    max-width: 25% !important; /* Override Bootstrap max-width */
    flex: none !important;
  }
  .site-footer-inner .col-md-2.site-footer-div {
    width: 18.75% !important; /* Each content column gets 18.75% (75% ÷ 4) */
    max-width: 18.75% !important; /* Override Bootstrap max-width */
    flex: none !important;
  }
}

.site-footer-list-title {
  font-size: 15px;
  font-weight: 600;
  color: #434140;
}

.site-footer-list {
  list-style-type: none;
  margin: 20px 0;
  font-size: 15px;
}

.site-footer-list li {
  line-height: 1.5em;
  margin-bottom: 12px;
}

.footer-featured {
  font-size: 11px;
  background: #3EC3CC;
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  padding: 1px 6px 2px 6px;
  margin-right: 4px;
  white-space: nowrap;
}

a.footer-menu-item-link {
  color: rgba(82, 74,62,0.82);
  font-weight: 500;
  line-height: 1.5;
}

a.footer-menu-item-link:hover {
  opacity: 0.7;
}

.footer-social {
  margin-left: -7px !important;
  text-align: left !important;
  margin-top: 30px;
}

.footer-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 8px;
  border-radius: 14px;
  border: .75px solid #e5e5e5;
  box-shadow: 0 10px 24px rgba(60,60,60,0,05);
  margin-top: 40px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), background 0.18s;
  max-width: 160px;
}

.footer-qr-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f6f7;
  display: block;
}

.footer-qr-title {
  font-size: 14px;
  line-height: 1.2em;
  font-weight: 600;
  color: rgba(82, 74, 62, 0.82);
  margin: 6px auto;
  text-align: center;
}

@media (max-width: 767px) {
  .site-footer-inner {
    display: flex;
    width: auto;
    margin: 0 auto;
  }

  /* Logo and social icons on same row */
  .site-footer-inner .col-md-3:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;  /* Align to bottom baseline */
    width: 100%;
    margin-bottom: 30px;
  }

  .footer-social {
    margin: 0;
    margin-left: auto;
  }

  .site-footer-list-title {
    margin-top: 50px;
  }

  .site-footer-div {
    width: 50%;
    display: inline-block;
    margin-top: 40px;
  }

  .site-footer-list li {
    line-height: 1em;
    margin-bottom: 10px;
  }
}

.art-competition {
  text-align: center;
  padding: 10px 0;
  color: white;
  line-height: 1.5em;
  background-image: linear-gradient(153deg, #f8d79a 8%, #e76385 26%, #4280cc 55%, #5f3d89 100%);
}

.art-competition-inner {
  max-width: 800px;
  width: auto;
  margin: 0 auto;
}

.art-competition ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.art-competition ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.art-competition a {
  font-weight: bold;
  color: white;
  text-decoration: underline;
}

.divider {
  padding: 0 10px;
  opacity: 0.3;
}

@media (max-width: 767px) {
  .art-competition {
    padding: 20px 5px;
    text-align: left;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
  }

  .divider {
    display: none;
  }

  .art-competition ul li {
    display: block;
  }
  .copyright {
    margin-top: 0;
  }
}

.dark-mode .site-footer {
  background-color: #23242a;
}
.dark-mode a.footer-menu-item-link {
  color: hsla(0, 0%, 100%, .5);
}

.dark-mode .footer-links {
  color: hsla(0, 0%, 100%, .5);
}

.dark-mode .privacy a,
.dark-mode .terms a,
.dark-mode .discord a {
  color: hsla(0, 0%, 100%, .5);
}

.discord a:hover {
  color: #ff2753;
}

/* Simple footer links - no wrapping */
.footer-links {
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px auto;
}

.terms,
.copyright,
.privacy,
.discord {
  white-space: nowrap;
  margin: 10px !important;
}

/* Keep in one row when there's space */
@media (min-width: 480px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
  }
}
