/* Article Page Specific Styles */

/* Article Page Layout */
.article-page {
    padding: 120px 0 80px;
    background: #ffffff; /* Fundo branco */
    min-height: 100vh;
}

.article-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.article-hero-image:hover {
    transform: scale(1.02);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.article-date,
.article-read-time {
    color: #666; /* Cor de texto padrão */
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: "📅";
    font-size: 1rem;
}

.article-read-time::before {
    content: "⏱️";
    font-size: 1rem;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333; /* Cor de título escura */
    line-height: 1.2;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, #333 0%, #4CAF50 100%); /* Mantém gradiente para efeito visual */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444; /* Cor de texto padrão */
    margin-bottom: 3rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333; /* Cor de título escura */
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4CAF50;
    position: relative;
}

.article-body h2::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333; /* Cor de título escura */
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

.article-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    position: relative;
}

.article-body ul li::marker {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
}

.article-body ol li {
    counter-increment: list-counter;
}

.article-body ol li::marker {
    color: #4CAF50;
    font-weight: bold;
}

.article-body strong {
    color: #333; /* Cor de texto padrão */
    font-weight: 600;
}

.article-body a {
    color: #4CAF50; /* Cor de link padrão */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #45a049;
    border-bottom-color: #45a049;
}

/* Article Footer */
.article-footer {
    background: #f8f9fa; /* Fundo claro para o rodapé */
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #4CAF50;
    margin-top: 3rem;
}

.article-footer h3 {
    color: #333; /* Cor de título escura */
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-footer ol {
    margin: 0;
    padding-left: 1.5rem;
}

.article-footer li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-footer a {
    color: #4CAF50; /* Cor de link padrão */
    text-decoration: none;
    font-weight: 500;
}

.article-footer a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(76, 175, 80, 0.1);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.1s ease;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #4CAF50;
    color: white;
    transform: translateX(-5px);
}

.back-to-blog::before {
    content: "←";
    font-size: 1.2rem;
}

/* Share Buttons */
.article-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa; /* Fundo claro para os botões de compartilhamento */
    border-radius: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa; /* Fundo claro para o índice */
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 4px solid #4CAF50;
}

.table-of-contents h3 {
    color: #333; /* Cor de título escura */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #666; /* Cor de link padrão */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-page .container {
        max-width: 800px;
        padding: 0 30px;
    }
    
    .article-title {
        font-size: 2.4rem;
    }
    
    .article-body {
        font-size: 1.05rem;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
    }
    
    .article-body h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .article-page {
        padding: 100px 0 60px;
    }
    
    .article-page .container {
        padding: 0 20px;
    }
    
    .article-hero-image {
        max-height: 250px;
        border-radius: 12px;
    }
    
    .article-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .article-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem 0;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .article-share {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 1.5rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .table-of-contents {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .article-page .container {
        padding: 0 15px;
    }
    
    .article-hero-image {
        max-height: 200px;
        border-radius: 8px;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-body {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
        padding-left: 0.8rem;
    }
    
    .article-body h3::before {
        width: 3px;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 1.2rem;
    }
    
    .article-footer {
        padding: 1rem;
    }
    
    .article-footer li {
        font-size: 0.9rem;
    }
    
    .back-to-blog {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .article-share {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .article-page {
        padding: 0;
    }
    
    .article-hero-image {
        max-height: 300px;
        box-shadow: none;
    }
    
    .article-meta {
        display: none;
    }
    
    .article-share,
    .back-to-blog,
    .reading-progress {
        display: none;
    }
    
    .article-body a {
        color: #333;
        text-decoration: underline;
    }
    
    .article-footer {
        background: none;
        border: 1px solid #ddd;
    }
}

/* Dark Mode Support (Removido ou ajustado para não interferir com fundo branco) */
@media (prefers-color-scheme: dark) {
    .article-page {
        background: #ffffff; /* Mantém fundo branco mesmo em dark mode */
        color: #333; /* Cor de texto escura */
    }
    
    .article-title {
        background: linear-gradient(135deg, #333 0%, #4CAF50 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .article-body {
        color: #444;
    }
    
    .article-body h2,
    .article-body h3 {
        color: #333;
    }
    
    .article-footer {
        background: #f8f9fa;
        color: #333;
    }
    
    .article-footer h3 {
        color: #333;
    }
    
    .table-of-contents {
        background: #f8f9fa;
        color: #333;
    }
    
    .table-of-contents h3 {
        color: #333;
    }
    
    .article-share {
        background: #f8f9fa;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.back-to-blog:focus,
.share-btn:focus,
.article-body a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

