/* 
jr-author profile widget

*/

.jr-author-bio {
    display: flex;
    gap: 10px;
    font-size: .875em;
    font-weight: 400;
    line-height: 1.25em;
    margin-bottom: 20px;
}

.jr-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jr-author-avatar img,
.jr-author-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jr-author-content {
    flex: 1;
}

.jr-author-description {
    margin: 0 auto;
    padding-right: 10px;
    line-height: 1.6;
    color: #212121;
    text-align: start;
   
}


.jr-author-bio--no-bio {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.jr-author-avatar--centered {
    margin: 0 auto !important;
}

/* Ajustes para el SVG del avatar */
.jr-author-avatar--centered svg {
    width: 120px;
    height: 120px;
}

/* Estilos para el texto dentro del avatar */
.jr-author-avatar--centered svg text {
    font-size: 60px;
}

/* Estilos para el footer del autor */
.jr-author-footer {
    background-color: var(--jr-color-primary);
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .825em;
    margin-bottom: .825em;
}

/* Estilo cuando tiene enlace */
.jr-author-website {
    padding: .1875em;
}

.jr-author-website:hover {
    opacity: 0.8;
}

.jr-author-website svg {
    width: 16px;
    height: 16px;
}

/* Estilo cuando no tiene enlace */
.jr-author-footer-empty {
    width: 100%;
    height: 20px; /* Altura del espacio vacío */
}

.jr-author-widget {
    padding: .625em 0;
    margin-bottom: 5px;
    text-align: start;
}

.jr-author-header {
    /* background: var(--jr-gradient-brand); */
    background-color: transparent;
    background-image: linear-gradient(90deg, #244EB7 20%, #2977F2 100%);
    padding: 6px 10px;
}

.jr-authors-posts {
    padding-left: 10px;
    padding-right: 10px;
}

.jr-authors-posts h3 {
    margin-bottom: 0;
}

.jr-authors-posts h3 a {
    padding: 0;
    color: #212121;
}

.jr-authors-posts .jr-comment-header {
    font-family: "Open Sans", sans-serif !important;
    margin-bottom: 0;
}

.jr-authors-posts h3 a::before {
    content: '';
}

.jr-authors-posts .jr-comment-meta {
    font-size: 10px;
}

.jr-author-header .jr-author-name {
    color: var(--jr-text-on-dark);
    font-size: 16px;
    margin: 0;
}

.jr-author-header {
    margin-bottom: 10px;
}

.jr-author-avatar {
    flex: 0 0 auto;        /* Don't grow/shrink */
    margin: 0;             /* Remove default figure margin */
}

.jr-comment-author {
    white-space: nowrap; /* Prevents wrapping */
}

.jr-comment-author figure {
    display: inline-block;
    vertical-align: middle;
    
}

.jr-comment-author svg,
.interaction-count {
    display: inline-block;
    vertical-align: middle;
    font-size: 10px;
}

.jr-author-footer a.jr-author-website {
    font-size: .75em;
    color: var(--jr-text-on-dark);
    font-weight: 600;
    line-height: 1em;
    padding: 10px;
}

.jr-author-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jr-author-footer a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.jr-author-footer svg {
    margin-left: 0.25rem;
}

.jr-author-footer a.jr-author-website:hover {
    color: var(--jr-text-on-dark);
    transition: all 0.2s ease;
}

a.jr-author-website {
    display: flex;
    align-items: center;
}

a.jr-author-website svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    stroke: var(--jr-text-on-dark);
}

@media (max-width: 1200px) {
    .jr-author-bio {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .jr-author-avatar:hover img {
        transform: scale(1.05);
    }
    .jr-author-footer a.jr-author-website {
        margin-left: 0;
    }
}