/*
Theme Name: ProfCorrea
Description: Tema oficial do Blog do Professor Correia - Bootstrap 5 + Dark Mode
Version: 1.0.0
Author: Professor Correia
Text Domain: profcorrea
Requires PHP: 8.0
Tested up to: 6.7
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

:root {
    --bs-primary: #136dec;
    --bs-primary-rgb: 19, 109, 236;
    --bs-body-font-family: "Inter", sans-serif;
    --bs-link-hover-color: var(--bs-primary)
}

[data-bs-theme="light"] {
    --bs-body-color: #334155;
    --bs-body-bg: #f8fafc;
    --bs-secondary-bg: #fff;
    --bs-tertiary-bg: #f1f5f9;
    --bs-border-color: #e2e8f0;
    --bs-heading-color: #0f172a;
    --bs-card-bg: #fff;
    --bs-card-border-color: var(--bs-border-color)
}

[data-bs-theme="dark"] {
    --bs-body-color: #cbd5e1;
    --bs-body-bg: #0f172a;
    --bs-secondary-bg: #1e293b;
    --bs-tertiary-bg: #1e293b;
    --bs-border-color: #334155;
    --bs-heading-color: #f8fafc;
    --bs-card-bg: #1e293b;
    --bs-card-border-color: var(--bs-border-color);
    --bs-primary: #388bfd;
    --bs-primary-rgb: 56, 139, 253
}

.navbar { backdrop-filter: blur(10px) }
[data-bs-theme="light"] .navbar { background-color: rgba(248, 250, 252, 0.8) !important }
[data-bs-theme="dark"] .navbar { background-color: rgba(15, 23, 42, 0.8) !important; border-bottom-color: #334155 !important }

.hero-section { background-size: cover; background-position: center center; background-repeat: no-repeat; min-height: 400px }

.post-card-img { background-size: cover; background-position: center; background-repeat: no-repeat }
@media (min-width: 768px) { .post-card-img { aspect-ratio: 4/3; min-height: auto } }

[data-bs-theme="dark"] .footer { background-color: #020617; border-top: 1px solid #1e293b }
[data-bs-theme="dark"] .footer .text-slate-400 { color: #94a3b8 !important }
[data-bs-theme="dark"] .footer a.text-slate-400:hover { color: #fff !important }
[data-bs-theme="dark"] .footer .border-slate-700 { border-color: #334155 !important }

.theme-switch { display: flex; align-items: center }
.theme-switch .material-symbols-outlined { font-size: 1.25rem; line-height: 1 }
.theme-switch #theme-toggle:checked ~ .sun-icon { display: block }
.theme-switch #theme-toggle:checked ~ .moon-icon { display: none }
.theme-switch #theme-toggle:not(:checked) ~ .sun-icon { display: none }
.theme-switch #theme-toggle:not(:checked) ~ .moon-icon { display: block }

[data-bs-theme="dark"] #theme-toggle { display: none }
[data-bs-theme="dark"] #theme-toggle:not(:checked) ~ .sun-icon { display: block }
[data-bs-theme="dark"] #theme-toggle:not(:checked) ~ .moon-icon { display: none }

/* Seu CSS original otimizado para WP */
.card { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stretched-link { color: inherit; }
.list-group-item { border: none; }