/* assets/css/authors.css */

/* --- YAZARLAR LİSTESİ (GRID) --- */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.author-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 5px;
}

.author-name a { color: inherit; transition: 0.2s; }
.author-name a:hover { color: var(--primary-color); }

.author-bio-short {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    /* 3 satır sınırlama */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- YAZAR DETAY (HEADER) --- */
.author-profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-surface);
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 15px;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 800px;
}

/* --- MAKALE LİSTESİ --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color); /* Sol çizgi */
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
}

.article-item:hover {
    background: var(--bg-surface);
    transform: translateX(5px);
}

.article-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.article-item h3 a { color: var(--text-heading); }
.article-item h3 a:hover { color: var(--primary-color); }

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

/* --- YAZI DETAY (OKUMA SAYFASI) --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-heading);
}

.author-mini img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
}

.article-content p { margin-bottom: 20px; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .author-profile-header { flex-direction: column; text-align: center; }
    .article-title { font-size: 26px; }
}