.club-info-container {
  margin-top: 82px;
}

.page-dots {
  color: #ccc;
  font-size: 20px;
}

.statistics__grid {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin: 20px 0;
}

.statistics__item {
  border: 1px solid #333;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
  min-width: 200px;
}

.statistics__label {
  font-size: 48px;
  font-weight: bold;
  padding-bottom: 10px;
  color: var(--color-primary);
}

.statistics__value {
  font-size: 16px;
  color: #5b5b5b;
}

.ranking-description {
  display: flex;
  margin-bottom: 30px;
  margin-top: 50px;
}

.ranking-description__color {
  background-color: var(--color-primary);
  height: auto;
  min-width: 20px;
  margin-right: 20px;
}

.ranking-description p {
  font-size: 14px;
  color: #5b5b5b;
}
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  margin-top: 20px;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
}

.ranking-table th,
.ranking-table td {
  padding: 10px;
}

.ranking-table thead {
  background-color: #444444;
  color: #fff;
  font-weight: 600;
}

.ranking-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-start;
}

.event-card {
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  max-width: 390px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.4s ease,
    background-color 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15), 0 0 30px rgba(66, 48, 170, 0.3);
  border-color: var(--color-main);
}

.event-card__thumb {
  width: 100%;
  height: 200px;
  margin-bottom: 10px;
  object-fit: fill;
  aspect-ratio: 16/9;
}

.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.event-card__body {
  margin: 0 12px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* gap: 5px; */
  min-height: 245px;
}

.event-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  align-items: center;
}

.event-card__meta {
  border: 2px solid var(--color-main);
  border-radius: 4px;
  padding: 0 8px;
}

.event-card__title {
  font-size: 1.4rem;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: calc(1.3em * 2);
}

.event-card__date {
  font-size: 12px;
  color: var(--color-main);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
}

.event-card__status {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px;
}

.event-card__status--end {
  color: #333;
}

.event-card__status--active {
  color: #c40c0c;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.4), 0 0 8px rgba(255, 0, 0, 0.3);
    color: #ff2e2e;
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 50, 50, 0.8), 0 0 24px rgba(255, 0, 0, 0.6);
    color: #ff4b4b;
  }
  100% {
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.4), 0 0 8px rgba(255, 0, 0, 0.3);
    color: #ff2e2e;
  }
}

.event-card__status--upcoming {
  color: #56ba5a;
}

.event-card__category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.event-address {
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.event-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card__registrations {
  display: flex;
  gap: 5px;
  align-items: center;
}

.event-card__registrations_number {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-main);
  text-shadow: 0 0 4px rgba(106, 73, 242, 0.3);
  animation: glowSoft 2s ease-in-out infinite;
}
.event-card__registrations_number_disabled {
  font-size: 1.2rem;
  font-weight: 600;
  color: #888;
}

@keyframes glowSoft {
  0% {
    text-shadow: 0 0 4px rgba(106, 73, 242, 0.3),
      0 0 8px rgba(106, 73, 242, 0.2);
  }
  50% {
    text-shadow: 0 0 10px rgba(106, 73, 242, 0.6),
      0 0 18px rgba(106, 73, 242, 0.4);
  }
  100% {
    text-shadow: 0 0 4px rgba(106, 73, 242, 0.3),
      0 0 8px rgba(106, 73, 242, 0.2);
  }
}

.event-card__action {
  background-color: var(--color-primary);
  color: #f7f7f7;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px transparent;
}

.event-card__action:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(106, 73, 242, 0.6);
}

.event-card__action:disabled {
  background-color: #888;
  color: #fff;
  transition: none;
  box-shadow: none;
  transform: none;
}

.event-card__action:disabled:hover {
  background-color: #888;
  color: #fff;
  cursor: not-allowed;
  border-color: transparent;
}

/* ==========================
    HOVER EFFECTS 
========================== */

.statistics__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.statistics__item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.ranking-table tbody tr {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.ranking-table tbody tr:hover {
  background-color: #e0e0e0;
  transform: scale(1.01);
  cursor: pointer;
}

.event-card__thumb img {
  transition: transform 0.4s ease;
}

.event-card__thumb img:hover {
  transform: scale(1.05);
}

.club-info__details a {
  transition: color 0.3s ease, transform 0.2s ease;
}

.club-info__details a:hover {
  color: var(--color-primary, #cb001c);
  transform: translateX(3px);
}

.club-info-container {
  display: flex;
  color: #000;
  gap: calc(10%);
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
}

.club-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
}

.club-info-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.club-info-banner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.club-info-banner img {
  transition: transform 0.4s ease, box-shadow 0.4s ease-in-out;
}

.club-info-banner img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.club-info__header {
  text-align: start;
}
.club-info__name {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
}

.club-info__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 0;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.club-info__name:hover::after {
  width: 100%;
}

.club-info__desc {
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.club-info__desc:hover {
  transform: translateY(-2px);
  color: #333;
}
.club-info__details {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.club-info__details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin: 10px 0;
  transition: transform 0.2s ease, all 0.2s ease;
}

.club-info__details li:hover {
  transform: scale(1.02);
  color: #ff4a2f;
}
.club-info__details i {
  font-size: 18px;
  min-width: 22px;
}
.club-info__details a {
  text-decoration: none;
  transition: color 0.2s;
}

.club-info-banner img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.4s ease;
}

.club-info-banner img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* RESPONSIVE  */
@media (min-width: 768px) {
  /* show cards in 2 columns */
  .event-card {
    width: calc(50% - var(--gap));
  }
  .club-card {
    width: calc(50% - 10px);
  }
}

/* TABLET BREAKPOINT */
@media (max-width: 1199px) {
  .event-list {
    justify-content: space-around;
  }

  #gameMode option {
    font-size: 0.6rem;
  }

  .event-card__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 800px) {
  .ranking-table {
    display: block;
    overflow-x: scroll;
    white-space: nowrap;
    border: none;
    border-radius: 0;
  }

  .event-card__title {
    min-height: calc(1em * 2);
  }
}
/* MOBILE BREAKPOINT */
@media (max-width: 767px) {
  .event-card__title {
    min-height: calc(0.5em * 2);
  }

  .club-info__details {
    gap: 0;
  }

  .container .club-filter__controls {
    gap: 5px;
  }

  .club-info__details li {
    margin: 6.5px 0;
  }

  .statistics__grid {
    gap: 20px;
    margin: 20px calc(5%);
  }

  .page-title-container {
    margin-top: 0;
  }

  .statistics__item {
    padding: 20px;
    min-width: auto;
    width: 100%;
  }

  .statistics__label {
    font-size: 36px;
  }

  .ranking-description {
    display: none;
    flex-direction: column;
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .ranking-description__color {
    min-width: 100%;
    min-height: 10px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .ranking-table th,
  .ranking-table td {
    white-space: nowrap;
    padding: 12px 15px;
    font-size: 14px;
  }

  .event-card {
    border-radius: 6px;
    max-width: 100%;
    width: 100%;
  }

  .event-card__thumb img {
    aspect-ratio: 16/9;
    object-fit: cover;
    overflow: hidden;
  }

  .club-info-container {
    margin-top: 80px;
    flex-direction: column;
    gap: 2.5%;
    padding-top: 0;
  }

  .club-info-banner {
    width: 100%;
  }

  .club-info-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .club-info {
    width: 100%;
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .statistics__grid {
    margin: 20px 0;
  }
}

/* ==========================
   RESPONSIVE FONT SIZES
========================== */

/* Tablet */
@media (max-width: 1199px) {
  html {
    font-size: 15px;
  }

  .club-info__name {
    font-size: 2rem;
  }

  .club-info__desc,
  .club-info__details li,
  .ranking-table th,
  .ranking-table td {
    font-size: 0.95rem;
  }

  .event-card__category,
  .event-card__registrations,
  .event-address {
    font-size: 0.9rem;
  }

  .page-number {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .club-info__name {
    font-size: 2.5rem;
  }

  .club-info__desc {
    font-size: 0.9rem;
  }

  .club-info__details li {
    font-size: 0.85rem;
  }

  .statistics__label {
    font-size: 2rem;
  }

  .ranking-table th,
  .ranking-table td {
    font-size: 0.85rem;
  }

  .event-card__category,
  .event-card__registrations,
  .event-address {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  html {
    font-size: 13px;
  }

  .club-info__name {
    font-size: 2rem;
  }

  .club-info__desc,
  .club-info__details li {
    font-size: 0.8rem;
  }
}
