/* JUANEWS BookHub Authors - dark author profile + grid */

.jb-author-page-wrap {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    color: #e5e7eb;
}

.jb-author-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #020617;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid #111827;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

@media (max-width: 700px) {
    .jb-author-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.jb-author-avatar img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #facc15;
}

.jb-author-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #facc15;
}

.jb-author-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jb-author-name {
    font-size: 1.7rem;
    margin: 0;
}

.jb-author-tagline {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.jb-author-meta span {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    margin-right: 0.75rem;
}

.jb-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.jb-author-links a {
    font-size: 0.8rem;
    text-decoration: none;
    color: #facc15;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #facc15;
}

.jb-author-links a:hover {
    background: #facc15;
    color: #111827;
}

.jb-author-bio {
    margin-bottom: 2rem;
    background: #020617;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #111827;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    font-size: 0.95rem;
    line-height: 1.7;
}

.jb-author-books {
    margin-top: 1.5rem;
}

.jb-author-section-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

/* Use same grid / cards from engine for consistency */

.jb-author-no-books {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #020617;
    border: 1px solid #111827;
    color: #9ca3af;
}

/* Author grid (for list of all authors) */

.jb-author-grid {
    display: grid;
    gap: 1.3rem;
    margin: 1.5rem 0 2rem;
}

.jb-author-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jb-author-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jb-author-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .jb-author-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .jb-author-grid {
        grid-template-columns: 1fr;
    }
}

.jb-author-card {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #111827;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    padding: 1rem;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.jb-author-card .jb-author-avatar img {
    width: 64px;
    height: 64px;
}

.jb-author-card .jb-author-avatar-placeholder {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.jb-author-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.jb-author-card-name {
    font-size: 1rem;
    margin: 0;
}

.jb-author-card-tagline {
    font-size: 0.85rem;
    color: #9ca3af;
}

.jb-author-card-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: #facc15;
    margin-top: 0.2rem;
}

.jb-author-card-link:hover {
    color: #fde047;
}

.jb-author-no-list {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #020617;
    border: 1px solid #111827;
    color: #9ca3af;
}

/* Error message */
.jb-author-error {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #451a1a;
    border: 1px solid #b91c1c;
    color: #fee2e2;
}
