@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Variáveis do Sistema de Design --- */
:root {
    --primary: #0C4DA2;
    --primary-rgb: 12, 77, 162;
    --primary-dark: #073574;
    --primary-light: #e6f0fa;
    --accent: #c5a880; /* Dourado corporativo */
    --accent-hover: #b4966d;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-main: #f7fafc;
    --bg-card: #ffffff;
    --bg-dark: #111318;
    --bg-dark-accent: #1e222b;
    --border-color: #edf2f7;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras Elevadas */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(var(--primary-rgb), 0.08), 0 8px 10px -6px rgba(var(--primary-rgb), 0.04);
    --shadow-hover: 0 20px 35px -5px rgba(var(--primary-rgb), 0.15), 0 10px 15px -5px rgba(var(--primary-rgb), 0.07);
    
    /* Outros */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 20px;
}

/* --- Resets Gerais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Grid e Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Cabeçalho Global (Header) --- */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scroll-shadow {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.admin-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-badge:hover {
    background-color: var(--primary);
    color: white;
}

/* --- Banner de Destaque --- */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

/* --- Tarja de Promoção (Topo do Site) --- */
.promo-topbar {
    position: relative;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 14px 50px 14px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.promo-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
}

.promo-topbar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.promo-topbar-text {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.promo-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.32);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.promo-topbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.promo-topbar-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.promo-topbar-close {
    position: absolute;
    z-index: 1;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.promo-topbar-close:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.promo-countdown {
    display: flex;
    gap: 8px;
}

.promo-countdown-unit {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.32));
    border-radius: 8px;
    padding: 7px 11px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-heading);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.promo-countdown-num {
    font-weight: 700;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.promo-countdown-label {
    font-size: 0.7rem;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .promo-topbar {
        padding: 14px 44px 14px 14px;
    }
    .promo-countdown {
        width: 100%;
        justify-content: center;
    }
}

/* --- Slider de Banners (Topo do Blog) --- */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 6;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

@media (max-width: 700px) {
    .hero-slider {
        aspect-ratio: 16 / 9;
    }
}

/* --- Layout de Colunas (Main & Sidebar) --- */
.blog-content {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* --- Cards dos Artigos (Grid de Posts) --- */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-dark-accent);
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(var(--primary-rgb), 0.95);
    color: white;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-card-content {
    padding: 32px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 16px;
}

.post-card:hover .post-card-title {
    color: var(--primary);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    gap: 4px;
}

.post-read-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.post-card:hover .post-read-more::after {
    transform: translateX(4px);
}

/* --- Barra Lateral (Sidebar) --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 110px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Widget Pesquisa */
.search-widget form {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 44px;
    border: none;
    background-color: var(--primary);
    color: white;
    border-radius: calc(var(--border-radius) - 4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-dark);
}

/* Widget Bio Marcello Safe */
.author-profile {
    text-align: center;
}

.author-avatar-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid var(--accent);
    background-color: white;
    box-shadow: var(--shadow-md);
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.author-role {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.author-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: justify;
}

/* Botão YouTube Premium */
.yt-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ff0000;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    transition: var(--transition);
}

.yt-subscribe-btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: scale(1.1);
}

/* --- Paginação --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Página Interna do Artigo (post.php) --- */
.post-details {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--text-muted);
}

.post-detail-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.post-detail-featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.post-detail-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-content-body p {
    margin-bottom: 24px;
}

.post-content-body h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.post-content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--text-main);
}

.post-content-body ul, 
.post-content-body ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.post-content-body li {
    margin-bottom: 10px;
}

.post-content-body blockquote {
    font-style: italic;
    background-color: var(--primary-light);
    border-left: 4px solid var(--accent);
    padding: 24px 32px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 32px 0;
    color: var(--primary-dark);
}

/* Alinhamento de texto vindo do editor Quill (ql-align-*) */
.post-content-body .ql-align-center {
    text-align: center;
}

.post-content-body .ql-align-right {
    text-align: right;
}

.post-content-body .ql-align-justify {
    text-align: justify;
}

/* Compartilhamento Social */
.share-section {
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding-top: 30px;
}

.share-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #1DA1F2; }
.share-linkedin { background-color: #0077B5; }

/* --- Mensagens de Alerta (Busca vazia / Sucesso / Erro) --- */
.no-results {
    background-color: var(--bg-card);
    padding: 48px;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.no-results-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Rodapé --- */
.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* --- Estilos do Painel Administrativo --- */
.admin-body {
    background-color: #f3f4f6;
    color: #1f2937;
    font-family: var(--font-body);
}

.login-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 48px;
    max-width: 450px;
    width: 90%;
    margin: 100px auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Painel Geral do Admin */
.admin-navbar {
    background-color: var(--bg-dark);
    color: white;
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-link-out {
    background-color: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.admin-link-out:hover {
    background-color: rgba(255,255,255,0.2);
}

.admin-btn-logout {
    background-color: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-btn-logout:hover {
    background-color: #b91c1c;
}

.admin-content {
    padding: 40px 0;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-page-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
}

.admin-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th, 
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background-color: #f9fafb;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.admin-table tr:hover td {
    background-color: #f9fafb;
}

.badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-published {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-draft {
    background-color: #fef3c7;
    color: #92400e;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.cover-preview-img {
    height: 48px;
    width: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* Editor Form */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.editor-wrapper {
    margin-bottom: 24px;
}

#editor-container {
    height: 350px;
    font-family: var(--font-body);
    font-size: 1rem;
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}

.ql-toolbar {
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    background-color: #f9fafb;
}

.image-upload-preview {
    margin-top: 12px;
    max-width: 300px;
    max-height: 180px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    display: block;
}

/* --- Media Queries (Responsividade Avançada) --- */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .post-detail-title {
        font-size: 2rem;
    }
    .header-container {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 16px;
    }
    .logo img {
        height: 38px;
    }
    .logo-text {
        font-size: 1.25rem;
    }
    .main-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .post-details {
        padding: 24px;
    }
    .post-card-content {
        padding: 24px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    .share-buttons {
        flex-direction: column;
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    .admin-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .admin-card {
        padding: 16px;
    }
}
