/* Identidade Visual Oficial - A Palavra Se Fez Vida (Sépia & Vermelho Sangue) */
:root {
    --primary: #8A0303;
    --primary-dark: #5C0202;
    --primary-light: #EAE0C8;
    --sepia-soft: #F5ECD8;
    --sepia-medium: #704214;
    --sepia-border: #D2C4A7;
    --text-main: #3B241E;
    --white: #FCF9F2;
    --shadow-soft: 0 12px 32px rgba(92, 2, 2, 0.08);
    --shadow-hover: 0 18px 40px rgba(92, 2, 2, 0.14);
    --radius-card: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--sepia-soft);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, .serif-font {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--primary-dark);
}
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); }

.navbar-liturgica {
    background: rgba(138, 3, 3, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-dark);
    padding: 0.75rem 0;
}
.navbar-liturgica .navbar-brand {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.navbar-liturgica .nav-link {
    color: rgba(252, 249, 242, 0.92) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px;
}
.navbar-liturgica .nav-link:hover, .navbar-liturgica .nav-link.active {
    color: var(--primary-light) !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-liturgico {
    background: var(--primary);
    color: var(--white) !important;
    border: 1px solid var(--primary-dark);
    border-radius: 12px;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    transition: all 0.25s ease;
}
.btn-liturgico:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(138, 3, 3, 0.25);
}
.btn-sepia {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
    border: 1px solid var(--sepia-border);
    border-radius: 12px;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
}
.btn-sepia:hover { background: #e0d2b4; color: var(--primary) !important; }

.hero-liturgico {
    background: linear-gradient(135deg, rgba(58, 8, 8, 0.93), rgba(138, 3, 3, 0.89));
    color: var(--white);
    padding: 5rem 0 4.5rem;
    border-bottom: 4px solid var(--sepia-border);
}
.hero-liturgico h1 { color: var(--white); font-size: 2.8rem; line-height: 1.2; }
.hero-badge {
    display: inline-block;
    background: rgba(234, 224, 200, 0.16);
    border: 1px solid rgba(234, 224, 200, 0.35);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.card-liturgico {
    background: var(--white);
    border: 1px solid var(--sepia-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-liturgico:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-liturgico .card-cover { height: 200px; width: 100%; object-fit: cover; border-bottom: 1px solid var(--sepia-border); }
.card-liturgico .card-cover-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--primary-light);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem; text-align: center;
}
.tag-area {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--sepia-border);
    font-size: 0.76rem; font-weight: 600;
    padding: 0.25rem 0.7rem; border-radius: 999px;
}

.artigo-container {
    background: var(--white);
    border: 1px solid var(--sepia-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}
.artigo-corpo { font-size: 1.12rem; line-height: 1.85; color: #2f1c17; }
.artigo-corpo p { margin-bottom: 1.35rem; }
.artigo-corpo h2, .artigo-corpo h3, .artigo-corpo h4 { margin-top: 2rem; margin-bottom: 1rem; color: var(--primary-dark); }
.artigo-corpo blockquote {
    background: var(--sepia-soft); border-left: 4px solid var(--primary);
    padding: 1.1rem 1.4rem; border-radius: 10px;
    font-family: 'Merriweather', serif; font-style: italic; color: var(--primary-dark);
}
.artigo-corpo img { max-width: 100%; height: auto; border-radius: 14px; margin: 1rem 0; }

.form-control, .form-select {
    background-color: #fffdf9;
    border: 1px solid var(--sepia-border);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: var(--text-main);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(138, 3, 3, 0.15);
}

.painel-box {
    background: var(--white);
    border: 1px solid var(--sepia-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}
.admin-sidebar {
    background: var(--white);
    border: 1px solid var(--sepia-border);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}
.admin-sidebar .nav-link {
    color: var(--text-main); font-weight: 500;
    padding: 0.65rem 1rem; border-radius: 12px; margin-bottom: 0.3rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: var(--primary); color: var(--white) !important;
}

.footer-liturgico {
    margin-top: auto;
    background: var(--primary-light);
    border-top: 2px solid var(--sepia-border);
    color: var(--sepia-medium);
    padding: 3rem 0 2rem;
}
.owner-badge-card {
    background: #ffffff;
    border: 1px solid var(--sepia-border);
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    display: inline-flex; align-items: center; gap: 0.85rem;
    box-shadow: 0 6px 18px rgba(92, 2, 2, 0.06);
}
.owner-badge-card img { height: 54px; width: auto; }

.lgpd-cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    max-width: 960px; margin: 0 auto;
    background: var(--white); border: 2px solid var(--primary);
    border-radius: 18px; padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    z-index: 9999; display: none;
}
@media (max-width: 768px) {
    .hero-liturgico h1 { font-size: 2rem; }
    .artigo-container { padding: 1.5rem; }
}
