﻿/* ============================================================ */
/* wwwroot/css/authors-list.css                                  */
/* صفحه لیست نویسندگان                                            */
/* ============================================================ */

.authors-header {
    background: #0f1824;
    color: #fff;
    padding: 40px 24px 30px;
    position: relative;
    overflow: hidden;
}

.authors-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.authors-header-title h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #fff;
    line-height: 1.3;
}

.authors-header-title p {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.authors-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

    .authors-filter input[type="text"],
    .authors-filter select {
        height: 42px;
        padding: 0 14px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        color: #fff;
        font-family: var(--font-primary);
        font-size: 13px;
        outline: none;
        min-width: 180px;
    }

        .authors-filter input[type="text"]::placeholder {
            color: #7a8394;
        }

        .authors-filter input[type="text"]:focus,
        .authors-filter select:focus {
            border-color: var(--color-primary);
        }

        .authors-filter select option {
            background: #0f1824;
            color: #fff;
        }

    .authors-filter button {
        height: 42px;
        padding: 0 20px;
        background: var(--color-primary);
        border: 1px solid var(--color-primary);
        border-radius: 8px;
        color: var(--color-dark);
        font-family: var(--font-primary);
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.25s ease;
    }

        .authors-filter button:hover {
            background: var(--color-primary-hover, #b8890f);
            border-color: var(--color-primary-hover, #b8890f);
        }

/* ============================================================ */
/* لیست نویسندگان                                                */
/* ============================================================ */
.authors-list-section {
    background: #f8f9fb;
    padding: 40px 24px 60px;
    min-height: 500px;
}

.authors-list-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ============================================================ */
/* کارت نویسنده                                                  */
/* ============================================================ */
.author-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

    .author-grid-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
        color: inherit;
    }

.author-grid-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: #f5f7fa;
    overflow: hidden;
}

    .author-grid-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease, filter 0.4s ease;
        filter: grayscale(40%);
    }

.author-grid-card:hover .author-grid-image img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.author-grid-body {
    padding: 12px 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.author-grid-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    line-height: 1.5;
    color: #1a2233;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.author-grid-name-en {
    font-size: 11px;
    color: #94a3b8;
    direction: ltr;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-grid-role {
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--color-primary);
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================ */
/* حالت خالی                                                     */
/* ============================================================ */
.authors-empty {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

    .authors-empty i {
        color: #cbd5e1;
        margin-bottom: 20px;
    }

    .authors-empty h3 {
        font-family: var(--font-heading);
        font-size: 18px;
        color: #1a2233;
        margin: 0 0 8px 0;
    }

/* ============================================================ */
/* صفحه‌بندی                                                     */
/* ============================================================ */
.authors-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    flex-wrap: wrap;
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 1200px) {
    .authors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .authors-header {
        padding: 30px 20px 24px;
    }

    .authors-header-title h1 {
        font-size: 22px;
    }

    .authors-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .authors-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .authors-list-section {
        padding: 30px 16px 40px;
    }
}

@media (max-width: 600px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .authors-header {
        padding: 24px 16px 20px;
    }

    .authors-header-title h1 {
        font-size: 18px;
    }

    .author-grid-name {
        font-size: 13px;
        min-height: 40px;
    }

    .author-grid-role {
        font-size: 11px;
    }

    .authors-filter input[type="text"],
    .authors-filter select {
        min-width: 140px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .author-grid-name {
        font-size: 12px;
    }
}
