/* ══════════════════════════════════════════════════════════════
   BIOGRAPHY READS PAGE
   ══════════════════════════════════════════════════════════════ */

.bio-main { padding: 0 30px; }

/* ── Filter tab buttons ── */
.bio-main .cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bio-main .cat-btn {
    background: rgba(15,20,25,0.6);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.bio-main .cat-btn:hover {
    border-color: rgba(99,102,241,0.5);
    color: #e2e8f0;
}
.bio-main .cat-btn.active {
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    border-color: transparent;
    color: #fff;
}

/* ── How biographies are written panel ── */
.bio-writing-panel {
    position: relative;
    background: rgba(15,20,25,0.6);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    padding: 28px 32px 28px 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.bio-panel-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.bio-panel-close:hover { color: #94a3b8; }
.bio-panel-close svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bio-panel-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
    padding-left: 20px;
}
.bio-writing-panel p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

/* ── Biography card ── */
.bio-card-inner {
    display: flex;
    align-items: stretch;
}

/* Portrait column */
.bio-portrait-col {
    flex: 0 0 220px;
    background: rgba(10,12,20,0.6);
    border-right: 1px solid rgba(99,102,241,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    min-height: 340px;
}

.bio-book-cover {
    width: 150px;
    height: 225px;
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    box-shadow: -6px 6px 22px rgba(0,0,0,0.7);
}
.bio-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-book-placeholder {
    background: linear-gradient(135deg, rgba(30,20,70,0.9), rgba(20,15,50,0.95));
    border: 1px solid rgba(99,102,241,0.25);
    box-shadow: -6px 6px 22px rgba(0,0,0,0.7), inset 4px 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.bio-book-spine {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, rgba(99,102,241,0.5), rgba(139,92,246,0.25));
    border-radius: 4px 0 0 4px;
}
.bio-book-placeholder svg {
    width: 48px; height: 48px;
    fill: none;
    stroke: rgba(139,92,246,0.5);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bio-book-placeholder span {
    font-size: 9px;
    color: rgba(139,92,246,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 10px;
}

/* Content column */
.bio-content-col {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.bio-role {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 18px;
}

.bio-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 5px;
    padding: 3px 8px;
    margin-bottom: 12px;
    width: fit-content;
}

.bio-save-btn {
    background: transparent;
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.bio-save-btn:hover,
.bio-save-btn.bio-saved {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.7);
}

/* Empty state */
.bio-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}
.bio-empty svg {
    width: 48px; height: 48px;
    fill: none;
    stroke: #334155;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    margin: 0 auto 16px;
}
.bio-empty p { font-size: 15px; line-height: 1.7; }

/* ── Mobile ── */
@media ( max-width: 768px ) {
    .bio-main { padding: 0 !important; }
    .bio-card-inner { flex-direction: column !important; }
    .bio-portrait-col {
        flex: none !important;
        min-height: auto !important;
        padding: 20px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(99,102,241,0.2) !important;
    }
    .bio-book-cover,
    .bio-book-placeholder {
        width: 100px !important;
        height: 150px !important;
    }
    .bio-content-col { padding: 20px !important; }
}
