/* Stylesheet Oficial de Artigos do Blog CurrículoClick - Design System */

.article-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 5rem 8% 4rem;
    position: relative;
}

.article-header-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.article-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 9999px;
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1.25rem 0;
    color: #ffffff;
}

.article-title span, .text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #f1f5f9;
}

.article-author-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Layout do Corpo do Artigo */
.article-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 8% 6rem;
    display: grid;
    grid-template-columns: 60px 1fr 340px;
    gap: 2.5rem;
    position: relative;
}

@media (max-width: 968px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 5% 5rem;
    }
}

@media (max-width: 640px) {
    .article-layout {
        padding: 1.25rem 1rem 5rem;
    }
}

/* Barra de Compartilhamento no Desktop (Sticky Lateral) */
.article-share-floating {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    z-index: 90;
    align-self: flex-start;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.article-share-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 0.5rem;
    text-transform: none !important;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.12);
}

.share-btn-wa { background: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.share-btn-fb { background: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3); }
.share-btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3); }
.share-btn-copy { background: #475569; box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3); }
.share-btn-theme { background: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

/* No Mobile: Integrado no fluxo do texto sem cobrir a tela ou poluir os botões flutuantes */
@media (max-width: 968px) {
    .article-share-floating {
        position: static !important;
        transform: none !important;
        flex-direction: row;
        border-radius: 16px;
        padding: 0.85rem 1.25rem;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        margin-bottom: 1.5rem;
        width: 100%;
        justify-content: space-around;
        z-index: 10;
        background: #ffffff;
    }
    .article-share-title {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        font-size: 0.85rem;
    }
}

.article-body {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 1.08rem;
    color: #334155;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 640px) {
    .article-body {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

.article-body h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.35;
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body strong {
    color: #0f172a;
}

/* Caixas de Destaque */
.article-box-tip {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #1e40af;
}

.article-box-tip h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: #ffffff;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
}

.article-cta-banner h3 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.article-cta-banner p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
}

.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

/* Sidebar Lateral */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-related-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-related-link {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-related-link:hover {
    color: #2563eb;
}

.sidebar-related-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Modo Escuro Total (Dark Mode Imersivo) */
body.dark-mode,
body.dark-mode .landing-container {
    background-color: #0b0f19 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .article-body {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .article-body h2,
body.dark-mode .article-body h3,
body.dark-mode .article-body strong {
    color: #ffffff !important;
}

/* Correção de Contraste para Caixas de Exemplo e Códigos */
body.dark-mode div[style*="background: #f8fafc"],
body.dark-mode div[style*="background: #f1f5f9"],
body.dark-mode div[style*="background-color: #f8fafc"],
body.dark-mode div[style*="background-color: #f1f5f9"] {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Correção de Contraste para Sidebar Cards */
body.dark-mode .sidebar-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .sidebar-card[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .sidebar-card p,
body.dark-mode .sidebar-card p[style*="color: #1e3a8a"] {
    color: #93c5fd !important;
}

body.dark-mode .sidebar-title,
body.dark-mode .sidebar-title[style*="color: #1e40af"] {
    color: #ffffff !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .sidebar-related-link {
    color: #f1f5f9 !important;
}

body.dark-mode .sidebar-related-link:hover {
    color: #60a5fa !important;
}

body.dark-mode .article-share-floating {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .article-share-title {
    color: #94a3b8 !important;
}

body.dark-mode .article-box-tip {
    background: rgba(30, 58, 138, 0.4) !important;
    border-left-color: #3b82f6 !important;
    color: #93c5fd !important;
}

body.dark-mode .article-box-tip h4 {
    color: #ffffff !important;
}

/* Ajustes no Mobile para Preenchimento de Tela Completa */
@media (max-width: 640px) {
    body.dark-mode .landing-container {
        padding: 0;
    }
    
    .article-body {
        border-radius: 12px;
        margin: 0;
    }
}
