/* ============================================================
   Safeliz Authors - Estilos mínimos del front
   Diseñado para integrarse con alysumchild (tema padre)
   ============================================================ */

/* --- Cabecera de página individual --- */
.safeliz-author-header {
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}
.safeliz-author-header__inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.safeliz-author-header__photo {
    flex: 0 0 180px;
}
.safeliz-author-header__photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.safeliz-author-header__info {
    flex: 1 1 320px;
}
.safeliz-author-header__subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #888;
    margin: 0.25rem 0 1rem;
}
.safeliz-author-header__bio {
    line-height: 1.65;
    font-size: 1rem;
    color: #444;
}

/* --- Listado de productos del autor (deja al tema dictar el grid) --- */
.safeliz-author-products {
    margin-top: 2rem;
}

/* --- Índice de autores --- */
.safeliz-authors-list {
    padding: 1rem 0;
}
.safeliz-authors-list__tabs {
    margin-bottom: 1.5rem;
}
.safeliz-authors-list__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.safeliz-authors-list__letter {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.15s;
    min-width: 2.5rem;
    text-align: center;
}
.safeliz-authors-list__letter:hover {
    background: #f5f5f5;
    color: #000;
}
.safeliz-authors-list__letter.is-active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* --- Grid de tarjetas de autor --- */
.safeliz-authors-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.safeliz-author-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.safeliz-author-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}
.safeliz-author-card__photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.safeliz-author-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.safeliz-author-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}
.safeliz-author-card__body {
    padding: 1rem;
}
.safeliz-author-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #222;
}
.safeliz-author-card__meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}
.safeliz-author-card__meta .badge {
    margin-right: 0.4rem;
}

/* --- Paginación --- */
.safeliz-authors-list__pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .safeliz-author-header__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .safeliz-author-header__photo {
        flex-basis: 140px;
    }
}
