/* ============================================================
   GOSSIP PORTAL — Estilos do Site Público
   ============================================================ */

:root {
  --primary:    #e91e63;
  --primary-d:  #c2185b;
  --secondary:  #ff5722;
  --dark:       #1a1a2e;
  --dark-2:     #16213e;
  --card-bg:    #ffffff;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --success:    #10b981;
  --warning:    #f59e0b;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --shadow-h:   0 8px 30px rgba(233,30,99,.15);
  --font:       'Segoe UI', -apple-system, sans-serif;
  --transition: all .25s ease;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: #f9fafb;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.logo span { color: var(--primary); }
.logo-dot { color: var(--secondary); }

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary);
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.15);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .875rem;
  width: 180px;
}

.header-search input::placeholder { color: rgba(255,255,255,.5); }

/* ─── BREAKING NEWS BAR ─────────────────────────────────── */
.breaking-bar {
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.breaking-label {
  background: var(--dark);
  padding: 6px 16px;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.breaking-ticker {
  padding: 6px 20px;
  animation: ticker 30s linear infinite;
  display: inline-block;
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ─── ADSENSE: garante largura > 0 em containers flex ────── */
ins.adsbygoogle {
  width: 100%;
  min-width: 300px;
}

/* ─── AD BANNER ─────────────────────────────────────────── */
.ad-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  text-align: center;
  padding: 10px;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
}

.ad-banner-inner {
  max-width: 728px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 4px;
  font-size: .8rem;
}

/* ─── HERO ARTICLE ──────────────────────────────────────── */
.hero-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
}

.hero-article {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.hero-article:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }

.hero-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 40%, transparent 70%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hero-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  display: flex;
  gap: 16px;
}

/* ─── GRID DE ARTIGOS ───────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.article-card:hover .card-image { transform: scale(1.05); }

.card-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-time { font-size: .75rem; color: var(--text-muted); }

.card-views {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.trending-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition);
}

.trending-item:hover { opacity: .8; }

.trending-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  min-width: 28px;
}

.trending-text {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.trending-meta { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

.ad-sidebar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: var(--radius);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  text-align: center;
  flex-direction: column;
  gap: 8px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  padding: 6px 14px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── LOAD MORE ──────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin: 32px 0; grid-column: 1 / -1; }

.btn-load-more {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(233,30,99,.3);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(233,30,99,.4);
}

/* ─── ARTIGO COMPLETO ───────────────────────────────────── */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.article-header { margin-bottom: 24px; }

.article-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-featured-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 32px 0 16px;
  color: var(--dark);
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

.article-content p { margin-bottom: 18px; }

.article-content blockquote {
  background: #fdf2f8;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.1rem;
}

.article-content blockquote cite {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 8px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}

.tag {
  background: #f3f4f6;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  cursor: pointer;
  transition: var(--transition);
}

.tag:hover { background: var(--primary); color: #fff; }

.share-section {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.share-title { font-weight: 700; margin-bottom: 16px; }

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

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: #fff;
}

.share-btn.twitter  { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn:hover    { transform: translateY(-2px); opacity: .9; }

/* ─── IN-ARTICLE ADS ─────────────────────────────────────── */
.ad-in-article {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  margin: 32px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand { color: #fff; font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }

.footer-desc { font-size: .875rem; line-height: 1.6; }

.footer-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 12px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: .875rem;
  transition: var(--transition);
  cursor: pointer;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── LOADING STATE ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skeleton-img  { height: 180px; }
.skeleton-text { height: 14px; margin: 16px 16px 8px; }
.skeleton-text.lg { height: 18px; width: 80%; }
.skeleton-text.sm { height: 12px; width: 50%; margin-bottom: 16px; }

/* ─── TOAST NOTIFICATIONS ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  animation: toastIn .3s ease;
  max-width: 320px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid #ef4444; }

@keyframes toastIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .hero-image { height: 280px; }
  .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 1.3rem; }
}
