/**
 * Köşe Yazarları — yazar arşivi (author.php) ve Yazarlar sayfası
 * (page-yazarlar.php) stilleri.
 */

/* ---------- Yazar profili (arşiv başlığı) ---------- */
.yazar-profil {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
    padding: 26px 28px;
    margin-bottom: 24px;
}
.yazar-profil__foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color, #dc2626);
    flex-shrink: 0;
}
.yazar-profil__unvan {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary-color, #dc2626);
    margin-bottom: 4px;
}
.yazar-profil__ad {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-color, #111);
}
.yazar-profil__bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light, #666);
    margin: 0 0 10px;
    max-width: 640px;
}
.yazar-profil__sayi {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border-radius: 99px;
    padding: 4px 12px;
}

/* ---------- Yazarlar sayfası ızgarası ---------- */
.yazarlar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
.yazar-kart {
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 8px);
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
}
.yazar-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.yazar-kart__foto img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #dc2626);
    margin-bottom: 12px;
}
.yazar-kart__unvan {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--primary-color, #dc2626);
    margin-bottom: 4px;
}
.yazar-kart__ad {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
}
.yazar-kart__ad a { color: var(--text-color, #111); text-decoration: none; }
.yazar-kart__ad a:hover { color: var(--primary-color, #dc2626); }
.yazar-kart__bio {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-light, #666);
    margin: 0 0 12px;
}
.yazar-kart__son {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    text-decoration: none;
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yazar-kart__son:hover { color: var(--primary-color, #dc2626); }
.yazar-kart__son i { margin-right: 6px; color: var(--primary-color, #dc2626); }
.yazar-kart__btn {
    margin-top: auto;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color, #dc2626);
    border-radius: 6px;
    padding: 9px 20px;
    text-decoration: none;
    transition: opacity .2s;
}
.yazar-kart__btn:hover { opacity: .88; color: #fff; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
    .yazarlar-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .yazarlar-grid { grid-template-columns: repeat(2, 1fr); }
    .yazar-profil { flex-direction: column; text-align: center; padding: 22px 16px; }
    .yazar-profil__bio { max-width: none; }
}
@media (max-width: 480px) {
    .yazarlar-grid { grid-template-columns: 1fr; }
}
