/**
 * Game Browser Widget Styles
 */

.gbw-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  /* background: #1a1a1a; */
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  box-sizing: border-box;
}

.gbw-container * {
  box-sizing: border-box;
}

/* Category Buttons */
.gbw-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--Orange-orange-500, #fba919);
  background: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.gbw-category-btn {
  padding: 12px 24px;
  color: #646464;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  order: 1px solid var(--Orange-orange-500, #fba919);
  background: #fff6f4;
}

.gbw-category-btn:hover {
  background: #444444;
  border-color: #555555;
  transform: translateY(-2px);
}

.gbw-category-btn.gbw-active {
  border: 1px solid var(--Orange-orange-500, #fba919);
  background: var(--Orange-orange-500, #fba919);
  color: #1b1b1b;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Slider Wrapper */
.gbw-slider-wrapper {
  /* padding: 40px 20px; */
  padding: 0 !important;
  background: #1a1a1a;
  margin-top: 70px;
}

.gbw-swiper {
  width: 100%;
  padding-bottom: 50px;
}

.gbw-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  height: 300px;
}

.gbw-slide {
  transition: width 0.3s ease, height 0.3s ease;
  overflow: hidden;
  height: 340px;
}

.gbw-slide-active {
  width: 620px !important;
}

.gbw-slide-inactive {
  width: 290px !important;
}

.gbw-slide-content {
  width: 100%;
  height: 100%;
  text-align: center;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gbw-slide-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.gbw-slide-image {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.gbw-slide-title {
  padding: 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: #2a2a2a;
}

/* Swiper Navigation */
.gbw-swiper .swiper-pagination {
  bottom: 10px;
}

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

.gbw-swiper .swiper-pagination-bullet-active {
  background: #ff6b35;
}

.gbw-swiper .swiper-button-prev,
.gbw-swiper .swiper-button-next {
  color: #ff6b35;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gbw-swiper .swiper-button-prev:after,
.gbw-swiper .swiper-button-next:after {
  font-size: 24px;
  font-weight: bold;
}

.gbw-swiper .swiper-button-prev:hover,
.gbw-swiper .swiper-button-next:hover {
  color: #ffffff;
  background: #ff6b35;
  border-radius: 50%;
}

/* Custom Navigation Icons */
.gbw-nav-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 1;
  z-index: 10;
  position: relative;
}

.gbw-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gbw-nav-icon i {
  font-size: 24px;
  line-height: 1;
}

.gbw-swiper .swiper-button-prev .gbw-nav-icon,
.gbw-swiper .swiper-button-next .gbw-nav-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide default Swiper arrows when custom icons are present */
.gbw-swiper .swiper-button-prev .gbw-nav-icon ~ *,
.gbw-swiper .swiper-button-next .gbw-nav-icon ~ * {
  display: none;
}

.gbw-swiper .swiper-button-prev:has(.gbw-nav-icon):after,
.gbw-swiper .swiper-button-next:has(.gbw-nav-icon):after {
  display: none;
}

/* Fallback for browsers without :has() support */
.gbw-swiper .swiper-button-prev.gbw-has-custom-icon:after,
.gbw-swiper .swiper-button-next.gbw-has-custom-icon:after {
  display: none;
}

/* Game Details */
.gbw-details {
  padding: 100px 80px;
  background: #0f1624;
  border-top: 2px solid #3a3a3a;
}

.gbw-details-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column layout for details */
.gbw-details-wrapper {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.gbw-details-features {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gbw-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
}

.gbw-feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.gbw-feature-item span {
  flex: 1;
}

.gbw-details-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #ffffff;
  line-height: 1.2;
}

.gbw-details-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin: 0 0 30px 0;
}

/* Downloads Section */
.gbw-downloads-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.gbw-downloads-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.gbw-downloads-list {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.gbw-download-item {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
}

.gbw-download-item:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.gbw-download-image {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.gbw-details-meta {
  margin: 30px 0;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 8px;
}

.gbw-meta-item {
  padding: 10px 0;
  border-bottom: 1px solid #3a3a3a;
  font-size: 14px;
  color: #cccccc;
}

.gbw-meta-item:last-child {
  border-bottom: none;
}

.gbw-meta-item strong {
  color: #ff6b35;
  margin-right: 10px;
}

/* Store Buttons */
.gbw-store-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gbw-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #333333;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #444444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gbw-store-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.gbw-android-btn {
  background: #3ddc84;
  border-color: #3ddc84;
  color: #000000;
}

.gbw-android-btn:hover {
  background: #2ab870;
  border-color: #2ab870;
  color: #000000;
}

.gbw-ios-btn {
  background: #007aff;
  border-color: #007aff;
  color: #ffffff;
}

.gbw-ios-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .gbw-category-buttons {
    max-width: 100%;
    padding: 15px;
  }
  
  .gbw-slide-active {
    width: 100% !important;
    max-width: 500px !important;
  }
  
  .gbw-slide-inactive {
    width: 200px !important;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .gbw-container {
    padding: 0;
  }

  .gbw-category-buttons {
    padding: 15px;
    gap: 8px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }

  .gbw-category-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .gbw-slider-wrapper {
    padding: 0 !important;
    margin-top: 20px !important;
    background: #1a1a1a;
  }

  .gbw-swiper {
    padding-bottom: 40px;
  }

  .gbw-slide {
    height: auto !important;
    min-height: 250px;
  }

  .gbw-slide-active {
    width: 100% !important;
    max-width: 100% !important;
  }

  .gbw-slide-inactive {
    width: 80% !important;
    opacity: 0.6;
  }

  .gbw-slide-content {
    height: 100%;
    min-height: 250px;
  }

  .gbw-slide-image {
    height: 200px;
    min-height: 200px;
  }

  .gbw-slide-title {
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .gbw-swiper .swiper-button-prev,
  .gbw-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gbw-swiper .swiper-button-prev:after,
  .gbw-swiper .swiper-button-next:after {
    font-size: 20px;
  }

  .gbw-details {
    padding: 30px 15px !important;
    background: #0f1624;
  }

  .gbw-details-content {
    max-width: 100%;
  }

  .gbw-details-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .gbw-details-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .gbw-details-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .gbw-downloads-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
  }

  .gbw-downloads-label {
    font-size: 14px;
    margin-bottom: 0;
  }

  .gbw-downloads-list {
    flex-wrap: wrap;
    gap: 10px;
  }

  .gbw-download-image {
    height: 40px;
    max-width: 120px;
  }

  .gbw-store-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .gbw-store-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    text-align: center;
  }

  .gbw-feature-item {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .gbw-feature-item svg {
    width: 20px;
    height: 20px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .gbw-category-buttons {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 12px;
    gap: 6px;
  }

  .gbw-category-btn {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 36px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
  }

  .gbw-slide {
    min-height: 220px;
  }

  .gbw-slide-image {
    height: 180px;
    min-height: 180px;
  }

  .gbw-slide-title {
    padding: 10px;
    font-size: 13px;
    word-break: break-word;
  }

  .gbw-details {
    padding: 20px 12px !important;
  }

  .gbw-details-title {
    font-size: 20px;
    word-break: break-word;
  }

  .gbw-details-description {
    font-size: 13px;
    word-break: break-word;
  }

  .gbw-feature-item {
    font-size: 12px;
    word-break: break-word;
  }

  .gbw-feature-item span {
    word-break: break-word;
  }

  .gbw-store-btn {
    padding: 10px 16px;
    font-size: 12px;
    word-break: break-word;
  }

  .gbw-swiper .swiper-button-prev,
  .gbw-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .gbw-swiper .swiper-button-prev:after,
  .gbw-swiper .swiper-button-next:after {
    font-size: 18px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .gbw-slide-image {
    height: 150px;
    min-height: 150px;
  }

  .gbw-slide {
    min-height: 200px;
  }
}
