﻿/* ============================================================ */
/* wwwroot/css/biography-section.css                             */
/* بخش زندگینامه — هماهنگ با فونت‌های سایت Awards              */
/* ============================================================ */

.biography-section {
    background: #0a1120;
    padding: 50px 24px;
}

.biography-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

/* ============================================================ */
/* هدر سمت راست (ستون کنار)                                     */
/* ============================================================ */
.biography-header {
    padding-top: 6px;
    position: sticky;
    top: 100px;
}

/* ✅ تیتر — هماهنگ با BTitrBd سایت Awards */
.biography-title {
    font-family: 'BTitrBd', 'BNazanin', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #f0f2f5;
    margin: 0 0 10px 0;
    line-height: 1.4;
    position: relative;
    padding-right: 12px;
}

    .biography-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 70%;
        background: var(--gold-light, #f1cb65);
        border-radius: 2px;
    }

/* ✅ متن — هماهنگ با BNazanin سایت Awards */
.biography-subtitle {
    font-family: 'BNazanin', Tahoma, 'Vazirmatn', sans-serif;
    font-size: 13px;
    color: #8a94a6;
    line-height: 1.9;
    margin: 0 0 16px 0;
}

.biography-link {
    font-family: 'BNazanin', Tahoma, 'Vazirmatn', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-light, #f1cb65);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .biography-link:hover {
        color: #ffffff;
        gap: 10px;
    }

    .biography-link svg {
        width: 14px;
        height: 14px;
    }

/* ============================================================ */
/* اسکرول افقی                                                   */
/* ============================================================ */
.h-scroll-wrapper {
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.h-scroll-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

    .h-scroll-track::-webkit-scrollbar {
        display: none;
    }

/* ============================================================ */
/* کارت نویسنده                                                  */
/* ============================================================ */
.author-card {
    flex: 0 0 auto;
    width: 140px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .author-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    }

.author-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* آواتار دایره‌ای */
.author-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid #f1f5f9;
    background: #f8f9fb;
    filter: grayscale(100%);
    transition: filter 0.4s ease, border-color 0.4s ease;
}

.author-card:hover .author-avatar {
    filter: grayscale(0%);
    border-color: var(--gold-light, #f1cb65);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ✅ نام فارسی — هماهنگ با تیترهای سایت Awards (BTitrBd) */
.author-name {
    font-family: 'BTitrBd', 'BNazanin', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 3px 0;
    color: #1a2233;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

/* ✅ نام انگلیسی — هماهنگ با متن معمولی سایت Awards (BNazanin) */
.author-name-en {
    font-family: 'BNazanin', Tahoma, 'Vazirmatn', sans-serif;
    font-size: 12px;
    color: #718096;
    direction: ltr;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 2px;
}

/* ✅ نام مستعار — هماهنگ با متن معمولی سایت Awards (BNazanin) */
.author-nickname {
    font-family: 'BNazanin', Tahoma, 'Vazirmatn', sans-serif;
    font-size: 12px;
    color: #1a2233;
    font-style: italic;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================ */
/* دکمه‌های اسکرول                                              */
/* ============================================================ */
.biography-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 70%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
}

.h-scroll-wrapper:hover .biography-scroll-btn {
    opacity: 1;
}

.biography-scroll-btn:hover {
    background: var(--gold-light, #f1cb65);
    border-color: var(--gold-light, #f1cb65);
    color: #0a1120;
    transform: translateY(-50%) scale(1.05);
}

.biography-scroll-btn i {
    font-size: 1.2rem;
    font-weight: bold;
}

.biography-scroll-right {
    right: 4px;
}

.biography-scroll-left {
    left: 4px;
}

/* ============================================================ */
/* حالت Fallback                                                 */
/* ============================================================ */
.biography-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: linear-gradient(145deg, #111c2c, #080f1b);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 40px 24px;
}

.biography-fallback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.biography-fallback-icon {
    width: 48px;
    height: 48px;
    color: var(--gold-light, #f1cb65);
    opacity: 0.7;
}

/* ✅ متن fallback — هماهنگ با تیترهای سایت Awards (BTitrBd) */
.biography-fallback-text {
    font-family: 'BTitrBd', 'BNazanin', Tahoma, sans-serif;
    font-size: 16px;
    color: #c8ced8;
    margin: 0;
    line-height: 1.8;
    max-width: 400px;
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 1200px) {
    .biography-inner {
        grid-template-columns: 180px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .biography-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .biography-header {
        position: static;
    }

    .author-card {
        width: 130px;
    }

    .author-avatar {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 600px) {
    .biography-section {
        padding: 36px 14px;
    }

    .biography-title {
        font-size: 16px;
    }

    .author-card {
        width: calc((100vw - 50px) / 3);
        min-width: 100px;
        max-width: 130px;
    }

    .author-avatar {
        width: 65px;
        height: 65px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-name-en,
    .author-nickname {
        font-size: 11px;
    }

    .biography-scroll-btn {
        width: 32px;
        height: 60%;
        opacity: 1;
    }

        .biography-scroll-btn i {
            font-size: 1rem;
        }
}

@media (max-width: 380px) {
    .author-card {
        width: calc((100vw - 44px) / 3);
        min-width: 90px;
    }

    .author-avatar {
        width: 55px;
        height: 55px;
    }

    .author-name {
        font-size: 12px;
    }
}
