/* ============================================================
   MENSAGEM DE HOJE — Theme CSS (Bootstrap 5 + overrides)
   ============================================================ */

:root {
  --mdh-cream:      #f0fafa;
  --mdh-cream-dark: #ddf0f0;
  --mdh-gold:       #ecbe13;
  --mdh-gold-dark:  #93a42a;
  --mdh-brown:      #046d8b;
  --mdh-brown-mid:  #309292;
  --mdh-green:      #2fb8ac;
  --mdh-text:       #023a4a;
  --mdh-text-mid:   #2a6878;
  --mdh-border:     #b8dde5;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', system-ui, sans-serif;
}

body { font-family: var(--font-sans); background: #f8f9fa; color: var(--mdh-text); -webkit-font-smoothing: antialiased; }

/* ── Navbar dark ── */
.mdh-navbar-dark { background: var(--mdh-brown) !important; }
.mdh-navbar-dark .navbar-brand, .mdh-navbar-dark .nav-link { color: rgba(255,255,255,.9) !important; }
.mdh-navbar-dark .nav-link:hover, .mdh-navbar-dark .nav-link:focus { color: var(--mdh-gold) !important; background: rgba(255,255,255,.07); border-radius: 6px; }
.mdh-navbar-dark .dropdown-menu { background: var(--mdh-brown-mid); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px; }
.mdh-navbar-dark .dropdown-item { color: rgba(255,255,255,.8); border-radius: 6px; font-size: 14px; }
.mdh-navbar-dark .dropdown-item:hover { background: rgba(255,255,255,.1); color: var(--mdh-gold); }

.mdh-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mdh-brand__icon { font-size: 20px; color: var(--mdh-gold); }
.mdh-brand__name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.mdh-btn-search { color: rgba(255,255,255,.7); padding: 6px; display: flex; align-items: center; }
.mdh-btn-search:hover { color: var(--mdh-gold); }

/* Page header */
.mdh-page-header__title { font-family: var(--font-serif); color: var(--mdh-brown); }

/* Search bar (collapse) */
.mdh-searchbar { background: var(--mdh-cream-dark); border-bottom: 1px solid var(--mdh-border); }
.mdh-searchbar .search-form { display: flex; gap: 8px; }
.mdh-searchbar label { display: none; }
.mdh-searchbar .search-field { flex: 1; padding: 8px 14px; border: 1.5px solid var(--mdh-border); border-radius: 8px; font-size: 15px; outline: none; }
.mdh-searchbar .search-field:focus { border-color: var(--mdh-gold); }
.mdh-searchbar .search-submit { padding: 8px 18px; background: var(--mdh-gold); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.mdh-searchbar .search-submit:hover { background: var(--mdh-gold-dark); }

/* ── Buttons ── */
.mdh-btn-gold { background: var(--mdh-gold); color: #fff !important; border: none; border-radius: 8px; font-weight: 600; transition: background .2s, transform .15s; }
.mdh-btn-gold:hover { background: var(--mdh-gold-dark); color: #fff !important; transform: translateY(-1px); }

/* ── Cards ── */
.mdh-feat-img  { width: 100%; height: 350px; object-fit: cover; }
.mdh-card-img  { width: 100%; height: 200px; object-fit: cover; }
.mdh-card-title-lg { font-family: var(--font-serif); font-size: 1.6rem; color: var(--mdh-brown); margin-top: 6px; }
.mdh-card-title    { font-family: var(--font-serif); color: var(--mdh-brown); line-height: 1.4; }
.card { transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,24,16,.12) !important; }
.card a img { transition: transform .35s; }
.card a:hover img { transform: scale(1.03); }

/* ── Badges ── */
.mdh-badge { background: var(--mdh-gold) !important; color: #fff; font-size: 11px; letter-spacing: .03em; padding: 4px 10px; border-radius: 99px; }
.mdh-badge.mdh-badge--tarde { background: #D4722A !important; }
.mdh-badge.mdh-badge--noite { background: #3D4F6B !important; }
.mdh-badge.mdh-badge--salmo { background: #7B6FA0 !important; }
.mdh-badge.mdh-badge--estoi { background: var(--mdh-green) !important; }
.mdh-tag-badge { background: var(--mdh-cream-dark) !important; color: var(--mdh-text-mid) !important; font-size: 12px; font-weight: 500; border-radius: 99px; padding: 5px 12px; text-decoration: none; transition: background .2s, color .2s; }
.mdh-tag-badge:hover { background: var(--mdh-gold) !important; color: #fff !important; }

/* ── Sidebar ── */
.mdh-card-header { background: var(--mdh-brown); color: #fff; font-family: var(--font-serif); font-size: 15px; font-weight: 600; border-radius: 12px 12px 0 0 !important; padding: 12px 18px; }
.mdh-sidebar-link { color: var(--mdh-text); text-decoration: none; transition: color .2s; }
.mdh-sidebar-link:hover { color: var(--mdh-gold-dark); }
.mdh-popular-num { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--mdh-border); line-height: 1; flex-shrink: 0; min-width: 28px; }
.mdh-widget--green { background: linear-gradient(135deg, var(--mdh-green), #2d5c34) !important; border: none !important; }
.mdh-nl-input { border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.15) !important; color: #fff !important; }
.mdh-nl-input::placeholder { color: rgba(255,255,255,.6); }
.mdh-nl-input:focus { border-color: rgba(255,255,255,.7) !important; box-shadow: none !important; background: rgba(255,255,255,.2) !important; }
.mdh-btn-nl { background: #fff; color: var(--mdh-green); border: none; border-radius: 8px; }
.mdh-btn-nl:hover { background: var(--mdh-cream); color: var(--mdh-green); }

/* ── Archive/search hero ── */
.mdh-archive-hero { background: linear-gradient(135deg, var(--mdh-brown), var(--mdh-brown-mid)); color: #fff; }
.mdh-archive-hero__title { font-family: var(--font-serif); font-size: clamp(22px,4vw,34px); color: #fff; margin-bottom: 8px; }
.mdh-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.mdh-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.35); }
.mdh-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.3); }
.mdh-breadcrumb--light .breadcrumb-item a { color: rgba(255,255,255,.6); }
.mdh-breadcrumb--light .breadcrumb-item.active { color: rgba(255,255,255,.35); }
.mdh-badge-outline { border: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.8); font-size:12px; border-radius:99px; padding:4px 12px; background:transparent; }

/* ── Post hero (single) ── */
.mdh-post-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.mdh-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mdh-hero__bg--fallback { background: linear-gradient(135deg, var(--mdh-brown), var(--mdh-brown-mid)); }
.mdh-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,4,.88) 0%, rgba(20,10,4,.2) 60%, transparent 100%); }
.mdh-post-hero__title { font-family: var(--font-serif); font-size: clamp(22px,3.5vw,36px); color: #fff; line-height: 1.25; margin-bottom: 10px; }
.mdh-hero__meta { color: rgba(255,255,255,.6); font-size: 13px; }

/* ── Article body ── */
.mdh-article-body { font-size: 16px; line-height: 1.85; color: var(--mdh-text); }
.mdh-article-body p { margin-bottom: 20px; }
.mdh-article-body h2 { font-family: var(--font-serif); font-size: 22px; color: var(--mdh-brown); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--mdh-border); }
.mdh-article-body h3 { font-family: var(--font-serif); font-size: 18px; color: var(--mdh-brown-mid); margin: 24px 0 10px; }
.mdh-article-body blockquote { margin: 24px 0; padding: 20px 24px; background: var(--mdh-cream-dark); border-left: 4px solid var(--mdh-gold); border-radius: 0 10px 10px 0; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--mdh-brown); }
.mdh-article-body ul, .mdh-article-body ol { padding-left: 20px; margin-bottom: 20px; }
.mdh-article-body li { margin-bottom: 8px; }

/* Share buttons */
.mdh-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: none; color: #fff; cursor: pointer; transition: transform .2s; text-decoration: none; }
.mdh-share-btn:hover { transform: translateY(-2px); }
.mdh-share-btn--whatsapp { background: #25D366; }
.mdh-share-btn--facebook { background: #1877F2; }
.mdh-share-btn--twitter  { background: #000; }
.mdh-share-btn--copy     { background: var(--mdh-cream-dark); color: var(--mdh-text-mid); }

/* ── Pagination (Bootstrap override) ── */
.pagination { justify-content: center; margin: 16px 0; }
.page-link { color: var(--mdh-gold-dark); border-color: var(--mdh-border); }
.page-link:hover { background: var(--mdh-cream); color: var(--mdh-gold-dark); border-color: var(--mdh-border); }
.page-item.active .page-link { background: var(--mdh-gold); border-color: var(--mdh-gold); color: #fff; }
/* WP paginate_links list override */
ul.page-numbers { display: flex; gap: 4px; list-style: none; padding: 0; margin: 16px 0; justify-content: center; }
ul.page-numbers li a, ul.page-numbers li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--mdh-gold-dark); border: 1px solid var(--mdh-border); background: #fff; text-decoration: none; transition: all .2s; }
ul.page-numbers li a:hover { background: var(--mdh-gold); color: #fff; border-color: var(--mdh-gold); }
ul.page-numbers li span.current { background: var(--mdh-gold); color: #fff; border-color: var(--mdh-gold); }

/* ── Footer ── */
.mdh-footer { background: var(--mdh-brown); }
.mdh-footer-link { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.mdh-footer-link:hover { color: var(--mdh-gold); }
.mdh-footer-muted { color: rgba(255,255,255,.4); }

/* ── Ad bars ── */
.mdh-ad-bar { background: #f0ebe4; }
.mdh-ad-bar--top { padding: 10px 0; border-bottom: 1px solid var(--mdh-border); }
.mdh-ad-bar--footer { padding: 12px 0; border-top: 1px solid var(--mdh-border); }
.ad-block { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 90px; }
.ad-block__label { font-size: 10px; color: var(--mdh-text-mid); text-transform: uppercase; letter-spacing: .08em; align-self: flex-start; }
.ad-block .adsbygoogle { width: 100%; min-height: 90px; }
.ad-block ins:empty { display: block; width: 100%; min-height: 90px; background: repeating-linear-gradient(45deg, var(--mdh-border), var(--mdh-border) 1px, transparent 1px, transparent 12px); border-radius: 8px; border: 1px dashed var(--mdh-border); }

/* ── Back to top ── */
.mdh-back-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--mdh-gold); color: #fff; border: none; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(44,24,16,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .22s, transform .22s; cursor: pointer; z-index: 999; }
.mdh-back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mdh-back-top:hover { background: var(--mdh-gold-dark); }

/* ── LGPD Banner ── */
.mdh-lgpd-banner { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(4,43,55,.97); border-top: 1px solid rgba(255,255,255,.1); z-index: 1050; }

/* ── Related posts heading ── */
.mdh-section-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--mdh-brown); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .mdh-feat-img { height: 220px; }
  .mdh-card-img { height: 160px; }
  .mdh-article-body { font-size: 15px; }
  .mdh-post-hero__title { font-size: 22px; }
}
