/* =========================================
   GAME PROVIDERS STATIC GRID SECTION
   ========================================= */
.providers-section {
  background-color: #000;
  padding: 25px 0;
}

.providers-panel {
  position: relative;
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(240, 194, 75, 0.25);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.providers-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(240, 194, 75, 0.35),
    rgba(212, 175, 55, 0.15),
    rgba(240, 194, 75, 0.35)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.providers-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 4px 12px 4px;
}

.providers-panel__title-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.providers-panel__accent {
  width: 6px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0c24b 0%, #b8941f 100%);
  box-shadow: 0 0 12px rgba(240, 194, 75, 0.4);
}

.providers-total-count {
  font-size: 0.85rem;
  color: #c8b071;
  background: rgba(240, 194, 75, 0.08);
  border: 1px solid rgba(240, 194, 75, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Static Grid Layout */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* Provider Card */
.provider-card {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.provider-card-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #202020 0%, #151515 100%);
  border: 1px solid rgba(240, 194, 75, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(240, 194, 75, 0.15) inset,
    0 6px 14px rgba(0, 0, 0, 0.5);
}

.provider-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(240, 194, 75, 0.45) 0%,
    rgba(212, 175, 55, 0.25) 50%,
    rgba(240, 194, 75, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.provider-card-inner:hover {
  background: linear-gradient(135deg, #262626 0%, #1b1b1b 100%);
  border-color: rgba(240, 194, 75, 0.6);
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(240, 194, 75, 0.2),
    0 0 30px rgba(240, 194, 75, 0.1);
}

.provider-card-inner:hover::before {
  opacity: 1;
}

.provider-card-inner img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.provider-card-inner:hover img {
  filter: brightness(1.1);
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
  .providers-section {
    padding: 15px 0;
  }

  .providers-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .providers-panel::before {
    border-radius: 12px;
  }

  .providers-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .provider-card {
    aspect-ratio: 16 / 10;
  }

  .provider-card-inner {
    padding: 8px;
    border-radius: 8px;
  }

  .providers-total-count {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}

/* Small mobile override: force 3 columns on narrow screens so grid shows 3 providers per row */
@media (max-width: 480px) {
  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
  }

  /* Make provider cards more square on very small screens */
  .provider-card {
    aspect-ratio: 1 / 1;
  }

  .provider-card-inner {
    padding: 6px;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .providers-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}
