/* game-scroller.css (نسخه نهایی رفع تداخل و بزرگ‌نمایی کارت‌ها) */

.game-scroller-wrapper {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  direction: rtl;
  /* متغیرهای دارک مود */
  --gs-card-bg: #1e1e1e;
  --gs-card-border-color: rgba(255,255,255,0.08); 
  --gs-card-border-size: 1px; 
  --gs-card-radius: 10px;
  --gs-title-color: #f1f1f1;
  --gs-center-scale: 1.04; 
  --gs-space-between: 16px; 
  margin-bottom: 20px; 
}

/* عنوان بلاک */
.game-scroller-wrapper .gs-block-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--gs-title-color);
  padding: 0 20px; 
}

/* Swiper Container */
.game-scroller-wrapper .swiper-container {
  padding: 0 80px 10px 80px; 
  overflow: visible; 
  z-index: 5; 
  position: relative; 
}

@media (max-width: 1024px) {
  .game-scroller-wrapper .swiper-container { padding: 0 60px 8px 60px; }
}
@media (max-width: 768px) {
  .game-scroller-wrapper .swiper-container { padding: 0 40px 8px 40px; }
}
@media (max-width: 480px) {
    .game-scroller-wrapper .swiper-container { padding: 0 20px 8px 20px; }
}

.game-scroller-wrapper .swiper-wrapper {
  align-items: stretch; 
  display: flex;
}

/* *** اصلاح بحرانی: تنظیم عرض و حداقل ارتفاع اسلایدها برای جلوگیری از پنهان شدن *** */
.game-scroller-wrapper .swiper-slide {
  transition: all 400ms cubic-bezier(0.25, 1, 0.3, 1); 
  opacity: 0.6; 
  filter: brightness(0.7);
  transform: translateY(0) scale(1);
  height: auto !important; 
  width: auto !important; /* رفع تداخل عرض */
  min-height: 190px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0; 
}

/* Active Slide (Center) Effect */
.game-scroller-wrapper .swiper-slide-active {
  opacity: 1;
  filter: brightness(1.1);
  transform: translateY(-4px) scale(var(--gs-center-scale)); 
  z-index: 10;
}

/* Card Container */
.game-scroller-wrapper .gs-card {
  display: flex;
  flex-direction: column;
  background: var(--gs-card-bg);
  border: var(--gs-card-border-size) solid var(--gs-card-border-color);
  border-radius: var(--gs-card-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* سایه ملایم‌تر */
  position: relative;
  height: 100%;
  flex: 1;
  width: 100%;
}

.game-scroller-wrapper .gs-card a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* کاور تصویر */
.game-scroller-wrapper .gs-cover {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* برچسب جدید (باکس قرمز) */
.game-scroller-wrapper .gs-badge-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4757; 
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255,71,87,0.4);
  z-index: 5;
}

.game-scroller-wrapper .gs-cover-figure {
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  padding-top: 75%; 
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.game-scroller-wrapper .gs-card[data-image-source="1-1"] .gs-cover-figure { padding-top: 100%; } 
.game-scroller-wrapper .gs-card[data-image-source="16-9"] .gs-cover-figure { padding-top: 56.25%; } 
.game-scroller-wrapper .gs-card[data-image-source="4-3"] .gs-cover-figure { padding-top: 75%; } 

.game-scroller-wrapper .gs-cover-figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* عنوان */
.game-scroller-wrapper .gs-title {
  padding: 8px 12px 0px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gs-title-color);
  text-align: right; 
  line-height: 1.4;
  white-space: normal; 
  overflow: visible;
  text-overflow: initial;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 36px;
}

.game-scroller-wrapper .gs-content {
  padding: 0 12px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  flex-grow: 1;
}

/* دسته‌بندی (وسط‌چین شده) */
.game-scroller-wrapper .gs-categories {
  font-size: 10px;
  color: #b0b0b0;
  font-weight: 600;
  background: #2c2c2c; 
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  align-self: center;
}

/* تاریخ و بازدیدها در یک ردیف */
.game-scroller-wrapper .gs-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0px;
  direction: rtl;
}

.game-scroller-wrapper .gs-date {
  font-size: 10px;
  color: #888888;
}

.game-scroller-wrapper .gs-views {
  font-size: 10px;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* استایل آیکون وردپرس */
.game-scroller-wrapper .gs-views .dashicons {
  color: #888888;
  font-size: 12px;
  width: auto;
  height: auto;
}

.game-scroller-wrapper .gs-excerpt {
  font-size: 11px;
  color: #9a9a9a;
  text-align: right;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* --- Pagination (نوارهای میله‌ای) --- */
.game-scroller-wrapper .gs-bing-pagination {
  width: 100%;
  max-width: 400px;
  height: 6px;
  margin: 25px auto 0 auto; 
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 6px;
  position: relative;
  background: transparent;
  box-sizing: border-box;
  direction: ltr; 
}

.game-scroller-wrapper .gs-bing-pagination .swiper-pagination-bullet {
  background: #444444; 
  width: 12px;
  height: 4px;
  opacity: 1;
  margin: 0 !important; 
  transition: all .3s ease-in-out;
  flex-shrink: 0;
  border-radius: 50px;
}

.game-scroller-wrapper .gs-bing-pagination .swiper-pagination-bullet-active {
  background: #ffffff; 
  width: 24px;
  height: 4px;
  border-radius: 50px;
}