/* ══════════════════════════════════════
   GAMES DOWNLOAD PAGE – اصلاح‌شده
══════════════════════════════════════ */

.games-page-section {
    padding: calc(var(--header-height) + 48px) 0 96px;
}

/* Breadcrumb */
.breadcrumb-nav { margin-bottom: 24px; }
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
}
.breadcrumb-item { font-size: var(--fs-sm); font-weight: 300; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--color-blue); }
.breadcrumb-item.active span { color: var(--color-blue); font-weight: 500; }
.breadcrumb-separator { color: var(--text-muted); opacity: 0.5; user-select: none; }

/* Hero */
.games-hero {
    position: relative;
    padding: 48px 0 40px;
    margin-bottom: 56px;
}
.games-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.games-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.games-hero-desc {
    font-weight: 300;
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;
}

/* Grid بازی‌ها */
.games-download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* کارت بازی */
.game-download-card {
    background: rgba(26, 27, 31, 0.75);   /* خاکستری تیره (جایگزین سورمه‌ای) */
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-download-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 25px 45px rgba(0,0,0,0.6), 0 0 25px rgba(13,144,205,0.2);
}

.game-download-card-inner {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* هدر کارت (آیکون + عنوان) */
.game-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.game-title-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-white);
    line-height: 1.3;
    margin: 0;
}

/* بج ژانر (قرمز) */
.game-genre {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--color-red-light);          /* متن قرمز */
    background: var(--color-red-subtle);    /* پس‌زمینه قرمز کمرنگ */
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    width: fit-content;
}

/* متای بازی */
.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.star { color: var(--text-muted); }
.star--full { color: var(--color-gold); }
.star--empty { color: var(--text-muted); }
.star--half {
    background: linear-gradient(to right, var(--color-gold) 55%, var(--text-muted) 55%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.game-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

/* توضیحات */
.game-description {
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* برچسب "دانلود از طریق" */
.download-label {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* دکمه‌های دانلود */
.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.dl-btn:hover {
    transform: translateY(-2px);
}

.dl-btn-bazaar:hover {
    background: rgba(46,204,113,0.2);
    border-color: #2ecc71;
    box-shadow: 0 0 12px rgba(46,204,113,0.4);
}

.dl-btn-myket:hover {
    background: rgba(52,152,219,0.2);
    border-color: #3498db;
    box-shadow: 0 0 12px rgba(52,152,219,0.4);
}

.dl-btn-googleplay:hover {
    background: rgba(231,76,60,0.2);
    border-color: #e74c3c;
    box-shadow: 0 0 12px rgba(231,76,60,0.4);
}

.dl-btn-direct:hover {
    background: rgba(155,89,182,0.2);
    border-color: #9b59b6;
    box-shadow: 0 0 12px rgba(155,89,182,0.4);
}

/* آیکون داخل دکمه */
.dl-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .games-download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .games-download-grid {
        grid-template-columns: 1fr;
    }
    .game-icon {
        width: 70px;
        height: 70px;
    }
    .download-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        grid-template-columns: 1fr;
    }
}

/* دکمه اطلاعات بیشتر */
.game-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--color-blue);
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s, transform 0.2s ease, text-shadow 0.2s ease, background 0.2s ease;
    margin-top: 4px;
    border-radius: var(--radius-sm); /* برای پس‌زمینهٔ شیشه‌ای */
    position: relative;
}

.game-info-btn:hover {
    color: var(--color-blue);
    transform: scale(1.03) translateY(-1px);   /* بزرگ‌شدن ملایم */
    text-shadow: 0 0 12px rgba(13, 144, 205, 0.6); /* درخشش آبی پشت متن */
    background: rgba(13, 144, 205, 0.08);      /* پس‌زمینهٔ شیشه‌ای آبی */
    border-color: var(--color-blue);           /* تغییر رنگ خط بالایی */
}

.game-info-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.game-info-btn:hover svg {
    transform: rotate(10deg);                  /* چرخش آیکون برای پویایی */
}

.game-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);   /* رنگ کم‌رنگ‌تر */
    display: block;
    margin-top: -4px;           /* کمی نزدیک‌تر به اسم بازی */
}

/* ===== بج در حال ساخت ===== */
.game-badge-coming {
    position: absolute;
    top: 12px;
    left: 12px;          /* ← فقط این خط تغییر کرده (از راست به چپ) */
    padding: 4px 12px;   /* ← همان پدینگ کوچک قبلی */
    background: linear-gradient(135deg, #FFD200, #F0A500);
    color: #1a1a1a;
    font-family: var(--font-body, 'IranSans', sans-serif);
    font-weight: 700;
    font-size: 0.7rem;   /* ← همان فونت کوچک قبلی */
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== بج منتشر شده (سبز) ===== */
.game-badge-published {
    position: absolute;
    top: 12px;
    left: 12px;          /* ← چپ بالا */
    padding: 4px 12px;   /* ← همان اندازه کوچک */
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-family: var(--font-body, 'IranSans', sans-serif);
    font-weight: 700;
    font-size: 0.7rem;   /* ← همان فونت کوچک */
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== کانتینر بج ===== */
.game-badge-wrapper {
    display: block;
    margin-bottom: 12px;
    text-align: right; /* راست‌چین برای RTL */
}

/* ===== بج در حال ساخت ===== */
.game-badge-coming {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #FFD200, #F0A500);
    color: #1a1a1a;
    font-family: var(--font-body, 'IranSans', sans-serif);
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== بج منتشر شده (سبز) ===== */
.game-badge-published {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-family: var(--font-body, 'IranSans', sans-serif);
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== عنوان بازی در موبایل ===== */
@media (max-width: 767px) {
    .game-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.2rem;
    }
}


