/* ══════════════════════════════════
   ГЛОБАЛНИ ШРИФТОВЕ
══════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Source+Sans+3:wght@400;500&display=swap');

body.post-type-archive-avtor,
body.single-avtor {
    font-family: 'Source Sans 3', sans-serif;
}

/* ══════════════════════════════════
   АРХИВ АВТОРИ
══════════════════════════════════ */
.lit-archive-wrap {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}

.lit-archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* ── Toggle ── */
.lit-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.lit-toggle-btn {
    padding: 7px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.lit-toggle-btn.active {
    border-color: #7a1515;
    color: #7a1515;
    background: #fff5f5;
}

/* ── Азбука ── */
.lit-azbuka-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1.5rem;
}

.lit-bukva-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lit-bukva-btn.active {
    background: #7a1515;
    color: #fff;
    border-color: #7a1515;
}

.lit-bukva-btn:hover:not(.active) {
    border-color: #999;
    background: #f9f9f9;
}

/* ── Групи по буква ── */
.lit-bukva-grupa { display: none; }
.lit-bukva-grupa.active { display: block; }

/* ── Списък ── */
.lit-avtori-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lit-avtor-item {
    border-bottom: 1px solid #f0f0f0;
}

.lit-avtor-item:first-child {
    border-top: 1px solid #f0f0f0;
}

.lit-avtor-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 6px;
    text-decoration: none;
    transition: background 0.12s, padding-left 0.12s;
    border-radius: 6px;
}

.lit-avtor-row:hover {
    background: #faf9f7;
    padding-left: 12px;
}

/* ── Аватарка ── */
.lit-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #eee;
}

.lit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lit-avatar-initials {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 500;
}

/* Цветове на аватарките */
.lit-avatar.c1 { background: #fff5f5; border-color: #e8b4b4; }
.lit-avatar.c1 .lit-avatar-initials { color: #7a1515; }

.lit-avatar.c2 { background: #f0f4ff; border-color: #b4c4e8; }
.lit-avatar.c2 .lit-avatar-initials { color: #1a3a7a; }

.lit-avatar.c3 { background: #f0fff5; border-color: #b4e8c4; }
.lit-avatar.c3 .lit-avatar-initials { color: #1a5a2a; }

.lit-avatar.c4 { background: #fdf5e6; border-color: #e8d4a4; }
.lit-avatar.c4 .lit-avatar-initials { color: #6b4a0a; }

/* ── Инфо ── */
.lit-avtor-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.lit-avtor-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 500;
    color: #7a1515;
    line-height: 1.3;
}

.lit-avtor-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lit-avtor-dati {
    font-size: 12px;
    color: #999;
}

.lit-avtor-epoha {
    font-size: 11px;
    color: #777;
}

.lit-avtor-epoha::before {
    content: '·';
    margin-right: 6px;
    color: #ccc;
}

.lit-avtor-arrow {
    color: #ccc;
    font-size: 18px;
    flex-shrink: 0;
}

.lit-no-results {
    color: #999;
    font-style: italic;
    padding: 20px 0;
    font-size: 14px;
}

/* ── Хронологичен режим ── */
.lit-epoha-blok {
    margin-bottom: 40px;
}

.lit-epoha-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    font-weight: 500;
    color: #7a1515;
    border-bottom: 1px solid #e8b4b4;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

/* ══════════════════════════════════
   SINGLE АВТОР
══════════════════════════════════ */
.lit-single-wrap {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Source Sans 3', sans-serif;
}

.lit-single-name {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.lit-single-columns {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.lit-single-left {
    flex: 2;
    min-width: 0;
}

.lit-single-right {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
}

/* Снимка */
.lit-single-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Инфо карта */
.lit-info-box {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;
}

.lit-single-photo + .lit-info-box {
    margin-top: 12px;
}

.lit-info-header {
    background: #7a1515;
    color: #fff;
    text-align: center;
    padding: 9px 12px;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.lit-info-table {
    width: 100%;
    border-collapse: collapse;
}

.lit-info-row {
    padding: 9px 14px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.lit-info-row:last-child {
    border-bottom: none;
}

.lit-info-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aaa;
    min-width: 90px;
    padding-top: 1px;
    flex-shrink: 0;
}

.lit-info-value {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.lit-info-value a {
    color: #7a1515;
    text-decoration: none;
}

.lit-info-value a:hover {
    text-decoration: underline;
}

/* Tag pills */
.lit-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #e8b4b430;
    color: #7a1515;
    background: #fff5f5;
    margin: 2px 2px 0 0;
    text-decoration: none;
}

.lit-tag:hover {
    background: #7a1515;
    color: #fff;
}

/* Биография */
.lit-single-kratko {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.lit-single-bio {
    font-size: 15px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
}

.lit-single-bio p {
    margin-bottom: 1rem;
}

/* Секции */
.lit-single-section {
    margin-top: 2rem;
}

.lit-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15em;
    font-weight: 500;
    color: #7a1515;
    border-bottom: 1px solid #e8b4b4;
    padding-bottom: 6px;
    margin-bottom: 1rem;
}

/* Произведения */
.lit-proizv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lit-proizv-item {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.lit-proizv-title { font-style: italic; color: #333; }
.lit-proizv-godina { color: #888; margin-left: 4px; }
.lit-proizv-zhanr { color: #aaa; font-size: 0.9em; margin-left: 4px; }

/* Връзки */
.lit-links-list { list-style: none; padding: 0; }
.lit-links-list a { color: #7a1515; text-decoration: none; font-size: 14px; }
.lit-links-list a:hover { text-decoration: underline; }

/* Назад */
.lit-back-link {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.lit-back-link a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.lit-back-link a:hover { color: #7a1515; }

/* Responsive */
@media (max-width: 650px) {
    .lit-single-columns { flex-direction: column-reverse; }
    .lit-single-right { max-width: 100%; width: 100%; }
}

/* ══════════════════════════════════
   SINGLE ЖАНР / НАПРАВЛЕНИЕ
══════════════════════════════════ */
.lit-zhanr-avtori {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lit-zhanr-avtor-row {
    padding: 14px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.lit-zhanr-avtor-row:first-child {
    border-top: 1px solid #f0f0f0;
}

.lit-zhanr-avtor-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.lit-zhanr-avtor-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 500;
    color: #7a1515;
    text-decoration: none;
}

.lit-zhanr-avtor-name:hover {
    text-decoration: underline;
}

.lit-zhanr-proizv {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 0;
    border-left: 2px solid #f0e0e0;
}

.lit-zhanr-proizv li {
    padding: 3px 0;
    font-size: 13px;
    color: #555;
}

.lit-zhanr-broi {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    padding: 3px 8px;
    border: 1px solid #eee;
    border-radius: 20px;
    margin-left: auto;
    margin-right: 8px;
}
.lit-info-value a {
    color: #7a1515;
    text-decoration: none;
}
.lit-info-value a:hover {
    text-decoration: underline;
}