/* ===============================================
   PÁGINA SOBRE AUTOR/AUTORA
   =============================================== */

/* Prevenir overflow horizontal */
.page-sobre-autor,
.page-sobre-autor * {
    max-width: 100%;
    box-sizing: border-box;
}

.page-sobre-autor {
    overflow-x: hidden;
}

/* Container principal */
.autor-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    overflow-x: hidden;
}

/* Limitar largura do conteúdo */
.autor-header,
.autor-historia,
.autor-extra-content,
.autor-artigos-recentes {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.autor-header {
    max-width: 1000px;
}

.autor-historia,
.autor-extra-content {
    max-width: 900px;
}

/* Header do Autor */
.autor-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-radius: 30px;
    padding: 50px 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.autor-header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Foto do Autor */
.autor-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.autor-photo,
.autor-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.autor-photo-placeholder {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.autor-photo-placeholder svg {
    width: 80px;
    height: 80px;
    color: #ffffff;
    stroke-width: 1.5;
}

/* Badge de Prêmio */
.autor-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    border: 4px solid #ffffff;
}

.autor-badge svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
    stroke-width: 2;
}

/* Informações do Autor */
.autor-info {
    min-width: 0;
}

.autor-role {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.autor-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.autor-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.autor-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.autor-detail svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    stroke-width: 2;
}

.autor-short-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
    max-width: 700px;
}

/* Seção História */
.autor-historia {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.historia-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.historia-header svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    stroke-width: 2;
    flex-shrink: 0;
}

.historia-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.historia-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.historia-content p {
    margin-bottom: 20px;
}

.historia-content p:last-child {
    margin-bottom: 0;
}

/* Suporte a HTML na biografia */
.historia-content strong,
.historia-content b {
    font-weight: 700;
    color: var(--text-color);
}

.historia-content em,
.historia-content i {
    font-style: italic;
}

.historia-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.historia-content a:hover {
    color: var(--primary-dark);
}

.historia-content ul,
.historia-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.historia-content li {
    margin-bottom: 10px;
}

/* Conteúdo Extra */
.autor-extra-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.autor-extra-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.autor-extra-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 15px;
}

/* ===============================================
   ARTIGOS RECENTES
   =============================================== */

.autor-artigos-recentes {
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.artigos-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.artigos-header svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    stroke-width: 2;
}

.artigos-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.artigos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card de Artigo */
.artigo-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.artigo-card:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.artigo-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.artigo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artigo-card:hover .artigo-thumbnail img {
    transform: scale(1.08);
}

.artigo-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.artigo-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.artigo-title {
    margin: 0 0 auto 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 60px;
}

.artigo-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artigo-title a:hover {
    color: var(--primary-color);
}

.artigo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.artigo-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.artigo-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.artigo-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    white-space: nowrap;
}

.artigo-date svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */

@media (max-width: 992px) {
    .autor-header {
        padding: 40px;
    }
    
    .autor-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .autor-photo-wrapper {
        margin-bottom: 20px;
    }
    
    .autor-meta {
        justify-content: center;
    }
    
    .autor-short-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .autor-historia {
        padding: 40px;
    }
    
    .autor-extra-content {
        padding: 40px;
    }
    
    .artigos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .autor-container {
        padding: 40px 20px;
    }
    
    .autor-header {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .autor-photo-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .autor-photo,
    .autor-photo-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .autor-badge {
        width: 50px;
        height: 50px;
    }
    
    .autor-badge svg {
        width: 24px;
        height: 24px;
    }
    
    .autor-name {
        font-size: 2.25rem;
    }
    
    .autor-short-description {
        font-size: 1rem;
    }
    
    .autor-historia {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .historia-header h2 {
        font-size: 1.5rem;
    }
    
    .historia-content {
        font-size: 1rem;
    }
    
    .autor-extra-content {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .artigos-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .artigos-header h2 {
        font-size: 1.5rem;
    }
    
    .artigos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .artigo-thumbnail {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .autor-container {
        padding: 30px 15px;
    }
    
    .autor-header {
        padding: 25px 15px;
    }
    
    .autor-photo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .autor-photo,
    .autor-photo-placeholder {
        width: 140px;
        height: 140px;
        border: 4px solid #ffffff;
    }
    
    .autor-badge {
        width: 45px;
        height: 45px;
        border: 3px solid #ffffff;
    }
    
    .autor-badge svg {
        width: 20px;
        height: 20px;
    }
    
    .autor-role {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .autor-name {
        font-size: 1.75rem;
    }
    
    .autor-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .autor-short-description {
        font-size: 0.95rem;
    }
    
    .autor-historia {
        padding: 25px 15px;
    }
    
    .historia-header {
        flex-direction: column;
        text-align: center;
    }
    
    .historia-header svg {
        width: 28px;
        height: 28px;
    }
    
    .historia-header h2 {
        font-size: 1.35rem;
    }
    
    .historia-content {
        font-size: 0.95rem;
    }
    
    .autor-extra-content {
        padding: 25px 15px;
    }
    
    .autor-extra-content h2 {
        font-size: 1.35rem;
    }
    
    .autor-extra-content p {
        font-size: 0.95rem;
    }
    
    .artigos-header svg {
        width: 28px;
        height: 28px;
    }
    
    .artigos-header h2 {
        font-size: 1.35rem;
    }
    
    .artigos-grid {
        gap: 15px;
    }
    
    .artigo-thumbnail {
        height: 200px;
    }
    
    .artigo-content {
        padding: 15px;
    }
    
    .artigo-title {
        font-size: 1rem;
    }
    
    .artigo-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
