@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500;700&display=swap');

:root {
  --bg-main: #0a0a0a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #a3e635; /* Neon lime */
  --accent-hover: #bef264;
  --accent-glow: rgba(163, 230, 53, 0.2);
  --border-color: #374151;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Base layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* Tech Header */
.header {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .cursor {
  display: inline-block;
  width: 10px;
  height: 1.2rem;
  background-color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(163,230,53,0.1) 0%, rgba(10,10,10,1) 50%);
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px solid var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(163,230,53,0.05);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a3e635);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.cs-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cs-card:hover {
  border-color: rgba(163, 230, 53, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(163, 230, 53, 0.15);
}

.cs-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--bg-tertiary);
  overflow: hidden;
}

.cs-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cs-card:hover .cs-card-img-wrap img {
  transform: scale(1.05);
}

.cs-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cs-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.4;
  color: var(--text-main);
}

.cs-card-title a {
  color: inherit;
}

.cs-card-title a:hover {
  color: var(--accent);
}

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Post Layout */
.post-header {
  text-align: center;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.post-meta-top {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.post-header h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

.post-layout {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
}

.post-main {
  flex: 1;
  min-width: 0;
}

.post-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* Typography inside posts */
.content h1, .content h2, .content h3 {
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.content h1 { font-size: 2.5rem; }
.content h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.content h3 { font-size: 1.25rem; }

.content p { margin-bottom: 1.5rem; color: #d1d5db; font-size: 1.05rem; }
.content ul, .content ol { margin-bottom: 1.5rem; color: #d1d5db; padding-left: 1.5rem; font-size: 1.05rem; }
.content li { margin-bottom: 0.5rem; }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* AMAZON REVIEW COMPONENTS - CRAZYSTACK EDITION */

.dsc-wrapper {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem 56px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin: 2.5rem 0;
}

.dsc-track {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.dsc-track::-webkit-scrollbar { display: none; }

.btn-carousel-prev, .btn-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 5;
  transition: all 0.2s;
}
.btn-carousel-prev { left: 10px; }
.btn-carousel-next { right: 10px; }
.btn-carousel-prev:hover, .btn-carousel-next:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn-carousel-prev::before { content: "\F284"; font-family: "bootstrap-icons" !important; font-size: 1.2rem; }
.btn-carousel-next::before { content: "\F285"; font-family: "bootstrap-icons" !important; font-size: 1.2rem; }

.dsc-item {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  box-sizing: border-box;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}
.dsc-item:hover {
  border-color: rgba(163, 230, 53, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.08);
}

.dsc-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  height: 130px;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  padding: 0.5rem;
}
.dsc-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; border: none; margin: 0; border-radius: 0; }

.dsc-titulo {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  flex: 1;
  width: 100%;
}
.dsc-item:hover .dsc-titulo { color: var(--accent); }

.dsc-btn-amz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  background: #F7CA00;
  border: none;
  border-radius: 6px;
  color: #111;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
}
.dsc-btn-amz:hover {
  background: #fcd200;
  box-shadow: 0 0 15px rgba(247, 202, 0, 0.4);
  color: #000;
  transform: scale(1.02);
}
.dsc-btn-amz::before, .dsc-btn-amz::after { content: none !important; }

/* Pros and Cons Tables */
.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.pros-box, .cons-box {
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}
.pros-box h4 { color: var(--accent); margin-top: 0; margin-bottom: 1rem; font-family: var(--font-mono); font-size: 1.1rem; }
.cons-box h4 { color: #f87171; margin-top: 0; margin-bottom: 1rem; font-family: var(--font-mono); font-size: 1.1rem; }
.pros-box ul, .cons-box ul { padding-left: 0 !important; list-style: none !important; margin: 0 !important; }
.pros-box li, .cons-box li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.pros-box li::before { content: "✓"; color: var(--accent); font-weight: bold; }
.cons-box li::before { content: "✗"; color: #f87171; font-weight: bold; }

/* Buttons Default */
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cs-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px var(--accent-glow);
  color: #000;
  transform: translateY(-2px);
}

/* Sidebar */
.sidebar-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 6rem;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.sidebar-post:hover {
  transform: translateX(4px);
}
.sidebar-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-post-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.sidebar-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Feedback Container */
.feedback-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 3rem 0;
}
.btn-feedback {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-feedback:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  background: var(--bg-secondary);
  text-align: center;
  color: var(--text-muted);
}
.footer p { margin: 0; font-family: var(--font-mono); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 992px) {
  .post-layout { flex-direction: column; }
  .post-sidebar { width: 100%; }
  .sidebar-box { position: static; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .pros-cons-container { grid-template-columns: 1fr; }
  .dsc-item { flex: 0 0 calc(50% - 10px); }
  .post-header h1 { font-size: 2rem; }
  .content h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .dsc-wrapper { padding: 1.25rem 20px; }
  .dsc-item { flex: 0 0 100%; scroll-snap-align: center; }
  .btn-carousel-prev, .btn-carousel-next { width: 32px; height: 32px; }
  .btn-carousel-prev { left: 4px; }
  .btn-carousel-next { right: 4px; }
}

/* ==============================================================
   OVERRIDE INLINE STYLES FROM CMS GENERATOR (raiox2.py)
   Forces dark mode on hardcoded light-theme inline styles
============================================================== */

/* "Produtos em Destaque" Title */
.raiox-destaque-title,
p[style*="#111827"], 
p[style*="rgb(17, 24, 39)"] {
  color: var(--text-main) !important;
}

/* "Motivo para Comprar" text */
.raiox-motivos-wrapper,
div[style*="#4b5563"] {
  color: var(--text-muted) !important;
}

/* Pros Box */
.raiox-pros-box,
div[style*="#f0fdf4"] {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}
.raiox-pros-box p,
.raiox-pros-box ul,
.raiox-pros-box i,
div[style*="#f0fdf4"] p,
div[style*="#f0fdf4"] ul,
div[style*="#f0fdf4"] i {
  color: var(--text-main) !important;
}
.raiox-pros-box i.bi-check-circle-fill,
.raiox-pros-box i.bi-hand-thumbs-up,
div[style*="#f0fdf4"] i.bi-check-circle-fill,
div[style*="#f0fdf4"] i.bi-hand-thumbs-up {
  color: var(--accent) !important;
}

/* Cons Box */
.raiox-cons-box,
div[style*="#fef2f2"] {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}
.raiox-cons-box p,
.raiox-cons-box ul,
.raiox-cons-box i,
div[style*="#fef2f2"] p,
div[style*="#fef2f2"] ul,
div[style*="#fef2f2"] i {
  color: var(--text-main) !important;
}
.raiox-cons-box i.bi-x-circle-fill,
.raiox-cons-box i.bi-hand-thumbs-down,
div[style*="#fef2f2"] i.bi-x-circle-fill,
div[style*="#fef2f2"] i.bi-hand-thumbs-down {
  color: #f87171 !important;
}

/* Table of Contents & Feedback Box */
.raiox-toc-container,
.raiox-feedback-box,
div[style*="#fcfcfc"] {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}
.raiox-toc-header,
div[style*="#f1f3f5"] {
  background-color: var(--bg-tertiary) !important;
}
.raiox-toc-container span,
.raiox-toc-container a,
.raiox-toc-container p,
.raiox-feedback-box p,
div[style*="#fcfcfc"] span,
div[style*="#fcfcfc"] a,
div[style*="#fcfcfc"] p {
  color: var(--text-main) !important;
}
.raiox-toc-container a:hover,
div[style*="#fcfcfc"] a:hover {
  color: var(--accent) !important;
}
.raiox-toc-container i,
.raiox-feedback-box i,
div[style*="#fcfcfc"] i {
  color: var(--accent) !important;
}
