/* 
  Join Club Widget Styles
  Rewritten for a modern, professional, and fully responsive experience.
*/

/* Join Club Dashboard Slider Component
   Modern, full-image slider for clubs (student dashboard)
   ----------------------------------------------------- */
   .join-club-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 20px 0 rgba(32,101,209,0.09);
    background: #fff;
  }
  .join-club-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  }
  .join-club-slide {
    min-width: 100%;
    height: 260px;
    position: relative;
    background: #f6fafd;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(32,101,209,0.07);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .join-club-slide-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s;
  }
  .join-club-slide:hover .join-club-slide-img {
    transform: scale(1.04);
  }
  .join-club-slide-title {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.44) 100%);
    color: #fff;
    padding: 1.1em 1.4em 1.2em 1.4em;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 2;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.17);
  }
  /* Oklar kaldırıldı, controls gizlendi */
  .join-club-slider-controls {
    display: none !important;
  }
  /* Ok butonları kaldırıldı */
  .join-club-slider-btn.prev,
  .join-club-slider-btn.next {
    display: none !important;
  }
  
  /* Katıl butonu sağ üstte */
  .join-club-slider-btn.join {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    background: #2065d1;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(32,101,209,0.08);
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.92rem;
    padding: 0.35em 0.9em;
    text-decoration: none;
  }
  .join-club-slider-btn.join:hover {
    background: #174ea6;
  }
  .join-club-slider-btn:hover {
    background: #e3f2fd;
  }
  .join-club-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4em;
    z-index: 11;
  }
  .join-club-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b6c8e3;
    transition: background 0.2s;
    cursor: pointer;
  }
  .join-club-slider-dot.active {
    background: #2065d1;
  }

  @media (max-width: 1366px) {
    .join-club-slider-header {
      font-size: 0.85rem!important;
      left: 0px;
      top: 0px!important;
    }
    .join-club-slide-title {
      padding-bottom: 2.2em!important;
    }
  }

  @media (max-width: 600px) {
    .join-club-slider, .join-club-slide { height: 180px; }
    .join-club-slide-title { font-size: 1.05rem; padding: 0.8em 1em 0.9em 1em; }
    .join-club-slider-btn.join {
      top: 8px;
      right: 8px;
      font-size: 0.92rem;
      padding: 0.35em 0.9em;
    }
  }
  
  /* Sol üst başlık için */
  .join-club-slider-header {
    position: absolute;
    top: 18px;
    left: 24px;
    z-index: 4;
    color: #2065d1;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(255,255,255,0.85);
    padding: 0.4em 1em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(32,101,209,0.07);
  }
  @media (max-width: 600px) {
    .join-club-slider-header {
      top: 8px;
      left: 8px;
      font-size: 0.95rem;
      padding: 0.25em 0.7em;
    }
  }

  @media (max-width: 480px) {
    .join-club-slider-header {
      font-size: 0.65rem;
      left: 10px;
      top: 0;
    }

    .join-club-slide-title {
      padding-bottom: 3rem!important;
    }
  }
  
.join-club-widget {
  position: relative;
  border-radius: 1rem; /* 16px */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(145, 158, 171, 0.16);
  /* The height will be determined by the slide's aspect ratio */
}

/* If no clubs are available */
.join-club-widget--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background-color: #f4f6f8;
  color: #637381;
  min-height: 250px; /* Give it some height */
}
.join-club-widget--empty .empty-state-icon .dashicons {
  font-size: 2.5rem; /* 40px */
  width: auto;
  height: auto;
  color: #919eab;
}
.join-club-widget--empty h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #212b36;
  margin: 0.75rem 0 0.25rem;
}
.join-club-widget--empty p {
  font-size: 0.875rem; /* 14px */
  margin: 0;
  max-width: 320px;
}

/* Fixed Header Inside Slider */
.join-club-widget__header {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Slider Track */
.join-club-widget__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.join-club-widget__slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.join-club-widget__slide-bg-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.join-club-widget__slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease-out;
}
.join-club-widget__slide:hover .join-club-widget__slide-bg {
  transform: scale(1.05);
}

/* Content on Slide (Club Name) */
.join-club-widget__slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 2.5rem 1.25rem; /* More bottom padding for dots */
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #ffffff;
}

.join-club-widget__slide-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Slider Dots */
.join-club-widget__dots {
  position: absolute;
  bottom: 1.25rem; /* Positioned at the very bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem; /* 8px */
}

.join-club-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-club-widget__dot.is-active {
  background-color: #ffffff;
  transform: scale(1.4); /* Makes the dot bigger but keeps it round */
}


/* === Responsive === */
@media (max-width: 768px) {
  .join-club-widget__header {
    font-size: 1.125rem; /* 18px */
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
  }
  .join-club-widget__slide-title {
    font-size: 1rem; /* 16px */
    padding-bottom: 3rem!important;
  }
  .join-club-widget__dots {
    bottom: 1rem; /* Consistent bottom position */
  }
  .join-club-widget__slide-content {
    padding: 1rem 1rem 2.5rem 1rem; /* Adjust bottom padding */
  }
}
  