/* =========================================================
   GODRONES - COMPONENTES EDITORIAIS / GUTENBERG
   Mesmo arquivo é utilizado no front-end e no editor.
========================================================= */

.gd-alert-box,
.gd-info-box,
.gd-warning-box,
.gd-checklist,
.gd-table-wrapper,
.gd-pros-cons,
.gd-read-more-card,
.gd-editorial-quote,
.gd-article-cta {
    --gd-editorial-primary: #2563eb;
    --gd-editorial-dark: #0f172a;
    --gd-editorial-text: #334155;
    --gd-editorial-muted: #64748b;
    --gd-editorial-border: #e2e8f0;
    box-sizing: border-box;
}

/* ALERTAS */
.gd-alert-box,
.gd-info-box,
.gd-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 40px 0;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 16px;
}

/* Compatibilidade com os padrões já inseridos na v2.5.0. */
.gd-info-box,
.gd-alert-tip {
    background: #eff6ff;
    border-color: #dbeafe;
}

.gd-warning-box,
.gd-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.gd-alert-info {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.gd-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.gd-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.gd-alert-law {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.gd-pattern-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.15rem;
    line-height: 1;
}

.gd-info-icon,
.gd-alert-tip .gd-pattern-icon {
    background: #dbeafe;
    color: var(--gd-editorial-primary);
}

.gd-warning-icon,
.gd-alert-warning .gd-pattern-icon {
    background: #fef3c7;
    color: #d97706;
}

.gd-alert-info .gd-pattern-icon {
    background: #cffafe;
    color: #0891b2;
}

.gd-alert-success .gd-pattern-icon {
    background: #dcfce7;
    color: #16a34a;
}

.gd-alert-danger .gd-pattern-icon {
    background: #fee2e2;
    color: #dc2626;
}

.gd-alert-law .gd-pattern-icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.gd-pattern-copy {
    flex: 1;
    min-width: 0;
}

.gd-pattern-copy > *:first-child {
    margin-top: 0 !important;
}

.gd-pattern-copy > *:last-child {
    margin-bottom: 0 !important;
}

.gd-pattern-copy p,
.gd-alert-box p,
.gd-info-box p,
.gd-warning-box p {
    color: var(--gd-editorial-text);
    font-size: .9rem;
    line-height: 1.65;
}

.gd-pattern-title {
    margin: 0 0 6px !important;
    color: var(--gd-editorial-dark) !important;
    font-size: .92rem !important;
}

/* CHECKLIST */
.gd-checklist {
    margin: 40px 0;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid var(--gd-editorial-border);
    border-radius: 18px;
}

.gd-checklist h3 {
    margin: 0 0 20px !important;
    color: var(--gd-editorial-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
}

.gd-checklist ul,
.gd-checklist .wp-block-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gd-checklist li {
    position: relative;
    margin: 0 !important;
    padding: 9px 0 9px 28px !important;
    color: var(--gd-editorial-text);
}

.gd-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 9px;
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: .72rem;
    font-weight: 800;
}

/* TABELA */
.gd-table-wrapper,
figure.wp-block-table.gd-table-wrapper {
    width: 100%;
    margin: 40px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0 !important;
    border-radius: 15px;
    background: transparent;
    -webkit-overflow-scrolling: touch;
}

.gd-table-wrapper table,
figure.wp-block-table.gd-table-wrapper table {
    width: 100%;
    min-width: 600px;
    margin: 0 !important;
    border: 1px solid var(--gd-editorial-border) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 15px;
    background: #fff;
}

.gd-table-wrapper th,
.gd-table-wrapper td {
    border: 0 !important;
    text-align: left;
    background-clip: padding-box;
}

.gd-table-wrapper th {
    padding: 16px 18px;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
}

.gd-table-wrapper td {
    padding: 16px 18px;
    border-top: 1px solid #f1f5f9 !important;
    color: var(--gd-editorial-text);
    font-size: .85rem;
}

/* Os cantos ficam no próprio conteúdo da tabela. Isso evita os recortes
   quadrados do bloco wp:table quando há rolagem horizontal. */
.gd-table-wrapper thead tr:first-child th:first-child {
    border-top-left-radius: 14px;
}

.gd-table-wrapper thead tr:first-child th:last-child {
    border-top-right-radius: 14px;
}

.gd-table-wrapper tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.gd-table-wrapper tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

/* PRÓS E CONTRAS */
.gd-pros-cons {
    gap: 18px;
    margin: 42px 0;
}

.gd-pros-card,
.gd-cons-card {
    padding: 26px !important;
    border: 1px solid var(--gd-editorial-border);
    border-radius: 18px;
    background: #fff;
}

.gd-pros-card {
    border-top: 3px solid #22c55e;
}

.gd-cons-card {
    border-top: 3px solid #ef4444;
}

.gd-pros-cons-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px !important;
    color: var(--gd-editorial-muted);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.gd-pros-card .gd-pros-cons-label i { color: #16a34a; }
.gd-cons-card .gd-pros-cons-label i { color: #dc2626; }

.gd-pros-card h3,
.gd-cons-card h3 {
    margin: 0 0 16px !important;
    color: var(--gd-editorial-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
}

.gd-pros-card ul,
.gd-cons-card ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gd-pros-card li,
.gd-cons-card li {
    position: relative;
    padding: 7px 0 7px 25px !important;
}

.gd-pros-card li::before,
.gd-cons-card li::before {
    position: absolute;
    left: 0;
    top: 7px;
    font-weight: 800;
}

.gd-pros-card li::before { content: "✓"; color: #16a34a; }
.gd-cons-card li::before { content: "×"; color: #dc2626; font-size: 1.15rem; }

/* LEIA TAMBÉM */
.gd-read-more-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 38px 0;
    padding: 20px 22px;
    border: 1px solid var(--gd-editorial-border);
    border-radius: 15px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gd-read-more-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.gd-read-more-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: var(--gd-editorial-primary);
}

.gd-read-more-copy { min-width: 0; }
.gd-read-more-copy p { margin: 0 !important; }

.gd-read-more-label {
    margin-bottom: 4px !important;
    color: var(--gd-editorial-muted) !important;
    font-size: .62rem !important;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.gd-read-more-title {
    color: var(--gd-editorial-dark) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.4;
}

.gd-read-more-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* CITAÇÃO */
.gd-editorial-quote,
blockquote.gd-editorial-quote {
    margin: 45px 0 !important;
    padding: 10px 0 10px 30px !important;
    border: 0 !important;
    border-left: 4px solid var(--gd-editorial-primary) !important;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.55;
}

.gd-editorial-quote p { margin: 0 !important; }
.gd-editorial-quote cite {
    display: block;
    margin-top: 12px;
    color: var(--gd-editorial-muted);
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-style: normal;
    font-weight: 600;
}

/* CTA */
.gd-article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 60px 0;
    padding: 35px;
    border-radius: 20px;
    background: #0f172a;
    color: #fff;
}

.gd-cta-copy { flex: 1 1 420px; }
.gd-article-cta .gd-cta-eyebrow {
    margin: 0 0 7px !important;
    color: #60a5fa !important;
    font-size: .66rem !important;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.gd-article-cta h3 {
    margin: 0 0 7px !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
}

.gd-article-cta p:not(.gd-cta-eyebrow) {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: .88rem;
    line-height: 1.65;
}

.gd-article-cta .wp-block-buttons { margin: 0; }
.gd-article-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: #fff !important;
    color: #0f172a !important;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease;
}

.gd-article-cta .wp-block-button__link:hover { transform: translateY(-2px); }

/* Editor Gutenberg */
.editor-styles-wrapper .gd-alert-box,
.editor-styles-wrapper .gd-info-box,
.editor-styles-wrapper .gd-warning-box,
.editor-styles-wrapper .gd-checklist,
.editor-styles-wrapper .gd-table-wrapper,
.editor-styles-wrapper .gd-pros-cons,
.editor-styles-wrapper .gd-read-more-card,
.editor-styles-wrapper .gd-editorial-quote,
.editor-styles-wrapper .gd-article-cta {
    font-family: 'Inter', sans-serif;
}

.editor-styles-wrapper .gd-alert-box .block-editor-block-list__layout,
.editor-styles-wrapper .gd-info-box .block-editor-block-list__layout,
.editor-styles-wrapper .gd-warning-box .block-editor-block-list__layout {
    width: 100%;
}

@media (max-width: 767px) {
    .gd-alert-box,
    .gd-info-box,
    .gd-warning-box {
        padding: 20px;
    }

    .gd-checklist { padding: 22px; }

    .gd-pros-cons {
        flex-direction: column;
        gap: 14px;
    }

    .gd-article-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .gd-article-cta .wp-block-buttons,
    .gd-article-cta .wp-block-button,
    .gd-article-cta .wp-block-button__link {
        width: 100%;
    }

    .gd-article-cta .wp-block-button__link { justify-content: center; }
}

/* =========================================================
   CARD DE CURSO NO CONTEÚDO — SHORTCODE [curso_card]
========================================================= */
.gd-inline-course-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 210px;
    align-items: center;
    gap: 22px;
    margin: 44px 0;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 0%, rgba(37, 99, 235, .22), transparent 32%),
        linear-gradient(135deg, #111c30 0%, #0f172a 60%, #0b1220 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
}

.gd-inline-course-card::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -120px;
    width: 220px;
    height: 220px;
    border: 45px solid rgba(37, 99, 235, .045);
    border-radius: 50%;
    pointer-events: none;
}

.gd-inline-course-symbol {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin-top: 2px;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 15px;
    background: rgba(37, 99, 235, .14);
    color: #60a5fa;
    font-size: 1.35rem;
}

.gd-inline-course-copy,
.gd-inline-course-action {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.gd-inline-course-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #60a5fa;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.gd-inline-course-copy h3 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem !important;
    font-weight: 700;
    line-height: 1.2;
}

.gd-inline-course-copy > p {
    max-width: 620px;
    margin: 0 0 14px !important;
    color: #94a3b8 !important;
    font-size: .84rem !important;
    line-height: 1.6 !important;
}

.gd-inline-course-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gd-inline-course-highlights li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    color: #cbd5e1 !important;
    font-size: .75rem;
    line-height: 1.35;
}

.gd-inline-course-highlights li::before {
    display: none !important;
}

.gd-inline-course-highlights i {
    flex: 0 0 auto;
    color: #22c55e;
    font-size: .78rem;
}

.gd-inline-course-action {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
}

.gd-inline-course-price-label {
    display: block;
    margin-bottom: 7px;
    color: #94a3b8;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.gd-inline-course-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 13px;
    color: #fff;
    line-height: 1;
}

.gd-inline-course-price > span {
    margin: 8px 4px 0 0;
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 700;
}

.gd-inline-course-price strong {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.gd-inline-course-price sup {
    margin: 5px 0 0 2px;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.gd-inline-course-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gd-inline-course-button:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .28);
}

.gd-inline-course-button i {
    transition: transform .2s ease;
}

.gd-inline-course-button:hover i {
    transform: translate(2px, -2px);
}

@media (max-width: 900px) {
    .gd-inline-course-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px;
    }

    .gd-inline-course-symbol {
        width: 48px;
        height: 48px;
    }

    .gd-inline-course-action {
        grid-column: 2;
        display: grid;
        grid-template-columns: auto minmax(150px, 210px);
        align-items: center;
        gap: 14px;
        padding: 15px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
        border-left: 0;
        text-align: left;
    }

    .gd-inline-course-price-label {
        display: none;
    }

    .gd-inline-course-price {
        justify-content: flex-start;
        margin: 0;
    }
}

@media (max-width: 620px) {
    .gd-inline-course-card {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 34px 0;
        padding: 22px;
        border-radius: 17px;
    }

    .gd-inline-course-symbol {
        align-self: auto;
        margin: 0;
    }

    .gd-inline-course-copy h3 {
        font-size: 1.2rem !important;
    }

    .gd-inline-course-highlights {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .gd-inline-course-action {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 17px;
    }

    .gd-inline-course-price {
        justify-content: flex-start;
    }

    .gd-inline-course-button {
        width: 100%;
    }
}
