/* Artigo (single) page - CSS original integrado */

.page-artigo .main-content {
    flex-grow: 1;
}

.page-artigo .breadcrumb-section {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.page-artigo .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.page-artigo .breadcrumb a:hover {
    color: var(--primary);
}

.page-artigo .breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

.page-artigo .article-hero {
    padding: 1.5rem 0;
}

.page-artigo .hero-header {
    max-width: 56rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.page-artigo .article-hero .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #eff6ff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.page-artigo .article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-artigo .article-title {
        font-size: 3rem;
    }
}

.page-artigo .article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 0;
    width: fit-content;
    margin: 0 auto;
}

.page-artigo .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-artigo .meta-dot {
    width: 4px;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 50%;
}

.page-artigo .article-meta .material-icons.icon-meta {
    font-size: 1rem;
}

.page-artigo .breadcrumb-separator {
    font-size: 1rem;
}

.page-artigo .featured-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .page-artigo .featured-image-container {
        aspect-ratio: 21/9;
    }
}

.page-artigo .featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-artigo .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.page-artigo .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .page-artigo .content-grid {
        grid-template-columns: 8fr 4fr;
    }
}

.page-artigo .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.page-artigo .article-body p {
    margin-bottom: 1.5rem;
}

.page-artigo .article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-artigo .article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-artigo .article-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-artigo .article-body li {
    margin-bottom: 0.5rem;
}

.page-artigo .quick-summary {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.page-artigo .quick-summary h3 {
    color: var(--primary);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.page-artigo .quick-summary .material-icons.icon-summary {
    font-size: 1.25rem;
}

.page-artigo .tip-box {
    border-left: 4px solid var(--primary);
    background-color: rgba(0, 74, 153, 0.05);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.page-artigo .alert-box {
    border-left: 4px solid var(--accent);
    background-color: rgba(227, 29, 26, 0.05);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.page-artigo .box-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.page-artigo .tip-box .box-title {
    color: var(--primary);
}

.page-artigo .alert-box .box-title {
    color: var(--accent);
}

.page-artigo .article-figure {
    margin: 2rem 0;
}

.page-artigo .figure-img-wrapper {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-artigo .figure-img-wrapper img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.page-artigo .figure-caption {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.page-artigo .sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-artigo .sidebar-sticky {
    position: sticky;
    top: 2rem;
}

/* Sidebar Widgets */
.page-artigo .sidebar-widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-artigo .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.page-artigo .widget-cta-artigo {
    background: linear-gradient(135deg, var(--primary), #1e293b);
    color: white;
    text-align: center;
    border: none;
}
.page-artigo .widget-cta-artigo .cta-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}
.page-artigo .widget-cta-artigo .cta-icon .material-icons { font-size: 2rem; }
.page-artigo .widget-cta-artigo h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-artigo .widget-cta-artigo p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.5; }
.page-artigo .widget-cta-artigo .btn-primary { 
    display: block; 
    width: 100%; 
    background: white; 
    color: var(--primary); 
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* Related widget */
.page-artigo .related-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.page-artigo .related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
}
.page-artigo .related-thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
.page-artigo .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.page-artigo .related-item:hover .related-thumb img { transform: scale(1.1); }
.page-artigo .related-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.page-artigo .related-item:hover h5 { color: var(--primary); }
.page-artigo .related-date { font-size: 0.75rem; color: var(--text-gray); }

/* Share button native style */
.page-artigo .share-box {
    display: flex;
    justify-content: center;
}
.page-artigo .btn-share-native {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}
.page-artigo .btn-share-native:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
.page-artigo .btn-share-native .material-icons-outlined {
    font-size: 1.25rem;
}

.page-artigo .bottom-section {
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 2.5rem;
}

.page-artigo .bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.page-artigo .bottom-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.page-artigo .view-all-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-artigo .view-all-link:hover {
    color: var(--primary-dark);
}

.page-artigo .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .page-artigo .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.page-artigo .bottom-section .card {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.page-artigo .bottom-section .card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-artigo .card-image {
    height: 12rem;
    overflow: hidden;
}

.page-artigo .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.page-artigo .card:hover .card-image img {
    transform: scale(1.05);
}

.page-artigo .card-content {
    padding: 1.5rem;
}

.page-artigo .card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.page-artigo .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.page-artigo .card:hover .card-title {
    color: var(--primary);
}

.page-artigo .card-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-artigo .card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-artigo .card:hover .card-link {
    color: var(--primary);
}

.page-artigo .cta-banner {
    position: relative;
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 768px) {
    .page-artigo .cta-banner {
        padding: 2.5rem;
    }
}

.page-artigo .cta-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.page-artigo .cta-banner-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    margin: 0 auto;
}

.page-artigo .cta-banner h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-artigo .cta-banner h2 {
        font-size: 2.25rem;
    }
}

.page-artigo .cta-banner p {
    color: #dbeafe;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.page-artigo .cta-banner-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.page-artigo .cta-banner-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}
