/**
 * Estilos frontend para Replanta Author SEO
 * 
 * Audit Box, Author Box, Related Posts
 * Paleta Replanta: Green #93F1C9, Forest #1E2F23, Teal #41999F, Sun #F7D450, Mint #92F1CB
 */

:root {
    --rep-green: #93F1C9;
    --rep-forest: #1E2F23;
    --rep-teal: #41999F;
    --rep-sun: #F7D450;
    --rep-mint: #92F1CB;
    --rep-white: #fff;
    --rep-bg-light: #F7FBF9;
    --rep-text-secondary: #3B4B45;
    --rep-text-tertiary: #547065;
    --rep-border: #E6F3EF;
}

/* ==========================================================================
   AUDIT BOX - Bloque de auditoría minimal tipo periódico
   ========================================================================== */

.replanta-audit-box {
    background: transparent;
    border-top: 1px solid var(--rep-border);
    border-bottom: 1px solid var(--rep-border);
    padding: 12px 0;
    margin: 24px 0;
    color: var(--rep-text-tertiary);
}

.audit-header {
    display: none; /* Ocultar header para look minimal */
}

.audit-content {
    background: transparent;
    padding: 0;
}

.audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 13px;
    line-height: 1.6;
}

.audit-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.audit-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--rep-text-tertiary);
    text-transform: none;
    letter-spacing: 0;
}

.audit-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    color: var(--rep-teal);
}

.audit-value {
    font-size: 13px;
    font-weight: 400;
    color: var(--rep-text-secondary);
}

.author-title {
    font-weight: 400;
    color: var(--rep-text-tertiary);
    font-size: 13px;
}

.audit-item time {
    color: var(--rep-text-secondary);
}

@media (max-width: 768px) {
    .audit-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .audit-item {
        width: 100%;
    }
}

/* ==========================================================================
   AUTHOR BOX - Caja de información del autor
   ========================================================================== */

.replanta-author-box {
    background: var(--rep-bg-light);
    border: 1px solid var(--rep-border);
    border-radius: 8px;
    padding: 32px;
    margin: 48px 0;
}

.author-box-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rep-mint);
    box-shadow: 0 2px 8px rgba(30, 47, 35, 0.08);
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.author-name a {
    color: var(--rep-forest);
    text-decoration: none;
    transition: color 0.2s;
}

.author-name a:hover {
    color: var(--rep-teal);
}

.author-job-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--rep-teal);
}

.author-organization {
    margin: 0;
    font-size: 14px;
    color: var(--rep-text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-box-content {
    border-top: 1px solid var(--rep-border);
    padding-top: 24px;
}

.author-bio,
.author-bio-extended {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rep-text-secondary);
}

.author-credentials {
    background: var(--rep-white);
    border-left: 4px solid var(--rep-teal);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.author-credentials h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rep-forest);
}

.author-credentials ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-credentials li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--rep-text-secondary);
}

.author-credentials li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--rep-teal);
    font-weight: 700;
}

.author-expertise {
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(147, 241, 201, 0.1);
    border-radius: 4px;
    font-size: 14px;
}

.author-expertise strong {
    color: var(--rep-teal);
    margin-right: 8px;
}

.author-social-links {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rep-white);
    border: 2px solid var(--rep-border);
    color: var(--rep-text-tertiary);
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--rep-teal);
    color: var(--rep-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(65, 153, 159, 0.15);
}

.author-posts-link {
    margin-top: 24px;
}

.btn-author-posts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--rep-teal);
    color: var(--rep-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}

.btn-author-posts:hover {
    background: var(--rep-forest);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 47, 35, 0.2);
    color: var(--rep-white);
}

@media (max-width: 640px) {
    .author-box-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .replanta-author-box {
        padding: 24px 16px;
    }
}

/* ==========================================================================
   RELATED POSTS - Artículos relacionados
   ========================================================================== */

.replanta-related-posts {
    margin: 48px 0;
    padding: 32px;
    background: var(--rep-white);
    border-radius: 8px;
    border: 1px solid var(--rep-border);
}

.related-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--rep-mint);
}

.related-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--rep-forest);
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-title svg {
    color: var(--rep-teal);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.related-post-item {
    background: var(--rep-bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--rep-border);
}

.related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(30, 47, 35, 0.08);
    border-color: var(--rep-mint);
}

.related-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--rep-border);
}

.related-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-title a {
    color: var(--rep-forest);
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-title a:hover {
    color: var(--rep-teal);
}

.related-excerpt {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rep-text-tertiary);
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rep-text-tertiary);
    flex-wrap: wrap;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-meta svg {
    width: 14px;
    height: 14px;
    color: var(--rep-teal);
}

.meta-separator {
    color: var(--rep-border);
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .replanta-related-posts {
        padding: 24px 16px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        gap: 16px;
    }
}

/* ==========================================================================
   SVG ICONS
   ========================================================================== */

svg[id^="icon-"] {
    display: none;
}
