/* public/assets/css/footer.css */

/* --- Footer Styles --- */
.footer {
  background: #000;
  color: #aaa;
  padding: 60px 40px 40px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Main container */
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 50px;
  flex-wrap: wrap;
  gap: 30px 40px;
}

/* Logo + Social + Copyright column */
.footer-logo-social-column {
  flex: 1 1 280px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
}

.footer-copyright {
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
  padding-top: 0;
}

.footer-social a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: #ccc;
  transform: scale(1.1);
}

/* Links columns container */
.footer-links-columns {
  display: flex;
  gap: 30px 50px;
  flex-wrap: wrap;
  flex: 2 1 550px;
  justify-content: flex-end;
  margin-left: auto;
}

/* Individual links column */
.footer-column {
  flex: 0 0 auto;
}

.footer-column h4 {
  font-family: 'Franklin Gothic Demi', 'Arial Narrow', Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

/* Legal section */
.footer-legal-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #444;
}

/* Legal text + button container */
.footer-legal-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-legal-text {
  flex: 1 1 70%;
  min-width: 300px;
}

.footer-legal-text p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #888;
  margin: 0;
  padding-right: 250px;
}

.footer-back-to-top {
  flex-shrink: 0;
}

/* Back to top button (match new site button system: login-style primary) */
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  font-size: 1.28em;
  line-height: 1;

  color: #000;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;

  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;

  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.back-to-top:active {
  transform: translateY(1px);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.back-to-top:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  color: #000;
}

/* Bottom legal links */
.footer-legal-links {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  gap: 15px 35px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* --- Responsive Footer --- */

/* Tablets */
@media (max-width: 992px) {
  .footer-links-columns {
    justify-content: flex-start;
    flex-basis: 100%;
    order: 2;
    gap: 30px 40px;
    margin-left: 0;
  }

  .footer-logo-social-column {
    flex-basis: 100%;
    order: 1;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-top: 0;
  }

  .footer-copyright {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .footer-legal-section {
    order: 3;
    margin-top: 40px;
  }

  .footer-legal-container {
    justify-content: center;
    text-align: center;
  }

  .footer-legal-text {
    max-width: 80%;
    text-align: center;
  }

  .footer-legal-text p {
    padding-right: 0;
  }

  .footer-legal-links {
    justify-content: center;
    gap: 15px 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px;
  }

  .footer-container {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-logo img {
    width: 140px;
    margin-bottom: 10px;
  }

  .footer-copyright {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .footer-social {
    gap: 15px;
    margin-bottom: 0;
  }

  .footer-social a {
    font-size: 20px;
  }

  /* ONLY CHANGE: the 3 columns layout on mobile (Games / Contact / Resources) */
  .footer-links-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    order: 2;
    width: 100%;
  }

  /* ONLY CHANGE: remove centered look for the 3 columns */
  .footer-column {
    min-width: auto;
    width: 100%;
    max-width: 280px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  /* ONLY CHANGE: small visual separator for titles (still same font-size) */
  .footer-column h4 {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  /* keep as-is */
  .footer-column li {
    margin-bottom: 6px;
  }

  /* keep as-is */
  .footer-column a {
    font-size: 13px;
  }

  .footer-legal-section {
    order: 3;
    margin-top: 30px;
    padding-top: 20px;
  }

  .footer-legal-container {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
    align-items: center;
  }

  .footer-legal-text {
    max-width: 95%;
    order: 1;
    text-align: center;
  }

  .footer-legal-text p {
    font-size: 10px;
    padding-right: 0;
  }

  .footer-back-to-top {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Mobile optimization: full-width button, bigger tap target */
  .back-to-top {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    font-size: 1.30em;
    padding: 13px 30px;
  }

  .footer-legal-links {
    gap: 10px 15px;
    margin-top: 15px;
    padding-top: 15px;
    justify-content: center;
    text-align: center;
  }

  .footer-legal-links a {
    font-size: 10px;
  }
}
