/**
 * Postador IA - Estilos dos Boxes Especiais
 * Para artigos gerados com visual rico
 * Versão: 2.0 - Otimizado
 */

/* ========================================
   Variáveis CSS
   ======================================== */
:root {
    --postador-primary: #3b82f6;
    --postador-primary-dark: #1d4ed8;
    --postador-success: #22c55e;
    --postador-success-dark: #16a34a;
    --postador-danger: #ef4444;
    --postador-danger-dark: #dc2626;
    --postador-warning: #f59e0b;
    --postador-warning-dark: #d97706;
    --postador-info: #0ea5e9;
    --postador-dark: #1e293b;
    --postador-light: #f8fafc;
    --postador-gray: #64748b;
    --postador-border-radius: 12px;
    --postador-border-radius-sm: 8px;
    --postador-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --postador-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --postador-transition: all 0.3s ease;
}

/* ========================================
   Estilos Base dos Ícones Lucide
   ======================================== */
.box-resumo i[data-lucide],
.box-pros-contras i[data-lucide],
.box-alerta i[data-lucide],
.box-ficha i[data-lucide],
.box-faq i[data-lucide],
h2 i[data-lucide],
h3 i[data-lucide] {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 8px;
}

h2 i[data-lucide],
h3 i[data-lucide] {
    color: var(--postador-primary);
}

/* ========================================
   BOX RESUMO - Destaque inicial do artigo
   ======================================== */
.box-resumo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 24px 28px;
    border-radius: var(--postador-border-radius);
    margin: 24px 0;
    box-shadow: var(--postador-shadow);
    position: relative;
    overflow: hidden;
}

.box-resumo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: rotate(45deg);
}

.box-resumo i[data-lucide] {
    color: #fbbf24;
    width: 1.4em;
    height: 1.4em;
}

.box-resumo strong {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   BOX PRÓS E CONTRAS - Duas colunas
   ======================================== */
.box-pros-contras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .box-pros-contras {
        grid-template-columns: 1fr;
    }
}

.box-pros-contras .pros,
.box-pros-contras .contras {
    padding: 20px 24px;
    border-radius: var(--postador-border-radius);
    box-shadow: var(--postador-shadow);
}

.box-pros-contras .pros {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 4px solid var(--postador-success);
}

.box-pros-contras .contras {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid var(--postador-danger);
}

.box-pros-contras .pros h4,
.box-pros-contras .contras h4 {
    margin: 0 0 16px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-pros-contras .pros h4 {
    color: #166534;
}

.box-pros-contras .contras h4 {
    color: #991b1b;
}

.box-pros-contras .pros i[data-lucide] {
    color: var(--postador-success);
}

.box-pros-contras .contras i[data-lucide] {
    color: var(--postador-danger);
}

.box-pros-contras ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.box-pros-contras li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.box-pros-contras .pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--postador-success);
    font-weight: bold;
}

.box-pros-contras .contras li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--postador-danger);
    font-weight: bold;
}

/* ========================================
   BOX ALERTA - Para avisos importantes
   ======================================== */
.box-alerta {
    padding: 20px 24px;
    border-radius: var(--postador-border-radius);
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--postador-shadow);
}

.box-alerta i[data-lucide] {
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
}

.box-alerta.alerta-amarelo,
.box-alerta.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--postador-warning);
    color: #92400e;
}

.box-alerta.alerta-amarelo i[data-lucide],
.box-alerta.warning i[data-lucide] {
    color: var(--postador-warning);
}

.box-alerta.alerta-vermelho,
.box-alerta.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid var(--postador-danger);
    color: #991b1b;
}

.box-alerta.alerta-vermelho i[data-lucide],
.box-alerta.danger i[data-lucide] {
    color: var(--postador-danger);
}

.box-alerta.info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid var(--postador-info);
    color: #0c4a6e;
}

.box-alerta.info i[data-lucide] {
    color: var(--postador-info);
}

.box-alerta strong {
    font-size: 1.05em;
}

/* ========================================
   BOX FICHA - Card para dados técnicos
   ======================================== */
.box-ficha {
    background: var(--postador-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--postador-border-radius);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--postador-shadow);
}

.box-ficha .ficha-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--postador-primary);
}

.box-ficha .ficha-header i[data-lucide] {
    color: var(--postador-primary);
    width: 1.5em;
    height: 1.5em;
}

.box-ficha .ficha-header h4 {
    margin: 0;
    color: var(--postador-dark);
    font-size: 1.2em;
}

.box-ficha table {
    width: 100%;
    border-collapse: collapse;
}

.box-ficha table tr {
    border-bottom: 1px solid #e2e8f0;
}

.box-ficha table tr:last-child {
    border-bottom: none;
}

.box-ficha table th,
.box-ficha table td {
    padding: 12px 8px;
    text-align: left;
}

.box-ficha table th {
    color: #64748b;
    font-weight: 600;
    width: 40%;
}

.box-ficha table td {
    color: var(--postador-dark);
}

.box-ficha .ficha-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.box-ficha .ficha-item:last-child {
    border-bottom: none;
}

.box-ficha .ficha-label {
    color: #64748b;
    font-weight: 500;
}

.box-ficha .ficha-value {
    color: var(--postador-dark);
    font-weight: 600;
}

/* ========================================
   BOX FAQ - Estilo accordion
   ======================================== */
.box-faq {
    margin: 24px 0;
    border-radius: var(--postador-border-radius);
    overflow: hidden;
    box-shadow: var(--postador-shadow);
}

.box-faq details {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.box-faq details:last-child {
    border-bottom: none;
}

.box-faq summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--postador-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    transition: background 0.2s ease;
}

.box-faq summary::-webkit-details-marker {
    display: none;
}

.box-faq summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5em;
    color: var(--postador-primary);
    font-weight: 300;
    transition: transform 0.2s ease;
}

.box-faq details[open] summary::after {
    content: '−';
}

.box-faq summary:hover {
    background: var(--postador-light);
}

.box-faq summary i[data-lucide] {
    color: var(--postador-primary);
}

.box-faq .faq-content {
    padding: 0 24px 20px 24px;
    color: #475569;
    line-height: 1.7;
}

.box-faq .faq-content p:first-child {
    margin-top: 0;
}

.box-faq .faq-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Tabelas estilizadas (geral)
   ======================================== */
.postador-tabela,
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--postador-border-radius);
    overflow: hidden;
    box-shadow: var(--postador-shadow);
}

.postador-tabela thead,
article table thead {
    background: linear-gradient(135deg, var(--postador-primary) 0%, #2563eb 100%);
    color: #ffffff;
}

.postador-tabela th,
article table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.postador-tabela td,
article table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.postador-tabela tbody tr:nth-child(even),
article table tbody tr:nth-child(even) {
    background: var(--postador-light);
}

.postador-tabela tbody tr:hover,
article table tbody tr:hover {
    background: #e0f2fe;
}

/* ========================================
   Botões de Download estilizados
   ======================================== */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
    margin: 8px 4px;
}

.btn-download.android {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

.btn-download.android:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.btn-download.ios {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-download.ios:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-download i[data-lucide] {
    width: 1.2em;
    height: 1.2em;
}

/* ========================================
   Box CTA (Call to Action)
   ======================================== */
.box-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 32px;
    border-radius: var(--postador-border-radius);
    text-align: center;
    margin: 32px 0;
    box-shadow: var(--postador-shadow);
}

.box-cta h3 {
    margin: 0 0 16px 0;
    font-size: 1.4em;
}

.box-cta p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.box-cta a.btn {
    display: inline-block;
    background: #ffffff;
    color: var(--postador-primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.box-cta a.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Animações e Transições
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.box-resumo,
.box-pros-contras,
.box-alerta,
.box-ficha,
.box-faq,
.box-cta {
    animation: fadeInUp 0.5s ease-out;
}

/* Hover effects melhorados */
.box-ficha:hover,
.box-faq details:hover,
.postador-tabela tbody tr:hover,
article table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--postador-shadow-lg);
    transition: var(--postador-transition);
}

.btn-download,
.box-cta a.btn {
    transition: var(--postador-transition);
}

/* ========================================
   Responsividade Mobile Otimizada
   ======================================== */
@media (max-width: 768px) {

    /* Boxes gerais */
    .box-resumo,
    .box-alerta,
    .box-ficha,
    .box-cta {
        padding: 16px 18px;
        margin: 16px 0;
    }

    /* Prós e Contras empilhados */
    .box-pros-contras {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .box-pros-contras .pros,
    .box-pros-contras .contras {
        padding: 16px 18px;
    }

    /* FAQ mais compacto */
    .box-faq summary {
        padding: 14px 18px;
        font-size: 0.95em;
    }

    .box-faq .faq-content {
        padding: 0 18px 16px 18px;
    }

    /* Tabelas responsivas */
    .postador-tabela,
    article table,
    .box-ficha table {
        font-size: 0.9em;
    }

    .postador-tabela th,
    .postador-tabela td,
    article table th,
    article table td,
    .box-ficha table th,
    .box-ficha table td {
        padding: 10px 12px;
    }

    /* Botões de download empilhados */
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* CTA box */
    .box-cta {
        padding: 24px 20px;
    }

    .box-cta h3 {
        font-size: 1.2em;
    }

    .box-cta a.btn {
        width: 100%;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {

    /* Extra small devices */
    .box-resumo,
    .box-alerta {
        padding: 14px 16px;
    }

    .box-resumo strong {
        font-size: 1em;
        display: block;
        margin-bottom: 8px;
    }

    .box-ficha .ficha-header h4 {
        font-size: 1em;
    }

    .box-pros-contras .pros h4,
    .box-pros-contras .contras h4 {
        font-size: 1em;
    }
}

/* ========================================
   Classes Utilitárias
   ======================================== */
.postador-text-center {
    text-align: center;
}

.postador-text-left {
    text-align: left;
}

.postador-text-right {
    text-align: right;
}

.postador-mt-1 {
    margin-top: 8px;
}

.postador-mt-2 {
    margin-top: 16px;
}

.postador-mt-3 {
    margin-top: 24px;
}

.postador-mb-1 {
    margin-bottom: 8px;
}

.postador-mb-2 {
    margin-bottom: 16px;
}

.postador-mb-3 {
    margin-bottom: 24px;
}

.postador-p-1 {
    padding: 8px;
}

.postador-p-2 {
    padding: 16px;
}

.postador-p-3 {
    padding: 24px;
}

.postador-rounded {
    border-radius: var(--postador-border-radius);
}

.postador-rounded-sm {
    border-radius: var(--postador-border-radius-sm);
}

.postador-shadow {
    box-shadow: var(--postador-shadow);
}

.postador-shadow-lg {
    box-shadow: var(--postador-shadow-lg);
}

/* Print styles */
@media print {

    .box-resumo,
    .box-pros-contras,
    .box-alerta,
    .box-ficha,
    .box-faq,
    .box-cta {
        box-shadow: none;
        break-inside: avoid;
    }

    .btn-download,
    .box-cta a.btn {
        display: none;
    }
}

/* ========================================
   FICHA TÉCNICA - Tabela de informações
   ======================================== */
.postador-ficha {
    margin: 25px 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--postador-border-radius);
    overflow: hidden;
}

.postador-ficha table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.postador-ficha tr {
    border-bottom: 1px solid #f1f5f9;
}

.postador-ficha tr:last-child {
    border-bottom: none;
}

.postador-ficha td {
    padding: 14px 20px;
    vertical-align: top;
}

.postador-ficha td:first-child {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    width: 160px;
}

.postador-ficha td:last-child {
    color: #1e293b;
}

@media (max-width: 600px) {
    .postador-ficha td {
        display: block;
        width: 100%;
        padding: 12px 16px;
    }

    .postador-ficha td:first-child {
        width: 100%;
        padding-bottom: 4px;
    }

    .postador-ficha td:last-child {
        padding-top: 0;
    }
}

/* ========================================
   LISTA DE LINKS - Cursos, Downloads, etc.
   ======================================== */
.postador-links {
    margin: 30px 0;
}

.postador-links-title {
    color: #1e293b;
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.postador-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.postador-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--postador-transition);
}

.postador-link-item:hover {
    border-color: var(--postador-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.postador-link-name {
    color: #1e293b;
    font-weight: 500;
}

.postador-link-action {
    color: var(--postador-primary);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   MÓDULOS DO CURSO
   ======================================== */
.postador-modulos {
    margin: 30px 0;
}

.postador-modulos-title {
    color: #1e293b;
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.postador-modulo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8fafc;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 4px solid var(--postador-primary);
}

.postador-modulo-num {
    width: 32px;
    height: 32px;
    background: var(--postador-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.postador-modulo-text {
    color: #334155;
}

/* ========================================
   LISTA DE APRENDIZADO (O que vai aprender)
   ======================================== */
.postador-aprendizado {
    margin: 25px 0;
}

.postador-aprendizado-title {
    color: #1e293b;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.postador-aprendizado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.postador-aprendizado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.postador-aprendizado-check {
    color: var(--postador-success);
    font-weight: bold;
}

.postador-aprendizado-text {
    color: #334155;
}

/* ========================================
   SEÇÃO GENÉRICA (H2, H3 com estilo)
   ======================================== */
.postador-section-title {
    color: #1e293b;
    font-size: 22px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.postador-subtitle {
    color: #1e293b;
    font-size: 18px;
    margin: 25px 0 15px;
}

/* ========================================
   PRÓS E CONTRAS - Novo estilo neutro
   ======================================== */
.postador-pros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.postador-pros-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #22c55e;
    /* Verde */
}

.postador-contras-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    border-right: 4px solid #ef4444;
    /* Vermelho */
}

.postador-pros-title {
    color: #166534;
    margin: 0 0 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.postador-contras-title {
    color: #991b1b;
    margin: 0 0 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.postador-list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
}

.postador-list-item-pro {
    padding: 8px 0;
    color: #166534;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.postador-list-item-contra {
    padding: 8px 0;
    color: #991b1b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ========================================
   BOTÕES DE DOWNLOAD - SVGs e Estilo
   ======================================== */
.postador-btn-store {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 22px !important;
    background: #000000 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: transform 0.2s !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    line-height: normal !important;
}

.postador-btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.postador-btn-store svg {
    display: block !important;
    flex-shrink: 0 !important;
    fill: white !important;
}

.postador-btn-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    text-align: left !important;
    line-height: 1.1 !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
}

.postador-btn-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    opacity: 0.8 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.postador-btn-brand {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px !important;
    display: block !important;
}

/* Versão Compacta para Cards */
.postador-btn-store.small {
    padding: 8px 16px !important;
    gap: 10px !important;
    border-radius: 8px !important;
}

.postador-btn-store.small .postador-btn-brand {
    font-size: 14px !important;
}

.postador-btn-store.small svg {
    width: 22px !important;
    height: 22px !important;
}