/* ==========================================================================
   Portal Smart Home — Visual Tech Vibrante (Inspirado em Portais Tech Modernos)
   ========================================================================== */

:root {
  --portal-cyan: #06b6d4;
  --portal-blue: #3b82f6;
  --portal-purple: #8b5cf6;
  --portal-emerald: #10b981;
  --portal-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --portal-glow: 0 12px 32px -8px rgba(6, 182, 212, 0.28);
}

/* ---------- Barra Superior de Acento em Gradiente ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--portal-gradient);
  z-index: 9999;
}

/* ---------- Sidebar com Vida & Destaque Neon Sutil ---------- */
#sidebar {
  border-right: 1px solid rgba(56, 189, 248, 0.14) !important;
}

#sidebar .site-title {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

#sidebar ul.nav li.nav-item a.nav-link {
  border-radius: 10px !important;
  margin: 0.2rem 0.75rem !important;
  transition: all 0.22s ease !important;
}

#sidebar ul.nav li.nav-item.active a.nav-link {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(99, 102, 241, 0.18)) !important;
  border-left: 3px solid var(--portal-cyan) !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 16px -4px rgba(6, 182, 212, 0.25);
}

#sidebar ul.nav li.nav-item a.nav-link:hover {
  transform: translateX(4px);
  color: #38bdf8 !important;
}

/* ---------- Hero Banner da Home (Estilo Portal Tech / Diolinux) ---------- */
.portal-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.85rem 2rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #0b1120 0%, #111c38 52%, #1e1b4b 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 18px 40px -15px rgba(6, 182, 212, 0.22);
  color: #f8fafc;
}

.portal-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.26) 0%, rgba(139, 92, 246, 0.08) 55%, transparent 75%);
  pointer-events: none;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #67e8f9;
  margin-bottom: 0.75rem;
}

.portal-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}

.portal-hero h1 {
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  color: #ffffff !important;
  border: none !important;
}

.portal-hero h1 span {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-hero p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0 0 1.15rem 0;
  max-width: 680px;
}

.portal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0 !important;
  transition: all 0.2s ease;
}

.portal-pill:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: rgba(6, 182, 212, 0.2);
  color: #ffffff !important;
  box-shadow: 0 6px 16px -4px rgba(6, 182, 212, 0.35);
}

/* ---------- Cards da Home Estilo Portal Tech ---------- */
#post-list .card-wrapper {
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.26s ease,
              border-color 0.26s ease !important;
  margin-bottom: 1.35rem !important;
}

#post-list .card-wrapper:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: var(--portal-glow) !important;
}

#post-list .card-wrapper .card-title {
  font-weight: 800 !important;
  line-height: 1.35 !important;
  transition: color 0.2s ease !important;
}

#post-list .card-wrapper:hover .card-title {
  color: #38bdf8 !important;
}

#post-list .card-wrapper .preview-img img {
  transition: transform 0.38s ease !important;
}

#post-list .card-wrapper:hover .preview-img img {
  transform: scale(1.04) !important;
}

/* Badges de categoria nos cards e artigos */
.post-meta .categories a,
.categories a.category {
  display: inline-block;
  padding: 0.15rem 0.65rem !important;
  border-radius: 999px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(6, 182, 212, 0.14) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  text-decoration: none !important;
}

/* ---------- Estilização Interna dos Artigos ---------- */
.content h2 {
  position: relative;
  padding-left: 0.85rem !important;
  margin-top: 2.2rem !important;
  font-weight: 800 !important;
}

.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: var(--portal-gradient);
}

/* Tabelas comparativas modernas */
.content table {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
}

.content table thead th {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18), rgba(99, 102, 241, 0.18)) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(56, 189, 248, 0.35) !important;
}

/* Botão / Destaque automático para Links Patrocinados da Amazon */
.content a[rel*="sponsored"] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.72rem;
  margin: 0 0.15rem;
  border-radius: 8px;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.content a[rel*="sponsored"]::before {
  content: "🛒";
  font-size: 0.88em;
}

.content a[rel*="sponsored"]:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(16, 185, 129, 0.28));
  box-shadow: 0 6px 16px -4px rgba(6, 182, 212, 0.35);
}
