/* ==========================================================================
   ÁLVARO DAMIÃO — Dedicated Blog & Single Article Stylesheet
   ========================================================================== */

/* Ajustes Gerais */
.blog-page-body {
    background-color: #f4f6f9;
}

.blog-hero-section {
    position: relative;
    padding: 150px 0 70px;
    background-color: #0f2c59;
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.blog-hero-title {
    color: #ffffff !important;
}

/* Sombreamento e elevação de cards no portal */
.blog-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 44, 89, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 44, 89, 0.12);
}

/* ==========================================================================
   ARTICLE DETAIL PAGE LAYOUT
   ========================================================================== */

.article-breadcrumb-nav {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 44, 89, 0.08);
    padding: 15px 0;
    margin-top: 85px; /* Compensa o header fixo */
}

.article-breadcrumb-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #0f2c59;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #ffd700;
}

.breadcrumbs .separator {
    font-size: 0.75rem;
    color: #ccc;
}

.breadcrumbs .current-page {
    color: #555;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-to-blog-btn {
    font-size: 0.9rem;
    color: #0f2c59;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-to-blog-btn:hover {
    color: #ffd700;
    transform: translateX(-3px);
}

/* Main Container */
.article-detail-container {
    padding: 50px 0 80px;
}

.main-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Coluna do Artigo */
.single-article-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(15, 44, 89, 0.04);
}

.article-badge-category {
    background: rgba(15, 44, 89, 0.07);
    color: #0f2c59;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 18px;
}

.single-article-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: #0f2c59;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-author-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-meta i {
    color: #ffd700;
}

.single-article-cover-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.single-article-cover-box img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   WORDPRESS HTML CONTENT STYLING (wp-content-styles)
   ========================================================================== */

.wp-content-styles {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333333;
}

.wp-content-styles p {
    margin-bottom: 24px;
}

.wp-content-styles h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: #0f2c59;
    font-weight: 700;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.wp-content-styles h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    color: #0f2c59;
    font-weight: 700;
    margin: 30px 0 15px;
}

.wp-content-styles blockquote {
    border-left: 4px solid #ffd700;
    padding: 15px 25px;
    background: rgba(15, 44, 89, 0.03);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #0f2c59;
    margin: 35px 0;
}

.wp-content-styles blockquote p {
    margin-bottom: 0;
}

.wp-content-styles blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 700;
    color: #666;
    margin-top: 10px;
}

.wp-content-styles ul, .wp-content-styles ol {
    margin-bottom: 24px;
    padding-left: 25px;
}

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

.wp-content-styles figure {
    margin: 35px 0;
    text-align: center;
}

.wp-content-styles figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wp-content-styles figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.wp-content-styles iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    border: none;
    margin: 35px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Share Box Footer */
.article-share-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.share-title {
    font-weight: 700;
    color: #0f2c59;
    font-size: 1rem;
    margin-bottom: 15px;
}

.share-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.share-icon-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-icon-btn.whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.share-icon-btn.facebook {
    background-color: #1877f2;
    color: #ffffff;
}

.share-icon-btn.twitter {
    background-color: #1da1f2;
    color: #ffffff;
}

.share-icon-btn.copy {
    background-color: #f1f3f5;
    color: #333333;
}

/* Skeleton loader style */
.article-skeleton-loader {
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.article-skeleton-loader .skeleton-line {
    height: 16px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    margin-bottom: 12px;
}

.article-skeleton-loader .skeleton-line.category {
    width: 100px;
    height: 24px;
    border-radius: 20px;
}

.article-skeleton-loader .skeleton-line.title {
    width: 80%;
    height: 36px;
}

.article-skeleton-loader .skeleton-line.meta {
    width: 40%;
    margin-bottom: 30px;
}

.article-skeleton-loader .skeleton-img-box {
    width: 100%;
    height: 350px;
    background: rgba(0,0,0,0.08);
    border-radius: 16px;
    margin-bottom: 35px;
}

@keyframes skeletonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* ==========================================================================
   RESPONSIVO E AJUSTES DE MEDIA
   ========================================================================== */

@media (max-width: 991px) {
    .main-article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .single-article-content {
        padding: 24px;
        border-radius: 16px;
    }
    
    .single-article-title {
        font-size: 1.85rem;
    }
    
    .share-buttons-wrapper {
        flex-direction: column;
    }
    
    .share-icon-btn {
        width: 100%;
        justify-content: center;
    }
}
