/* authors.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    direction: rtl;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* کانتینر اصلی */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر */
header {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004d99;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #004d99;
    padding: 10px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #004d99;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu ul li a:hover {
    background-color: #004d99;
    color: #fff;
}

.nav-menu ul li a i {
    margin-left: 5px;
}

/* بخش پدیدآورندگان */
.authors-section {
    padding: 20px 0;
}

.authors-section h1 {
    font-size: 2rem;
    color: #004d99;
    margin-bottom: 20px;
    text-align: center;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    color: #6c757d;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active,
.tab-button:hover {
    background-color: #004d99;
    color: #fff;
}

.authors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.author-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.author-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.author-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.author-item h3 {
    font-size: 1.1rem;
    color: #004d99;
    margin-bottom: 5px;
}

.author-item p {
    font-size: 0.9rem;
    color: #777;
}

.message-box {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #555;
}

/* پاسخگویی */

/* تبلت‌ها (768px تا 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 10px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-menu ul {
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-menu ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .authors-section h1 {
        font-size: 1.8rem;
    }

    .tabs {
        gap: 8px;
    }

    .tab-button {
        font-size: 13px;
        padding: 6px 12px;
    }

    .authors-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .author-item img {
        width: 90px;
        height: 90px;
    }

    .author-item h3 {
        font-size: 1rem;
    }

    .author-item p {
        font-size: 0.85rem;
    }
}

/* موبایل‌ها (تا 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 12px;
        left: 12px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 50px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: block;
        padding: 10px 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-menu ul li a {
        font-size: 13px;
        padding: 6px 0;
        width: 100%;
        text-align: center;
    }

    .authors-section h1 {
        font-size: 1.6rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .tab-button {
        width: 100%;
        max-width: 200px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .authors-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .author-item img {
        width: 80px;
        height: 80px;
    }

    .author-item h3 {
        font-size: 0.95rem;
    }

    .author-item p {
        font-size: 0.8rem;
    }
}

/* موبایل‌های خیلی کوچک (تا 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-toggle {
        top: 10px;
        left: 10px;
        font-size: 20px;
    }

    .nav-menu {
        top: 45px;
    }

    .nav-menu ul li a {
        font-size: 12px;
    }

    .authors-section h1 {
        font-size: 1.4rem;
    }

    .tabs {
        gap: 5px;
    }

    .tab-button {
        font-size: 12px;
        padding: 5px 8px;
    }

    .authors-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .author-item img {
        width: 70px;
        height: 70px;
    }

    .author-item h3 {
        font-size: 0.9rem;
    }

    .author-item p {
        font-size: 0.75rem;
    }
}