/* Athletes Page Specific Styles */

.af-athletes-section {
  padding: 100px 20px;
  background: url("./images/athletesbg.webp") no-repeat center center;
  background-size: cover;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  position: relative;
}

.af-section-title {
  font-size: 48px;
  margin-bottom: 40px;
  color: #64d9ff;
}

.af-athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.af-athlete-card {
  background: rgba(0, 0, 0, 1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 1s ease-in-out;
  color: #ffffff;
}

.af-athlete-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.af-athlete-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.af-athlete-image:hover {
  transform: scale(1.05);
}

.af-athlete-name {
  font-size: 24px;
  margin: 15px 0 10px 0;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
}

.af-athlete-name:hover {
  color: #64dafe;
}

.af-athlete-record,
.af-athlete-accomplishments,
.af-athlete-social,
.af-athlete-reach {
  font-size: 16px;
  margin-bottom: 5px;
  color: #ffffff;
  text-align: center;
}

.af-athlete-social a {
  margin: 0 10px;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.af-athlete-social a:hover {
  color: #64dafe;
}

.af-athlete-social img,
.af-athlete-social i {
  width: 36px;
  height: 36px;
  vertical-align: middle;
}

.af-athlete-social i {
  font-size: 36px;
}

.af-sponsor-button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #64dafe;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.af-sponsor-button:hover {
  background-color: #4bbbe3;
  transform: scale(1.05);
}

.af-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

.af-modal.active {
  opacity: 1;
  visibility: visible;
}

.af-modal-content {
  background-color: #000;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  animation: slideUp 0.5s ease-in-out;
  outline: none;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 90vh;
}

@media (max-width: 768px) {
  .af-modal-content {
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .af-modal-content {
    max-height: 80vh;
  }
}

.af-close,
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.af-close:hover,
.af-close:focus,
.lightbox-close:hover,
.lightbox-close:focus {
  color: #ddd;
}

.af-highlight-video {
  margin-bottom: 20px;
}

.af-highlight-video video,
.af-highlight-video iframe {
  width: 100%;
  height: 630px;
  border-radius: 10px;
  object-fit: cover;
}

.af-carousel {
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.af-carousel h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #000300;
}

.af-carousel-track {
  display: flex;
  width: calc(600px * 20);
  animation: scroll 60s linear infinite;
}

.af-carousel-track img {
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.af-carousel-track img:hover {
  transform: scale(1.05);
}

.af-packages-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #000000;
  position: relative;
}

.af-packages-section h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffffff;
}

.swiper-container {
  width: 100%;
  padding-bottom: 40px;
}

.swiper-container.af-packages-carousel {
  position: relative;
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.af-package-card {
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
}

.af-package-card:hover {
  transform: scale(1.05);
}

.af-package-top {
  padding: 20px;
  text-align: center;
  background-color: #64dafe;
}

.af-package-top h3 {
  margin-bottom: 10px;
  color: #fff;
}

.af-package-top h2 {
  margin-bottom: 10px;
  color: #fff;
}

.af-package-top h3:last-of-type {
  font-size: 16px;
}

.af-package-bottom {
  background-color: #000;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.af-package-bottom h3 {
  margin-bottom: 10px;
  color: #fff;
}

.af-package-bottom p {
  margin-bottom: 8px;
  text-align: center;
}

.af-package-bottom p::before {
  content: "";
}

.swiper-pagination-bullet {
  background: #bbb;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #64dafe;
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

/* Responsive adjustments for different screen sizes */

@media (max-width: 1200px) {
  .af-athlete-image {
    width: 400px;
    height: 400px;
  }

  .af-athlete-social img,
  .af-athlete-social i {
    width: 30px;
    height: 30px;
  }

  .af-carousel-track {
    width: calc(500px * 20);
    animation: scroll 50s linear infinite;
  }

  .af-carousel-track img {
    width: 500px;
    height: 375px;
    margin-right: 15px;
  }

  .af-highlight-video video,
  .af-highlight-video iframe {
    height: 500px;
  }

  .swiper-container.af-packages-carousel {
    padding-bottom: 30px;
  }

  .af-package-card {
    width: 300px;
  }

  .af-modal-content h2 {
    font-size: 24px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 14px;
  }

  .af-package-top h3,
  .af-package-top h2,
  .af-package-bottom h3,
  .af-package-bottom p {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .af-athlete-image {
    width: 350px;
    height: 350px;
  }

  .af-carousel-track {
    width: calc(400px * 20);
    animation: scroll 45s linear infinite;
  }

  .af-carousel-track img {
    width: 400px;
    height: 300px;
    margin-right: 10px;
  }

  .af-highlight-video video,
  .af-highlight-video iframe {
    height: 450px;
  }

  .swiper-container.af-packages-carousel {
    padding-bottom: 25px;
  }

  .af-package-card {
    width: 220px;
  }

  .af-modal-content h2 {
    font-size: 22px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 13px;
  }

  .af-package-top h3,
  .af-package-top h2,
  .af-package-bottom h3,
  .af-package-bottom p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .af-athlete-image {
    width: 300px;
    height: 300px;
  }

  .af-carousel-track {
    width: calc(300px * 20);
    animation: scroll 40s linear infinite;
  }

  .af-carousel-track img {
    width: 300px;
    height: 225px;
    margin-right: 10px;
  }

  .af-highlight-video video,
  .af-highlight-video iframe {
    height: 350px;
  }

  .swiper-container.af-packages-carousel {
    padding-bottom: 20px;
  }

  .af-package-card {
    width: 200px;
  }

  .af-modal-content h2 {
    font-size: 20px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 12px;
  }

  .af-package-top h3,
  .af-package-top h2,
  .af-package-bottom h3,
  .af-package-bottom p {
    font-size: 12px;
  }

  /* NEW: Force one-column layout so cards remain visible at narrower widths */
  .af-athletes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .af-athlete-image {
    width: 250px;
    height: 250px;
  }

  .af-carousel-track {
    width: calc(250px * 20);
    animation: scroll 35s linear infinite;
  }

  .af-carousel-track img {
    width: 250px;
    height: 188px;
    margin-right: 5px;
  }

  .af-highlight-video video,
  .af-highlight-video iframe {
    height: 250px;
  }

  .swiper-container.af-packages-carousel {
    padding-bottom: 15px;
  }

  .af-package-card {
    width: 234px;
  }

  .af-modal-content h2 {
    font-size: 18px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 11px;
  }

  .af-package-top h3,
  .af-package-top h2,
  .af-package-bottom h3,
  .af-package-bottom p {
    font-size: 11px;
  }
}

body.modal-open,
body.lightbox-open {
  overflow: hidden;
}

.af-package-bottom p {
  margin-bottom: 8px;
  text-align: center;
}

.af-package-bottom p::before {
  content: "";
}

.swiper-container.af-packages-carousel.grabbing {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.swiper-button-prev,
.swiper-button-next {
  z-index: 10;
}

.af-modal-content {
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .af-modal-content h2 {
    font-size: 20px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .af-modal-content h2 {
    font-size: 18px;
  }

  .af-modal-content p,
  .af-modal-content h3 {
    font-size: 11px;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .af-athlete-card.animate-on-scroll.active {
    animation: slideInLeft 0.6s forwards;
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media (min-width: 769px) {
  .af-athlete-card.animate-on-scroll {
    opacity: 1;
    transform: translateX(0);
    transition: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

button.af-sponsor-button {
  font-family: "Future Tense", Arial, sans-serif;
}

/* Remove underline from fighter names in athlete cards */
.af-athlete-card a {
  text-decoration: none;
  color: #fff; /* Keep text white by default */
}

.af-athlete-card a:hover,
.af-athlete-card a:focus {
  text-decoration: none;
  color: #64dafe; /* Optional hover color */
}
