/* ============================================
   NICHOS PAGE — O Novo Algoritmo
   Usa as mesmas variaveis de style.css
   ============================================ */

/* ===== HERO NICHOS ===== */
.nichos-hero {
  position: relative;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--cyan);
}

.nichos-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  margin-bottom: 12px;
}

.nichos-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.nichos-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.nichos-stats .n-stat { text-align: center; }
.nichos-stats .n-stat-number { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--cyan); text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); display: block; }
.nichos-stats .n-stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }

/* ===== LANGUAGE TABS ===== */
.n-lang-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: rgba(6, 13, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
  z-index: 100;
  border-bottom: 1px solid var(--neon-border);
}

.n-lang-tab {
  padding: 12px 32px;
  border: 2px solid var(--neon-border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.n-lang-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.n-lang-tab.active { background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); border-color: var(--cyan); color: #000; }

/* ===== SECTIONS ===== */
.n-lang-section { display: none; animation: nFadeIn 0.3s ease; }
.n-lang-section.active { display: block; }
@keyframes nFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== TIER ===== */
.n-tier { margin-bottom: 50px; }

.n-tier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--neon-border);
}

.n-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.n-tier-s { background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.n-tier-a { background: linear-gradient(135deg, #ffa502, #ff6348); }
.n-tier-b { background: linear-gradient(135deg, #5352ed, #3742fa); }

.n-tier-title { font-size: 1.3rem; font-weight: 800; color: #fff; }
.n-tier-sub { font-size: 0.85rem; color: var(--text-muted); }

/* ===== NICHE CARD ===== */
.n-card {
  background: var(--dark-2);
  border: 1px solid var(--neon-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.n-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.n-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  flex-wrap: wrap;
  gap: 10px;
}

.n-card-name { font-size: 1.15rem; font-weight: 800; color: #fff; }
.n-card-group { font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.n-card-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.n-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.n-tag-comp { background: rgba(46, 213, 115, 0.12); color: #2ed573; border: 1px solid rgba(46, 213, 115, 0.25); }
.n-tag-cpm { background: rgba(255, 165, 2, 0.12); color: #ffa502; border: 1px solid rgba(255, 165, 2, 0.25); }
.n-tag-viral { background: rgba(0, 212, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.25); }

.n-toggle {
  color: var(--cyan);
  font-size: 1.4rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.n-card.open .n-toggle { transform: rotate(45deg); }

/* ===== COLLAPSIBLE ===== */
.n-card-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.n-card.open .n-card-body { max-height: 2000px; }

.n-card-why {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--cyan-soft);
  border-radius: 10px;
  border-left: 3px solid var(--cyan);
}

/* ===== TITLES LIST ===== */
.n-titles { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.n-titles li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.2s;
}

.n-titles li:hover { background: var(--cyan-soft); }

.n-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== ALERT BOX ===== */
.n-alert {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.n-alert h3 { color: var(--cyan); font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.n-alert ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.n-alert li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.n-alert li::before { content: "!"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }

/* ===== EXPAND BTN ===== */
.n-expand-btn {
  padding: 8px 18px;
  border: 1px solid var(--neon-border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

.n-expand-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== FOOTER ===== */
.nichos-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nichos-footer p { font-size: 0.8rem; color: var(--text-muted); }
.nichos-footer a { color: var(--cyan); text-decoration: none; }
.nichos-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nichos-hero { padding: 40px 0; }
  .nichos-stats { gap: 20px; }
  .n-card { padding: 20px; }
  .n-lang-tab { padding: 10px 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .n-lang-tab { padding: 8px 16px; font-size: 0.82rem; }
  .n-card { padding: 16px; }
  .n-card-name { font-size: 1rem; }
}
