/* =================================================================
   GANHE RECOMPENSA — PIVOT v3 (portal de conteúdo)
   Todos os componentes prefixados com .ghr- pra evitar conflito
   ================================================================= */

/* === NAVBAR — dropdown === */
.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .92rem;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: .55rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text); font: inherit; font-weight: 500; font-size: .92rem;
  padding: .5rem .9rem; border-radius: 8px;
  transition: background .15s;
}
.nav-dropdown-toggle:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border-radius: 12px; padding: .5rem;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .8rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .9rem;
  transition: background .12s, color .12s;
}
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dd-icon { font-size: 1.1rem; }
.nav-dd-sep { border: 0; border-top: 1px solid var(--border-light); margin: .4rem 0; }

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none; border: 0; padding: 0;
    background: transparent;
  }
  .nav-dropdown-toggle { display: none; }
}

/* === HERO HOME === */
.ghr-hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7c3aed 50%, #a855f7 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.ghr-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.1), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.ghr-hero .container { position: relative; }
.ghr-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
  align-items: center;
}
.ghr-hero-text h1 {
  font-size: 2.8rem; line-height: 1.1; font-weight: 800;
  margin: .8rem 0 1rem;
}
.ghr-hero-grad {
  background: linear-gradient(90deg, #fbbf24, #f97316, #ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ghr-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  padding: .35rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}
.ghr-hero-sub {
  font-size: 1.1rem; opacity: .92; line-height: 1.55;
  margin-bottom: 1.8rem; max-width: 520px;
}
.ghr-hero-stats { display: flex; gap: 2rem; margin-bottom: 2rem; }
.ghr-hero-stats > div { display: flex; flex-direction: column; }
.ghr-hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.ghr-hero-stats span { font-size: .82rem; opacity: .8; }
.ghr-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.ghr-hero-actions .btn-outline {
  background: rgba(255,255,255,.1); color: #fff;
  border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px);
}
.ghr-hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.2); border-color: #fff;
}

.ghr-hero-featured {
  display: block; background: #fff; color: var(--text);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.ghr-hero-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.ghr-hero-fimg {
  height: 220px; background-size: cover; background-position: center;
  position: relative;
}
.ghr-hero-fbadge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(0,0,0,.7); color: #fff;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.ghr-hero-fcontent { padding: 1.5rem; }
.ghr-hero-flabel {
  font-size: .75rem; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.ghr-hero-fcontent h3 {
  font-size: 1.3rem; margin: .5rem 0; line-height: 1.3;
}
.ghr-hero-fcontent p { color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.ghr-hero-flink {
  display: inline-block; margin-top: .8rem;
  color: var(--primary); font-weight: 600; font-size: .9rem;
}

@media (max-width: 968px) {
  .ghr-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ghr-hero-text h1 { font-size: 2.2rem; }
}

/* === SEÇÕES === */
.ghr-section { padding: 4rem 0; }
.ghr-section-alt { background: var(--bg); }
.ghr-section-head { text-align: center; margin-bottom: 2.5rem; }
.ghr-section-head h2 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.ghr-section-head p { color: var(--text-muted); font-size: 1.05rem; }
.ghr-section-title-sm {
  font-size: 1.4rem; font-weight: 700;
  margin: 2.5rem 0 1.5rem; color: var(--text);
}

/* === GRID DE CATEGORIAS === */
.ghr-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.ghr-cat-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; padding: 1.3rem;
  border-radius: 14px; border: 2px solid var(--border-light);
  text-decoration: none; color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ghr-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-color, var(--primary));
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.ghr-cat-icon {
  font-size: 2rem;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, transparent);
  border-radius: 12px;
  flex-shrink: 0;
}
.ghr-cat-info h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.ghr-cat-info p { font-size: .82rem; color: var(--text-muted); line-height: 1.4; margin-bottom: .4rem; }
.ghr-cat-count {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, transparent);
  color: var(--cat-color, var(--primary));
  padding: .15rem .55rem; border-radius: 999px;
}

/* === GRID DE POSTS === */
.ghr-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.ghr-post-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-light);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.ghr-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.1);
}
.ghr-post-img {
  height: 170px;
  background-size: cover; background-position: center;
  position: relative; background-color: var(--border-light);
}
.ghr-post-cat {
  position: absolute; top: .8rem; left: .8rem;
  color: #fff; padding: .25rem .7rem;
  border-radius: 999px; font-size: .72rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.ghr-post-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.ghr-post-body h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem; }
.ghr-post-body p {
  font-size: .88rem; color: var(--text-muted);
  line-height: 1.5; flex: 1;
}
.ghr-post-meta {
  display: flex; justify-content: space-between;
  margin-top: .9rem; padding-top: .7rem;
  border-top: 1px solid var(--border-light);
  font-size: .78rem; color: var(--text-muted);
}
.ghr-post-meta span:last-child { color: var(--primary); font-weight: 600; }

/* === FAIXA DE CONFIANÇA === */
.ghr-trust { background: linear-gradient(180deg, #fff, var(--bg)); padding: 3.5rem 0; }
.ghr-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ghr-trust-item { text-align: center; padding: 1rem; }
.ghr-trust-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.ghr-trust-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.ghr-trust-item p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* === BLOG INDEX HERO === */
.ghr-blog-hero {
  background: linear-gradient(135deg, #4F46E5, #7c3aed);
  color: #fff; padding: 3rem 0 2.5rem; text-align: center;
}
.ghr-blog-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .5rem; }
.ghr-blog-hero p { font-size: 1.05rem; opacity: .9; }

.ghr-blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  text-decoration: none; color: var(--text);
  margin-bottom: 2rem; border: 1px solid var(--border-light);
  transition: transform .2s, box-shadow .2s;
}
.ghr-blog-featured:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.ghr-blog-featured-img {
  height: 100%; min-height: 280px;
  background-size: cover; background-position: center;
  position: relative;
}
.ghr-blog-fbadge {
  position: absolute; top: 1rem; left: 1rem;
  color: #fff; padding: .3rem .8rem;
  border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.ghr-blog-featured-body { padding: 2rem; }
.ghr-blog-flabel {
  font-size: .75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px;
}
.ghr-blog-featured-body h2 {
  font-size: 1.7rem; line-height: 1.25; margin: .6rem 0 .8rem;
}
.ghr-blog-featured-body p { color: var(--text-muted); line-height: 1.55; }
.ghr-blog-flink {
  display: inline-block; margin-top: 1rem;
  color: var(--primary); font-weight: 700; font-size: .95rem;
}

@media (max-width: 768px) {
  .ghr-blog-featured { grid-template-columns: 1fr; }
  .ghr-blog-featured-img { min-height: 200px; }
}

/* === CATEGORY HERO === */
.ghr-cat-hero {
  background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 60%, #000 40%));
  color: #fff; padding: 3rem 0 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.ghr-cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%);
}
.ghr-cat-hero .container { position: relative; }
.ghr-cat-hero-icon { font-size: 3.5rem; margin-bottom: .5rem; }
.ghr-cat-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .5rem; }
.ghr-cat-hero p { font-size: 1.05rem; opacity: .92; max-width: 560px; margin: 0 auto 1rem; }
.ghr-cat-hero-stat {
  display: inline-block; background: rgba(0,0,0,.25); backdrop-filter: blur(8px);
  padding: .4rem 1rem; border-radius: 999px; font-size: .9rem;
}
.ghr-cat-hero-stat strong { font-size: 1.1rem; }
.ghr-back-link {
  display: inline-block; margin-bottom: 1rem;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .85rem; font-weight: 500;
}
.ghr-back-link:hover { color: #fff; }

/* === FILTRO STICKY === */
.ghr-cat-filter {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 30;
  padding: .75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ghr-cat-filter-inner {
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ghr-cat-filter-inner::-webkit-scrollbar { display: none; }
.ghr-filter-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  transition: all .15s;
}
.ghr-filter-pill:hover {
  background: var(--pill-color, var(--primary));
  color: #fff; border-color: transparent;
}
.ghr-filter-pill.active {
  background: var(--pill-color, var(--primary));
  color: #fff; border-color: transparent;
}
.ghr-filter-pill small { opacity: .8; font-size: .72rem; }

/* === EMPTY STATE === */
.ghr-empty {
  text-align: center; padding: 4rem 1rem;
  background: #fff; border-radius: 14px; border: 1px dashed var(--border);
}
.ghr-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.ghr-empty h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.ghr-empty p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }
