/*
Theme Name: O Farol Notícias
Theme URI: https://panteonmarketing.com.br
Author: Panteon Marketing e Design
Description: Tema exclusivo para O Farol Notícias — portal jornalístico com colunistas, categorias e layout profissional.
Version: 1.0.0
*/

/* ============================================================
   TOKENS
============================================================ */
:root {
  --azul-escuro:  #041F46;
  --azul-medio:   #0B66B3;
  --azul-claro:   #1a7fd4;
  --azul-pale:    #e8f2fc;
  --accent:       #f59e0b;
  --red:          #dc2626;
  --black:        #111827;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --white:        #ffffff;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --shadow:       0 1px 8px rgba(4,31,70,.08);
  --shadow-md:    0 4px 20px rgba(4,31,70,.14);
  --radius:       8px;
  --container:    1280px;
  --col-side:     260px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--black); background: var(--gray-100); line-height: 1.6; }
a { color: var(--azul-medio); text-decoration: none; }
a:hover { color: var(--azul-escuro); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ============================================================
   TOPBAR
============================================================ */
.topbar { background: var(--azul-escuro); color: rgba(255,255,255,.6); font-size: .7rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.topbar-date { text-transform: capitalize; letter-spacing: .2px; }
.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a { color: rgba(255,255,255,.5); display: flex; align-items: center; transition: color .15s; }
.topbar-social a:hover { color: #fff; }
.topbar-cnpj { font-size: .65rem; color: rgba(255,255,255,.35); }

/* ============================================================
   HEADER
============================================================ */
.site-header { background: var(--azul-escuro); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(4,31,70,.5); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.site-logo img { max-height: 80px; width: auto; border-radius: 6px; }
.site-logo-text { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.5px; line-height: 1.1; }

.header-search { flex: 1; max-width: 360px; }
.header-search-inner { display: flex; align-items: center; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 28px; height: 40px; padding: 0 6px 0 14px; gap: 8px; transition: all .2s; backdrop-filter: blur(4px); }
.header-search-inner:focus-within { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(11,102,179,.3); }
.hs-icon { color: rgba(255,255,255,.65); flex-shrink: 0; transition: color .2s; }
.header-search-inner:focus-within .hs-icon { color: var(--azul-medio); }
.header-search-inner input { flex: 1; border: none; outline: none; background: transparent; color: #fff; font-size: .83rem; min-width: 0; }
.header-search-inner input::placeholder { color: rgba(255,255,255,.55); }
.header-search-inner:focus-within input { color: #111; }
.header-search-inner:focus-within input::placeholder { color: #aaa; }
.hs-btn { background: var(--azul-medio); border: none; border-radius: 20px; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 0 13px; height: 30px; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.hs-btn:hover { background: var(--azul-claro); }
.nav-toggle { display: none; background: rgba(255,255,255,.12); border: none; border-radius: 6px; padding: 8px; cursor: pointer; color: #fff; }

/* NAV PRINCIPAL */
.main-nav { background: var(--azul-medio); border-top: 1px solid rgba(255,255,255,.12); }
.nav-list { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li a { display: block; padding: 11px 18px; color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; letter-spacing: .2px; text-transform: uppercase; }
.nav-list li a:hover,
.nav-list li.current-menu-item a { background: rgba(255,255,255,.15); color: #fff; }
.nav-list .nav-colunistas a { color: var(--accent); background: rgba(245,158,11,.15); }
.nav-list .nav-colunistas a:hover { background: rgba(245,158,11,.3); }

/* BREAKING NEWS */
.breaking-bar { background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; }
.breaking-inner { display: flex; align-items: center; gap: 0; padding: 6px 0; }
.breaking-label { background: rgba(0,0,0,.3); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 4px 10px; white-space: nowrap; }
.breaking-ticker { flex: 1; overflow: hidden; margin-left: 12px; }
.breaking-ticker-inner { display: inline-block; white-space: nowrap; animation: ticker 32s linear infinite; }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ============================================================
   LAYOUT COM COLUNA DE COLUNISTAS
============================================================ */
.page-layout { display: grid; grid-template-columns: var(--col-side) 1fr 280px; gap: 20px; padding: 20px 0 40px; }
.col-colunistas { position: sticky; top: 76px; height: fit-content; }
.col-main { min-width: 0; }
.col-sidebar { min-width: 0; }

/* WIDGET DE COLUNISTAS (coluna esquerda) */
.colunistas-widget { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow); }
.colunistas-widget-title { background: var(--azul-escuro); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 11px 14px; }
.colunista-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.colunista-item:last-child { border-bottom: none; }
.colunista-item:hover { background: var(--azul-pale); }
.colunista-foto { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--azul-medio); }
.colunista-foto-placeholder { width: 46px; height: 46px; border-radius: 50%; background: var(--azul-medio); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.colunista-nome { font-size: .78rem; font-weight: 700; color: var(--azul-escuro); line-height: 1.3; }
.colunista-tag { font-size: .65rem; color: var(--azul-medio); font-weight: 600; margin-top: 2px; }

/* ============================================================
   SECTION LABELS
============================================================ */
.section-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.section-label h2 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--azul-escuro); padding-left: 10px; border-left: 4px solid var(--azul-medio); }
.section-label.red h2 { border-left-color: var(--red); color: var(--black); }
.section-label.gold h2 { border-left-color: var(--accent); }
.view-all { font-size: .74rem; font-weight: 700; color: var(--azul-medio); }

/* ============================================================
   HERO GRID
============================================================ */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.hero-main { grid-row: span 2; position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; transition: transform .3s; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; background: linear-gradient(0deg,rgba(4,31,70,.92),rgba(4,31,70,.2)); color: #fff; }
.hero-main-content h2 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-top: 6px; }
.hero-secondary { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.hero-secondary img { width: 100%; height: 130px; object-fit: cover; transition: transform .3s; }
.hero-secondary:hover img { transform: scale(1.04); }
.hero-secondary-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; background: linear-gradient(0deg,rgba(4,31,70,.85),transparent); color: #fff; }
.hero-secondary-content h3 { font-family: var(--font-serif); font-size: .82rem; font-weight: 700; line-height: 1.3; margin-top: 3px; }
.post-category { display: inline-block; background: var(--azul-medio); color: #fff; font-size: .6rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; letter-spacing: .3px; }
.post-category.red { background: var(--red); }
.post-category.gold { background: var(--accent); color: #111; }

/* ============================================================
   NEWS CARDS
============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.news-grid-2 { grid-template-columns: repeat(2,1fr); }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-card-img { position: relative; overflow: hidden; }
.news-card-img img { width: 100%; height: 175px; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-cat { position: absolute; top: 8px; left: 8px; background: var(--azul-medio); color: #fff; font-size: .6rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.news-card-cat.red { background: var(--red); }
.news-card-cat.gold { background: var(--accent); color: #111; }
.news-card-body { padding: 14px; }
.news-card-body h3 { font-family: var(--font-serif); font-size: .88rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body h3 a { color: var(--black); }
.news-card-body h3 a:hover { color: var(--azul-medio); }
.post-meta { font-size: .7rem; color: var(--gray-400); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* NEWS LIST (horizontal) */
.news-list-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.news-list-card:last-child { border-bottom: none; }
.news-list-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-list-card-body h4 { font-size: .8rem; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.news-list-card-body h4 a { color: var(--black); }
.news-list-card-body h4 a:hover { color: var(--azul-medio); }

/* ============================================================
   SIDEBAR DIREITA
============================================================ */
.sidebar-widget { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.sidebar-widget-title { background: var(--azul-escuro); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 10px 14px; }
.sidebar-widget-title.blue { background: var(--azul-medio); }
.sidebar-widget-title.gold { background: var(--accent); color: #111; }
.sidebar-widget-body { padding: 12px 14px; }

/* ============================================================
   COLUNISTAS — PÁGINA ARQUIVO
============================================================ */
.colunistas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.colunista-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 24px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.colunista-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.colunista-card .foto { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--azul-medio); margin: 0 auto 12px; }
.colunista-card .placeholder { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg,var(--azul-escuro),var(--azul-medio)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: #fff; margin: 0 auto 12px; }
.colunista-card h3 { font-size: .95rem; font-weight: 700; color: var(--azul-escuro); margin-bottom: 4px; }
.colunista-card .bio { font-size: .8rem; color: var(--gray-600); line-height: 1.5; }
.colunista-card .ver-colunas { display: inline-block; margin-top: 14px; background: var(--azul-medio); color: #fff; font-size: .75rem; font-weight: 700; padding: 8px 18px; border-radius: 6px; }

/* ============================================================
   SINGLE POST
============================================================ */
.single-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; padding: 20px 0 40px; }
.single-article { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.single-article h1 { font-family: var(--font-serif); font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--azul-escuro); }
.single-article .single-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: .78rem; color: var(--gray-400); padding-bottom: 14px; border-bottom: 1px solid var(--gray-200); }
.single-article .cover-img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.single-article .content p { font-size: .92rem; line-height: 1.85; color: var(--gray-600); margin-bottom: 16px; }
.single-article .content h2, .single-article .content h3 { font-family: var(--font-serif); color: var(--azul-escuro); margin: 20px 0 10px; }
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.share-btn { font-size: .74rem; font-weight: 700; padding: 6px 14px; border-radius: 6px; color: #fff; }
.share-fb  { background: #1877f2; }
.share-wpp { background: #25d366; }
.share-tw  { background: #000; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--azul-escuro); color: rgba(255,255,255,.7); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.footer-brand p { font-size: .82rem; line-height: 1.75; margin: 12px 0 16px; }
.footer-col h4 { color: #fff; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--azul-medio); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { font-size: .8rem; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 6px; }
.footer-social a { color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: rgba(255,255,255,.08); transition: all .15s; }
.footer-social a:hover { background: var(--azul-medio); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .7rem; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 14px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-bottom-links a:hover { color: #fff; }
.footer-credit a { color: rgba(255,255,255,.35); }
.footer-credit a:hover { color: var(--accent); }
.wpp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; background: #25d366; border-radius: 50px; padding: 12px 20px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .15s; }
.wpp-float:hover { transform: translateY(-2px); color: #fff; }

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: var(--col-side) 1fr; }
  .col-sidebar { display: none; }
}
@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; }
  .col-colunistas { display: none; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: span 1; }
  .single-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .colunistas-grid { grid-template-columns: repeat(2,1fr); }
  .header-search { display: none; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .colunistas-grid { grid-template-columns: 1fr; }
  .topbar-date, .topbar-cnpj { display: none; }
  .nav-toggle { display: flex; }
  .main-nav .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--azul-escuro); z-index: 99; }
  .main-nav .nav-list.open { display: flex; }
}
