/* =========================================
   VOZ DA TOGA — Design System Unificado v4.0
   Fusão do melhor dos dois projetos
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === VARIÁVEIS === */
:root {
  --navy:       #0f2540;
  --navy-mid:   #1a3a5c;
  --navy-light: #234d7a;
  --gold:       #c9a84c;
  --gold-light: #e4c97e;
  --gold-dark:  #a07830;
  --gold-pale:  #fdf6e3;
  --white:      #ffffff;
  --off-white:  #f8f6f0;
  --light-gray: #f0ede6;
  --mid-gray:   #8a8278;
  --dark-gray:  #3a3530;
  --text-body:  #2a2520;
  --success:    #27ae60;
  --warning:    #e67e22;
  --danger:     #e74c3c;

  --gray-100: #f5f5f0;
  --gray-200: #e8e6e0;
  --gray-400: #a09890;
  --gray-600: #5a5550;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);

  --radius:    8px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--off-white); color: var(--text-body); line-height: 1.7; min-height: 100vh; }
a { color: var(--navy-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-serif); line-height: 1.3; color: var(--navy); }

/* === UTILIDADES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.hidden { display: none !important; }

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 12px auto 20px;
}
.divider-left { margin-left: 0; }

/* === BOTÕES === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.5px;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(201,168,76,0.45); color: var(--navy); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--gold); }
.btn-outline-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); color: white; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* === BADGES === */
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:.5px; }
.badge-gold { background:var(--gold-pale); color:var(--gold-dark); border:1px solid var(--gold); }
.badge-navy { background:var(--navy); color:var(--gold); }
.badge-green { background:#e8f5ed; color:#1e7e45; }
.badge-red { background:#fdecea; color:#c0392b; }
.badge-gray { background:var(--light-gray); color:var(--mid-gray); }

/* === SPINNER === */
.spinner { display:inline-block; width:20px; height:20px; border:3px solid rgba(201,168,76,0.3); border-top-color:var(--gold); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* === TOAST === */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.toast {
  background:var(--navy); color:white; padding:12px 20px; border-radius:var(--radius-md);
  border-left:4px solid var(--gold); box-shadow:var(--shadow-lg);
  font-size:14px; max-width:340px; animation:slideIn .3s ease;
  display:flex; align-items:center; gap:10px;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* === ALERTS === */
.alert { padding:12px 16px; border-radius:var(--radius); margin-bottom:16px; font-size:14px; display:flex; align-items:flex-start; gap:10px; line-height:1.5; }
.alert-success { background:#e8f5ed; color:#1e7e45; border-left:4px solid var(--success); }
.alert-error   { background:#fdecea; color:#c0392b; border-left:4px solid var(--danger); }
.alert-warning { background:#fff8e6; color:#7a5e18; border-left:4px solid var(--gold); }
.alert-info    { background:#e8edf8; color:var(--navy); border-left:4px solid var(--navy-light); }

/* === FORMS === */
.form-group { margin-bottom: 18px; }
.form-label { display:block; font-weight:600; font-size:13px; color:var(--navy); margin-bottom:6px; }
.form-control {
  width:100%; padding:10px 14px; border:2px solid var(--gray-200);
  border-radius:var(--radius); font-size:14px; font-family:var(--font-sans);
  background:white; transition:border .2s; color:var(--text-body);
}
.form-control:focus { outline:none; border-color:var(--navy); }
.form-hint { font-size:12px; color:var(--mid-gray); margin-top:4px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
textarea.form-control { min-height:100px; resize:vertical; }
select.form-control { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230f2540' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }

/* === TOGGLE SWITCH === */
.toggle-switch { position:relative; display:inline-block; width:44px; height:24px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; background:var(--gray-200); border-radius:24px; cursor:pointer; transition:.3s; }
.toggle-slider::before { content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:white; border-radius:50%; transition:.3s; box-shadow:0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background:var(--navy); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,25,50,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-xl);
  width: 100%; max-width: 700px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transform: scale(.96); transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.read-modal { max-width: 860px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 18px; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: white; z-index: 2;
}
.modal-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); font-weight: 700; }
.modal-close {
  background: var(--light-gray); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--mid-gray); transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 22px; border-top: 1px solid var(--gray-200); display: flex; gap: 12px; justify-content: flex-end; }

/* === USER BAR (topo quando logado) === */
.user-bar {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.user-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.user-bar-info { display: flex; align-items: center; gap: 10px; }
.user-bar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gold); object-fit: cover;
}
.user-bar-actions { display: flex; gap: 16px; }
.user-bar-actions a { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; display:flex; align-items:center; gap:5px; }
.user-bar-actions a:hover { color: var(--gold); }

/* === HEADER / NAVBAR === */
header, .navbar { background: white; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--navy); padding: 6px 0; font-size: 12px; color: rgba(255,255,255,0.65); display: none; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-main { border-bottom: 3px solid var(--gold); }
.header-main-inner, .navbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px; justify-content: space-between;
}
.logo-wrap, .navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon, .brand-icon {
  width: 44px; height: 44px; background: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 2px solid var(--gold);
}
.logo-text, .brand-text { display: flex; flex-direction: column; }
.site-name, .brand-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1; }
.site-tagline, .brand-slogan { font-size: 10px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; }

.nav-main, .navbar-links { display: flex; align-items: center; gap: 4px; }
.nav-main a, .navbar-links a {
  padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  color: var(--navy); transition: var(--transition); white-space: nowrap;
}
.nav-main a:hover, .nav-main a.active,
.navbar-links a:hover, .navbar-links a.active { color: var(--gold); background: var(--gold-pale); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* === BREAKING BAR === */
.breaking-bar { background: var(--gold); color: var(--navy); padding: 8px 0; overflow: hidden; font-size: 13px; font-weight: 600; }
.breaking-bar-inner { display: flex; align-items: center; gap: 16px; }
.breaking-label { background: var(--navy); color: var(--gold); padding: 2px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.breaking-ticker { overflow: hidden; flex: 1; }
.breaking-ticker-inner { display: flex; gap: 48px; white-space: nowrap; animation: ticker 35s linear infinite; }
.breaking-ticker-inner:hover { animation-play-state: paused; }
.breaking-ticker-inner span { flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === HERO SLIDER === */
.hero { position: relative; overflow: hidden; height: 520px; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,50,.92) 0%, rgba(10,25,50,.3) 60%, transparent 100%);
}
.hero-slide-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  max-width: 700px; padding: 48px;
}
.hero-slide-category {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 4px 14px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.hero-slide-content h2 {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: white; line-height: 1.2; margin-bottom: 14px;
}
.hero-slide-content p {
  color: rgba(255,255,255,.85); font-size: 1rem;
  margin-bottom: 22px; line-height: 1.6; max-width: 560px;
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }
.hero-dots {
  position: absolute; bottom: 20px; right: 48px; z-index: 10;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: var(--transition); border: none; padding: 0;
}
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* === WIDGETS SIDEBAR === */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.sidebar-right { display: flex; flex-direction: column; gap: 24px; }
.widget { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--gray-200); }
.widget-header { background: var(--navy); color: white; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.widget-header h3 { font-family: var(--font-serif); font-size: .95rem; color: white; margin: 0; }
.widget-header i { color: var(--gold); }
.widget-body { padding: 18px; }

/* === CATEGORY BAR (sticky) === */
.cat-bar { background: white; border-bottom: 2px solid var(--gray-200); position: sticky; top: 68px; z-index: 900; box-shadow: var(--shadow-sm); }
.cat-bar-inner { display: flex; align-items: center; gap: 4px; padding: 0 24px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-btn { display: flex; align-items: center; gap: 7px; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--mid-gray); background: none; border: none; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; transition: all var(--transition); text-decoration: none; }
.cat-btn:hover { color: var(--navy); border-bottom-color: var(--gray-200); }
.cat-btn.active { color: var(--navy); border-bottom-color: var(--gold); }

/* === SEARCH WRAP === */
.search-wrap { position: relative; }
.search-input { width: 100%; padding: 13px 50px 13px 20px; border: 2px solid var(--gray-200); border-radius: 40px; font-size: 15px; background: white; box-shadow: var(--shadow-sm); transition: border-color var(--transition); font-family: var(--font-sans); }
.search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.15); }
.search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--navy); color: var(--gold); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: background var(--transition); }
.search-btn:hover { background: var(--navy-light); }

/* === FEATURED GRID === */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.featured-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; background: var(--navy); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.featured-card:first-child { grid-column: 1 / -1; min-height: 340px; }
.featured-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); background-size: cover; background-position: center; transition: transform .4s ease; }
.featured-card:hover .featured-card-bg { transform: scale(1.03); }
.featured-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.92) 0%, rgba(10,22,40,.2) 70%, transparent 100%); }
.featured-card-body { position: relative; z-index: 2; padding: 24px; }
.featured-card-cat { display: inline-block; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.featured-card-title { font-family: var(--font-serif); font-size: 1.15rem; color: white; line-height: 1.3; margin-bottom: 8px; }
.featured-card:first-child .featured-card-title { font-size: 1.55rem; }
.featured-card-excerpt { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 10px; }
.featured-card-meta { font-size: 12px; color: rgba(255,255,255,.5); display: flex; gap: 12px; }

/* === LOADING === */
.loading-posts { text-align: center; padding: 60px 20px; color: var(--mid-gray); }

/* === SEÇÕES === */
.section { padding: 64px 0; }
.section-dark { background: var(--navy); color: white; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-alt { background: var(--light-gray); }
.section-header { margin-bottom: 36px; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); }
.section-dark .section-title { color: white; }
.section-subtitle { color: var(--mid-gray); font-size: 1rem; margin-top: 8px; max-width: 600px; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* === ADSENSE WRAPPER === */
.adsense-block {
  margin: 32px 0; text-align: center;
  background: var(--light-gray); border-radius: var(--radius-md);
  padding: 8px; min-height: 90px; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.adsense-block ins { display: block; }

/* === FILTER BAR === */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 16px; border-radius: 24px; border: 2px solid var(--gray-200);
  background: white; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--navy); transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* === SEARCH BAR === */
.search-bar { display: flex; gap: 0; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--gray-200); background: white; }
.search-bar input { flex: 1; padding: 10px 16px; border: none; font-size: 14px; font-family: var(--font-sans); outline: none; }
.search-bar button { background: var(--navy); color: var(--gold); border: none; padding: 0 18px; cursor: pointer; font-size: 16px; transition: var(--transition); }
.search-bar button:hover { background: var(--gold); color: var(--navy); }

/* === POSTS GRID === */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* === POST CARD === */
.post-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--gray-200);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.post-card-img { position: relative; height: 200px; overflow: hidden; background: var(--navy); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.post-card-category { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 4px; }
.post-card-featured { position: absolute; top: 12px; right: 12px; background: rgba(10,22,40,.8); color: var(--gold); font-size: 10px; padding: 3px 8px; border-radius: 4px; }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-card-title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.4; }
.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { font-size: 13px; color: var(--mid-gray); line-height: 1.6; flex: 1; }
.post-card-meta { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--gray-200); font-size: 12px; color: var(--mid-gray); }
.post-card-author { display: flex; align-items: center; gap: 8px; }
.post-card-author-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.post-card-author-name { font-weight: 600; color: var(--navy); font-size: 12px; }
.post-card-date, .post-card-views { font-size: 11px; color: var(--mid-gray); text-align: right; }

/* === EVENTOS === */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-item { display: flex; gap: 20px; background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); border-left: 4px solid var(--gold); transition: var(--transition); }
.event-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date-box { text-align: center; min-width: 56px; background: var(--navy); border-radius: var(--radius-md); padding: 10px 8px; color: white; }
.event-date-day { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--gold); }
.event-date-month { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.7); margin-top: 4px; }
.event-content { flex: 1; }
.event-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.event-desc { font-size: 13px; color: var(--mid-gray); margin-bottom: 10px; }
.event-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--mid-gray); }

/* === COLABORADORES === */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.collab-card {
  background: white; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.06); transition: var(--transition);
}
.collab-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: rgba(201,168,76,.35); }
.collab-avatar {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); margin: 0 auto 14px;
  box-shadow: 0 0 0 4px rgba(201,168,76,.15);
}
.collab-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.collab-specialty {
  font-size: 11px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 10px;
}
.collab-bio {
  font-size: 13px; color: var(--mid-gray); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.collab-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.collab-item:last-child { border-bottom: none; }

/* === SOBRE === */
.sobre-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--gold); }
.sobre-image img { border-radius: var(--radius-xl); width: 100%; }
.pilares { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.pilar {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--off-white); border-radius: var(--radius-md); padding: 14px;
}
.pilar-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; flex-shrink: 0;
}
.pilar-text strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.pilar-text span { font-size: 13px; color: var(--mid-gray); line-height: 1.5; }

/* === FOOTER === */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .site-name { font-family: var(--font-serif); font-size: 1.4rem; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.65); font-size: 15px; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 { font-family: var(--font-serif); font-size: 1rem; color: white; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }

/* === PAINEL (admin/colaborador) === */
.panel-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: white; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--navy); flex-shrink: 0; }
.sidebar-brand span { font-family: var(--font-serif); font-size: 1.2rem; color: white; font-weight: 700; }
.sidebar-brand span span { color: var(--gold); }
.sidebar-user { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 12px; }
.sidebar-user-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; background: var(--navy-mid); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--gold); }
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sidebar-user-name { font-weight: 600; font-size: 14px; color: white; }
.sidebar-user-role { font-size: 12px; color: var(--gold); }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section-label { padding: 8px 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; color: rgba(255,255,255,.7); cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: var(--gold); border-left-color: var(--gold); }
.sidebar-nav a.active { background: rgba(201,168,76,.12); color: var(--gold); border-left-color: var(--gold); }
.sidebar-nav a.danger { color: rgba(231,76,60,.8); }
.sidebar-nav a.danger:hover { background: rgba(231,76,60,.1); color: var(--danger); border-left-color: var(--danger); }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.3); }

.panel-main { background: var(--off-white); overflow-y: auto; }
.panel-topbar { background: white; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.panel-topbar-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.panel-topbar-actions { display: flex; align-items: center; gap: 12px; }
.panel-content { padding: 28px; }
.panel-section { display: none; }
.panel-section.active { display: block; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }

/* === STAT CARD === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); border-left: 4px solid var(--gold); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--gold-pale); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-number { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 12px; color: var(--mid-gray); margin-top: 4px; }

/* === TABLE === */
.table-wrap { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--gray-200); }
.table-toolbar { padding: 16px 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--gray-200); }
.table-search { flex: 1; min-width: 180px; padding: 8px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: var(--font-sans); }
.table-search:focus { outline: none; border-color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 13px; }
th { background: var(--navy); color: var(--gold); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:not(:last-child) td { border-bottom: 1px solid var(--gray-200); }
tr:hover td { background: var(--gold-pale); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* === RICH EDITOR === */
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--gray-100); border: 2px solid var(--gray-200); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.rich-editor-toolbar button, .rich-btn { padding: 5px 10px; border: 1px solid var(--gray-200); background: white; border-radius: 4px; cursor: pointer; font-size: 13px; font-family: var(--font-sans); color: var(--navy); transition: var(--transition); }
.rich-editor-toolbar button:hover, .rich-btn:hover { background: var(--navy); color: var(--gold); }
.rich-editor, [contenteditable] {
  min-height: 240px; padding: 16px; border: 2px solid var(--gray-200);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 15px; line-height: 1.8; font-family: var(--font-sans);
  outline: none; background: white;
}
.rich-editor:focus, [contenteditable]:focus { border-color: var(--navy); }
.rich-editor h2, .rich-editor h3 { margin: 16px 0 8px; }
.rich-editor p { margin-bottom: 12px; }
.rich-editor blockquote { border-left: 4px solid var(--gold); padding-left: 16px; margin: 16px 0; color: var(--mid-gray); font-style: italic; }
.rich-editor ul, .rich-editor ol { padding-left: 24px; margin-bottom: 12px; }

/* === PERM BADGES === */
.perm-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.perm-admin { background: rgba(201,168,76,.15); color: var(--gold-dark); border: 1px solid var(--gold); }
.perm-colaborador { background: rgba(15,37,64,.08); color: var(--navy); border: 1px solid var(--navy-mid); }

/* === AVATAR-SM === */
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); flex-shrink: 0; overflow: hidden; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 48px 20px; color: var(--mid-gray); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: var(--gold); opacity: .5; }
.empty-state p { font-size: 15px; }

/* === PHOTO PREVIEW === */
.photo-preview-box { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
.photo-icon { font-size: 2.5rem; }

/* === STRENGTH BAR === */
.strength-bar { height: 4px; border-radius: 4px; margin-top: 6px; background: var(--gray-200); overflow: hidden; }
.strength-bar-inner { height: 100%; border-radius: 4px; width: 0; transition: width .3s, background .3s; }
.strength-text { font-size: 12px; margin-top: 4px; }

/* === POST FULL (modal leitura) === */
.read-modal { max-width: 820px; }
.post-body { font-size: 16px; line-height: 1.85; color: var(--text-body); }
.post-body h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--navy); }
.post-body h3 { font-size: 1.15rem; margin: 22px 0 10px; color: var(--navy); }
.post-body p { margin-bottom: 16px; }
.post-body blockquote { border-left: 4px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gold-pale); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--navy-mid); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 16px; }
.post-body img { max-width: 100%; border-radius: var(--radius-md); margin: 16px 0; }

/* === RESPONSIVO === */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr 300px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); border-top: 2px solid var(--gold); z-index: 999; }
  .nav-main.open { display: flex; }
  .hamburger { display: flex; }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar-right { display: none; }
  .panel-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; z-index: 200; transition: left .3s; width: 260px; }
  .sidebar.open { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sobre-content { grid-template-columns: 1fr; }
  .sobre-image { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 420px; }
  .hero-slide-content { padding: 32px 24px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card:first-child { grid-column: 1; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-main-inner { height: 60px; }
  .hero { height: 340px; }
  .hero-slide-content { padding: 24px 16px; }
  .hero-slide-content h2 { font-size: 1.5rem; }
  .section { padding: 44px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cat-bar-inner { padding: 0 8px; }
  .cat-btn { padding: 12px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
  .collab-grid { grid-template-columns: 1fr; }
  .hero-slide-content h2 { font-size: 1.3rem; }
}
