/* ----------------- Game Index CSS ------------------- */
.games-container {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 20px;
}

/* Provider Container Styles */
.provider-container {
  margin-bottom: 20px;
  padding: 15px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.provider-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.provider-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.provider-btn:hover {
  background: #f45b0f;
  color: white;
  border-color: #f45b0f;
  transform: translateY(-1px);
}

.provider-btn.active {
  background: #f45b0f;
  color: white;
  border-color: #f45b0f;
  box-shadow: 0 2px 8px rgba(244, 91, 15, 0.3);
}

.provider-icon {
  font-size: 14px;
  display: inline-block;
}

.provider-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
}

.provider-icon-fallback {
  font-size: 14px;
  display: inline-block;
}

.provider-text {
  font-size: 13px;
  font-weight: 500;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.filter-buttons {
  display: flex;
  gap: 15px;
}

.search-sort-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-container {
  position: relative;
}

.search-input {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  width: 250px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #f45b0f;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
}

.sort-dropdown {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.sort-dropdown:focus {
  border-color: #f45b0f;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #f45b0f;
  background-color: transparent;
  color: #f45b0f;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #f45b0f;
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.product-item {
  position: relative;
  text-align: center;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.product-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.product-item:hover .product-overlay {
  opacity: 1;
}

.play-btn {
  background-color: #f45b0f;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  position: relative;
  bottom: 10%;
}

.play-btn:hover {
  background-color: #d34d0a;
  transform: scale(1.05);
}

.play-btn:before {
  content: "▶";
  margin-right: 8px;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .provider-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .provider-text {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .provider-container {
    padding: 12px 15px;
  }
  
  .provider-buttons {
    gap: 6px;
  }
  
  .provider-btn {
    font-size: 11px;
    padding: 4px 8px;
    gap: 4px;
  }
  
  .provider-text {
    font-size: 11px;
  }
  
  .provider-icon,
  .provider-icon-fallback {
    font-size: 12px;
  }
  
  .provider-icon-img {
    width: 14px;
    height: 14px;
  }

  .top-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filter-buttons {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .search-sort-controls {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-input {
    width: 200px;
  }

  .sort-dropdown {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .provider-container {
    padding: 10px 12px;
  }
  
  .provider-buttons {
    gap: 4px;
  }
  
  .provider-btn {
    font-size: 10px;
    padding: 3px 6px;
    gap: 3px;
    border-radius: 15px;
  }
  
  .provider-text {
    font-size: 10px;
  }
  
  .provider-icon,
  .provider-icon-fallback {
    font-size: 11px;
  }
  
  .provider-icon-img {
    width: 12px;
    height: 12px;
  }
}

/* ---------- End of Game Index CSS ------------ */

/* ----------------- Game Index CSS ------------------- */
.promo-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  min-height: 200px;
}

.promo-image {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-title {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
  text-align: left;
}

.promo-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
  text-align: left;
}

.promo-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #fd7e14;
  color: white;
}

.btn-secondary:hover {
  background-color: #e8690b;
}

.countdown {
  margin-left: auto;
  text-align: center;
  color: #666;
  transition: all 0.3s ease;
}

.countdown.urgent {
  color: #ff9800;
}

.countdown.urgent .time-number {
  color: #ff9800;
}

.countdown.critical {
  color: #f44336;
  animation: pulse 1s infinite;
}

.countdown.critical .time-number {
  color: #f44336;
}

.countdown.expired {
  color: #999;
  opacity: 0.7;
}

.countdown.expired .countdown-label {
  color: #999;
  font-style: italic;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.countdown-label {
  font-size: 14px;
  margin-bottom: 10px;
}

.countdown-time {
  display: flex;
  gap: 10px;
  align-items: center;
}

.time-unit {
  text-align: center;
}

.time-number {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  display: block;
}

.time-label {
  font-size: 12px;
  color: #999;
}

.time-separator {
  font-size: 20px;
  color: #999;
}

.promo-image-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-image-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.promo-image-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.promo-fifa .promo-image-content {
  justify-content: flex-start;
  padding-top: 40px;
}

.promo-fifa .promo-image-title {
  font-size: 32px;
  line-height: 1.2;
}

.promo-fifa .promo-image-subtitle {
  font-size: 20px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .promo-card {
    flex-direction: column;
    min-height: auto;
  }

  .promo-image {
    flex: none;
    height: 200px;
  }

  .promo-content {
    padding: 20px;
  }

  .promo-title {
    font-size: 20px;
  }

  .countdown-time {
    flex-direction: column;
    gap: 5px;
  }

  .time-unit {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .time-number {
    font-size: 20px;
  }
}

/* ---------- End of Game Index CSS ------------ */

/* Promotion Modal Styles */
.promotion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  position: relative;
  padding: 0;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-banner {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin: 20px;
  margin-bottom: 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  width: calc(100% - 40px);
}

.modal-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-banner-image:hover {
  transform: scale(1.05);
}

.modal-body {
  padding: 30px 40px;
  overflow-y: auto;
  max-height: calc(90vh - 350px);
}

.modal-promotion-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.3;
}

.modal-promotion-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-promotion-details {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.modal-promotion-details h1,
.modal-promotion-details h2,
.modal-promotion-details h3,
.modal-promotion-details h4,
.modal-promotion-details h5,
.modal-promotion-details h6 {
  color: #2c3e50;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.modal-promotion-details p {
  margin-bottom: 15px;
}

.modal-promotion-details ul,
.modal-promotion-details ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.modal-promotion-details li {
  margin-bottom: 8px;
}

.modal-promotion-details strong {
  color: #2c3e50;
}

.modal-promotion-details a {
  color: #007bff;
  text-decoration: none;
}

.modal-promotion-details a:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-footer .btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.modal-footer .btn-primary {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  color: white;
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(45deg, #3b8bfe, #00d4fe);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.modal-footer .btn-secondary {
  background: #6c757d;
  color: white;
}

.modal-footer .btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .promotion-modal {
    padding: 10px;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 15px;
  }

  .modal-banner {
    margin: 15px;
    width: calc(100% - 30px);
    height: 200px;
  }

  .modal-body {
    padding: 20px 25px;
    max-height: calc(95vh - 320px);
  }

  .modal-promotion-title {
    font-size: 24px;
  }

  .modal-footer {
    padding: 15px 25px 20px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- End of Promotion Modal CSS ------------ */

/* ----- Hot & New Tag ----- */
.hot-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: red;
  color: white;
  font-size: 14px;
  width: 60px;
  height: 60px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px;
  font-weight: bold;
  border-radius: var(--size-thumb-radious) 0 0 0;
}

.hot-tag span {
  transform: rotate(-45deg);
  padding: 0px 20px 10px 5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.new-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: green;
  color: white;
  font-size: 14px;
  width: 60px;
  height: 60px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px;
  font-weight: bold;
  border-radius: var(--size-thumb-radious) 0 0 0;
}

.new-tag span {
  transform: rotate(-45deg);
  padding: 0px 20px 10px 5px;

  .hot-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: red;
    color: white;
    font-size: 14px;
    width: 60px;
    height: 60px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3px;
    font-weight: bold;
    border-radius: var(--size-thumb-radious) 0 0 0;
  }

  .hot-tag span {
    transform: rotate(-45deg);
    padding: 0px 20px 10px 5px;
  }

  .new-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: green;
    color: white;
    font-size: 14px;
    width: 60px;
    height: 60px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3px;
    font-weight: bold;
    border-radius: var(--size-thumb-radious) 0 0 0;
  }

  .new-tag span {
    transform: rotate(-45deg);
    padding: 0px 20px 10px 5px;
    white-space: nowrap;
    text-transform: uppercase;
  }
}

/* ----- End of Hot & New Tag ----- */