/* ======================================================
   ESTILOS GLOBAIS E OVERRIDES (Não-Tailwind)
====================================================== */

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo para o conteúdo do post */
.prose {
    color: #374151;
}

.dark .prose {
    color: #E6E6F0;
}

/* ======================================================
   SWITCH DARK MODE
====================================================== */

.theme-switch-wrapper {
    margin-left: 25px;
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    display: inline-block;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    background: #839abd72;
    border-radius: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px;
    transition: .3s;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .2);
}

.switch-slider svg {
    width: 16px;
    height: 16px;
    fill: white;
    transition: .3s;
}

.switch-slider .sun {
    z-index: 1;
    color: rgb(255, 123, 0);
    right: 3.5px;
    position: relative;
}

.switch-slider .moon {
    z-index: 1;
    color: rgb(21, 3, 78);
    left: 3px;
    position: relative;
}

.theme-switch input+.switch-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s cubic-bezier(.3, 1.5, .5, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
    transform: scale(1);
}

.theme-switch input:checked+.switch-slider {
    background: #839abd72;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .35);
}

.theme-switch input:checked+.switch-slider:before {
    transform: translateX(30px) scale(1.05);
}

.theme-switch input:checked+.switch-slider .sun {
    opacity: 0;
}

.theme-switch input:checked+.switch-slider .moon {
    opacity: 1;

}

.theme-switch input:not(:checked)+.switch-slider .sun {
    opacity: 1;
    position: relative;
}

.theme-switch input:not(:checked)+.switch-slider .moon {
    opacity: 0;
}

.theme-switch input:not(:checked)+.switch-slider:before {
    transform: translateX(0) scale(1);
}

/* ======================================================
   DARK MODE GLOBAL — ATIVO
====================================================== */

html.dark body {
    background-color: #1b1b21;
    color: #E6E6F0;
}

html.dark header {
    background: #2b2b34;
    color: #fff;
    border-color: #2C2C36;
}

html.dark a {
    color: #C7C7FF;
}

html.dark a:hover {
    color: #9FA8FF;
}

/* Cards */
html.dark .post-card,
html.dark .post-single,
html.dark .contact-page {
    background: #252530;
    color: #E6E6F0;
    border-color: #2E2E38;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}

/* Conteúdo */
html.dark .post-single h1 {
    color: #fff !important;
}

html.dark .prose a {
    color: #9FA8FF;
}

html.dark .prose a:hover {
    color: #C7C7FF;
}

html.dark .prose blockquote {
    border-left-color: #4B5563;
    color: #D1D5DB;
}

html.dark .prose code,
html.dark .prose pre {
    background: #1F2937;
    color: #F3F4F6;
    border-color: #374151;
}

/* Footer */
html.dark footer {
    background: #1E1E26;
    border-top-color: #2C2C36;
}

html.dark footer p {
    color: #C7C7D5;
}

/* Switch visual fix */
html.dark .switch-slider .sun {
    opacity: 0;
}

html.dark .switch-slider .moon {
    opacity: 1;
}

html.dark .mb-12 h1{
    color: #ffffff;

}

/* ======================================================
   LIGHT MODE (ÚNICO MANTIDO)
====================================================== */

html body {
    background: #F7F8FA;
    color: #222;
}

/* Header */
header {
    color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

header .h-10 {
    height: 80px;

}

header a {
    color: #111;
}

header a:hover {
    color: #0E47DA;
}

/* Links */
a {
    color: #0048FF;
    transition: .25s;
}

a:hover {
    color: #193BFF;
}

.mb-12 h1{
    color: #2C2C36;

}

/* Cards */
.post-card,
.post-single,
.contact-page {
    background: #fff;
    color: #222;
    border: 1px solid #E5E7EB;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .05);
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #E5E7EB;
    color: #444;
}

footer p {
    color: #444;
}

/* Tipografia */
.prose {
    color: #374151;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #ffffff;
}

/* Inputs */
input,
textarea,
select {
    background: #fff;
    color: #111;
    border: 1px solid #D1D5DB;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .25);
}

/* =====================================
   FIX DEFINITIVO – ESPAÇAMENTO DE TEXTO
   POSTS DO BLOG
===================================== */

.prose p {
    margin-bottom: 1.25rem; /* espaço entre parágrafos */
    line-height: 1.75;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Garante espaçamento entre listas */
.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* ===============================
   AJUSTE DE SUBTÍTULOS NO CONTEÚDO
   =============================== */

/* H2 dentro do conteúdo do post */
.prose h2 {
    font-size: 1.75rem;          /* maior destaque */
    font-weight: 700;            /* negrito real */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #111827;              /* gray-900 (light mode) */
}

.prose h1 {
    font-size: 2.25rem;          /* maior que h2 */
    font-weight: 800;            /* destaque máximo */
    margin-top: 0;               /* h1 normalmente não precisa margem superior */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #111827;              /* gray-900 (light mode) */
}


/* Dark mode */
html.dark .prose h2 {
    color: #F9FAFB;              /* quase branco */
}

/* Dark mode */
html.dark .prose h1 {
    color: #F9FAFB;              /* quase branco */
}

/* Opcional: pequena barra visual (fica MUITO bom) */
.prose h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: #2563EB;         /* azul destaque */
    margin-bottom: 0.75rem;
    border-radius: 2px;
}
