/* Game Category Card */
.game-category-card {
  border-radius: 16px;
  background: var(--background-component-default);
  box-shadow: 0px 0.5px 1px 0px var(--shadows-drop-3);
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0 16px 16px;
}

.game-category-preview {
  padding: 4px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 4px;
  padding-right: 4px;
}

.game-category-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 16px;
}

.game-category-content {
  padding: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px;
  margin-top: 8px;
}

.game-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: -44px;
}

.category-divider {
  height: 1px;
  background: #21252912;
}

.game-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-category-promo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-top: 8px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  color: var(--text-primary);
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.game-category-promo-btn:hover {
  background: #f8f9fa;
}

.game-category-promo-btn svg {
  width: 16px;
  height: 16px;
}

.game-category-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-category-title {
  font-family: var(--family-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--text-primary);
  margin: 0;
}

.game-category-description {
  font-family: var(--family-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-secondary);
  margin: 0;
}

/* Shop Banner for Category */
.category-shop-banner {
  border-radius: 12px;
  background: rgba(240, 242, 245, 0.5);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.0001) 0%,
      rgba(13, 110, 253, 0.04) 100%
    ),
    rgba(240, 242, 245, 0.5);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 16px 16px 16px;
}

.category-shop-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 24px 28px;
  background: transparent;
}

.category-shop-title {
  font-family: var(--family-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0;
}

.category-shop-subtitle {
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-primary);
  margin: 0;
}

/* Shop banner in game category card */
.game-category-card .shop-banner {
  margin: 0 auto 20px;
}

/* Dark mode styles */
html.dark .game-category-card {
  background: var(--background-component-default);
}

html.dark .game-category-promo-btn {
  background: #ffffff;
  border-color: #e9ecef;
  color: #212529;
}

html.dark .game-category-promo-btn:hover {
  background: #f8f9fa;
}

html.dark .category-shop-banner {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(13, 110, 253, 0.05) 100%
    ),
    rgba(33, 37, 41, 0.5);
}

html.dark .category-divider {
  background: #FFFFFF14;
}

/* Posts section title */
.posts-section-title {
  font-family: var(--family-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

/* Good Pack Group Wrapper */
.good-packgroup-wrapper {
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.0001) 0%,
      rgba(13, 110, 253, 0.04) 100%
    ),
    rgba(240, 242, 245, 0.5);
  padding: 16px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

html.dark .good-packgroup-wrapper {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(13, 110, 253, 0.05) 100%
    ),
    rgba(33, 37, 41, 0.5);
}

/* Good Header */
.good-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.good-header-cover {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--background-component-default);
}

.good-header-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.good-header-data {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.good-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  color: var(--text-primary);
  text-decoration: none;
}

.good-header-title svg {
  width: 17px;
  height: 17px;
  color: var(--text-primary);
}

.good-header-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.good-rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  height: 21px;
}

html.dark .good-rating-stars {
  background: var(--background-component-default);
}

.good-rating-value {
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  color: var(--text-primary);
}

.good-rating-star {
  width: 10px;
  height: 10px;
  color: #ffc107;
}

.good-rating-reviews {
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  color: var(--text-secondary);
}

/* Good Pack Groups (Tabs) */
.good-pack-groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.good-pack-groups::-webkit-scrollbar {
  display: none;
}

.good-pack-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  background: transparent;
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.good-pack-tab:hover {
  background: var(--background-component-hover);
}

.good-pack-tab.active {
  background: rgba(211, 51, 132, 0.03);
  border-color: #d63384;
  color: #d63384;
}

/* Pack Items Wrapper */
.pack-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  max-height: 214px;
  overflow: hidden;
}

/* Pack Item */
.pack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--background-component-default);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  gap: 8px;
  transition: all 0.2s ease;
}

.pack-item:hover {
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.pack-item-data {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pack-cover {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--background-component-default);
}

.pack-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.pack-title {
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pack-prices {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pack-price {
  font-family: var(--family-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #dc3545;
}

.pack-price-old {
  font-family: var(--family-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  padding: 0 8px;
  border-radius: 6px;
  text-decoration: line-through;
}

.pack-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pack-cart-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--states-primary-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pack-cart-icon:hover {
  transform: scale(1.1);
}

.pack-cart-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.pack-icon-info {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d63384;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-icon-info svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.pack-icon-warning {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fd7e14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-icon-warning svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

/* Fade Gradient and Button */
.pack-wrapper-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--background-component-default) 44%
  );
  pointer-events: none;
}

html.dark .pack-wrapper-fade {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--background-page) 44%
  );
}

.pack-wrapper-button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.pack-wrapper-button .btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 14px 6px 10px;
}

.pack-wrapper-button .btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .game-category-card {
    padding: 0 12px;
    overflow: hidden;
  }

  .game-category-preview {
    padding: 4px;
  }

  .game-category-preview {
    margin-left: -12px;
    margin-right: -12px;
  }

  .game-category-banner {
    height: 160px;
    border-radius: 12px;
  }

  .game-category-header {
    padding: 0 4px;
    margin-top: 0;
  }

  .game-category-icon {
    width: 56px;
    height: 56px;
    margin-top: -28px;
  }

  .game-category-content {
    padding: 16px 4px;
    padding-bottom: 16px;
  }

  .game-category-title {
    font-size: 20px;
    line-height: 26px;
  }

  .game-category-description {
    font-size: 14px;
    line-height: 20px;
  }

  .category-shop-header {
    padding: 0 4px !important;
    margin-bottom: 12px !important;
  }

  .category-shop-title {
    font-size: 15px;
    line-height: 22px;
  }

  .category-shop-subtitle {
    font-size: 13px;
    line-height: 18px;
  }

  /* Shop banner inside game category */
  .game-category-card .shop-banner {
    margin: 0 0 16px 0 !important;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .game-category-card .shop-tabs {
    margin: 0 -12px;
    padding: 0 12px;
    width: calc(100% + 24px);
  }

  .game-category-card .shop-items-wrapper {
    width: 100%;
  }

  .game-category-card .shop-items {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .game-category-card .shop-button-wrapper {
    position: relative;
    bottom: auto;
    margin-top: 8px;
  }

  .game-category-card .divider {
    margin: 0 0 16px 0 !important;
  }
}

@media (max-width: 576px) {
  .game-category-banner {
    height: 140px;
  }

  .game-category-icon {
    width: 52px;
    height: 52px;
    margin-top: -26px;
  }

  .game-category-header {
    padding: 0;
  }

  .game-category-promo-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .game-category-title {
    font-size: 18px;
    line-height: 24px;
  }

  .game-category-description {
    font-size: 13px;
    line-height: 19px;
  }

  .game-category-content {
    padding: 12px 0;
  }

  .category-shop-header {
    padding: 0 !important;
  }

  .category-shop-title {
    font-size: 14px;
    line-height: 20px;
  }

  .category-shop-subtitle {
    font-size: 12px;
    line-height: 17px;
  }

  .good-packgroup-wrapper {
    padding: 12px;
    gap: 12px;
  }

  .good-header {
    gap: 12px;
  }

  .good-header-cover {
    width: 48px;
    height: 48px;
  }

  .good-pack-groups {
    gap: 6px;
  }

  .good-pack-tab {
    padding: 6px 12px;
    font-size: 13px;
  }

  .pack-item {
    padding: 6px 8px;
  }

  .pack-cover {
    width: 44px;
    height: 44px;
  }

  .pack-title {
    font-size: 13px;
  }

  .pack-price {
    font-size: 14px;
  }
}
