/* ══════════════════════════════════════
   CHARACTERS PAGE – بهینه و یکدست
══════════════════════════════════════ */

.characters-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 (بدون حاشیه) ── */
.characters-hero {
    position: relative;
    padding: 48px 0 40px;
    margin-bottom: 56px;
}
.characters-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /*max-width: 700px;*/
}
.characters-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.characters-hero-desc {
    font-weight: 300;
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;   /* اضافه کنید */
}

/* ═══ کارت‌های شخصیت ═══ */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.character-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7),
                0 0 30px var(--char-color);
}

.character-card-inner {
    display: flex;
    flex-direction: column;
    padding: 20px 16px 24px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* تصویر بزرگ و بدون کادر */
.character-img-wrap {
    width: 100%;
    height: 300px;                /* ← کمی بلندتر */
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;      /* شفاف */
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* ← کل تصویر بدون برش */
    object-position: center bottom; /* ← بال‌ها کامل دیده شوند */
    transition: transform 0.4s ease;
}

.character-card:hover .character-img-wrap img {
    transform: scale(1.06);
}

/* اطلاعات */
.character-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
}

.character-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: color 0.3s;
}

.character-card:hover .character-name {
    color: var(--char-color);
}

.character-game {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.character-personality {
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .characters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .character-img-wrap {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .characters-grid {
        grid-template-columns: 1fr;
    }
    .character-img-wrap {
        height: 380px;              /* بزرگتر در موبایل */
    }
    .characters-hero {
        padding: 32px 0 32px;
    }
}