/* =====================================================
   RESETA GAMES v2 - Stylesheet Principal
   Design System: Data-Driven Elegance
   Baseado nos modelos React fornecidos
   ===================================================== */

/* =====================================================
   VARIÁVEIS CSS (Dark Theme)
   ===================================================== */

:root {
  /* Colors */
  --background: #0a0a0a;
  --foreground: #ededed;
  --card: #161616;
  --card-hover: #1f1f1f;
  --border: #2a2a2a;
  --secondary: #1a1a1a;
  --muted-foreground: #a1a1a1;
  --accent: #22c55e;
  --accent-foreground: #0a0a0a;

  /* Badge Colors */
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.1);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.1);
  --pink: #ec4899;
  --pink-bg: rgba(236, 72, 153, 0.1);

  /* Spacing */
  --container-width: 1280px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-content {
  min-height: calc(100vh - 200px);
}

/* =====================================================
   HEADER STICKY
   ===================================================== */

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: var(--spacing-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.logo-text {
  display: none;
}

/* Navigation Desktop */
.nav-desktop {
  display: none;
  gap: var(--spacing-xl);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

/* Search Bar */
.search-bar {
  display: none;
  flex: 1;
  max-width: 320px;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--secondary);
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--foreground);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--foreground);
  transition: transform var(--transition-normal);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--spacing-md) 0;
}

.nav-mobile.active {
  display: block;
}

.nav-link-mobile {
  display: block;
  padding: 0.75rem var(--spacing-md);
  color: var(--muted-foreground);
  border-radius: 8px;
  margin-bottom: var(--spacing-xs);
  transition: all var(--transition-fast);
}

.nav-link-mobile:hover {
  color: var(--accent);
  background: var(--secondary);
}

.mobile-search {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
  margin-top: var(--spacing-md);
}

/* =====================================================
   BADGES & TAGS
   ===================================================== */

.badge-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
}

.badge-highlight {
  background: var(--accent);
  color: var(--accent-foreground);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge-pink {
  background: var(--pink-bg);
  color: var(--pink);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: var(--secondary);
  color: var(--muted-foreground);
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
  background: linear-gradient(to bottom, var(--card), var(--background));
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero-excerpt {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-lg);
}

.meta-tempo {
  color: var(--accent);
  font-weight: 500;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section-updates,
.section-listing,
.section-results {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* =====================================================
   ARTICLE CARDS
   ===================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.card-link {
  display: block;
  height: 100%;
}

.card-thumbnail {
  position: relative;
  height: 200px;
  background: var(--secondary);
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.article-card:hover .card-thumbnail img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .card-title {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.meta-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* =====================================================
   SIDEBAR RADAR
   ===================================================== */

.sidebar-radar {
  position: sticky;
  top: 100px;
}

.radar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.radar-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--accent);
}

.stat-info {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.widget-link {
  display: inline-block;
  margin-top: var(--spacing-lg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.section-cta {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cta-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 400px;
  margin: 0 auto;
}

.cta-input,
.newsletter-input {
  padding: 0.75rem 1rem;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
}

.cta-input:focus,
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.cta-button,
.newsletter-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.cta-button:hover,
.newsletter-button:hover {
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-tech {
  margin-top: 0.5rem;
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */

.article-page {
  padding: var(--spacing-2xl) 0;
}

.article-header {
  margin-bottom: var(--spacing-xl);
}

.article-meta-top {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.article-category {
  font-weight: 600;
  color: var(--accent);
}

.article-platform {
  color: var(--muted-foreground);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.article-lead {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.article-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-autor-grupo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.autor-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.autor-nome {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meta-info {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.meta-separator {
  margin: 0 0.5rem;
}

.article-share {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.article-featured-image {
  margin: var(--spacing-xl) 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-tags {
  margin-bottom: var(--spacing-xl);
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
}

.chart-container {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chart-container canvas {
  max-height: 400px;
}

/* Prose Styling (para conteúdo do artigo) */
.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.prose p {
  margin-bottom: var(--spacing-md);
}

.prose ul,
.prose ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 700;
  color: var(--accent);
}

.prose mark {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent);
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  color: var(--muted-foreground);
}

/* Related Articles */
.related-articles {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.related-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.related-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.related-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.related-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* =====================================================
   CATEGORY PAGE
   ===================================================== */

.category-header {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(to bottom, var(--card), transparent);
  border-bottom: 1px solid var(--border);
}

.category-header-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.category-icon {
  font-size: 3rem;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.category-stats {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.empty-state p {
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-lg);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* Pagination */
.pagination {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border);
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination-number:hover {
  background: var(--secondary);
  border-color: var(--accent);
}

.pagination-number.active {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

/* =====================================================
   SEARCH PAGE
   ===================================================== */

.search-header {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(to bottom, var(--card), transparent);
  border-bottom: 1px solid var(--border);
}

.search-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.search-query {
  color: var(--accent);
}

.search-stats {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-xl);
}

.search-form-large {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color var(--transition-fast);
}

.search-input-group:focus-within {
  border-color: var(--accent);
}

.search-input-group svg {
  color: var(--muted-foreground);
  margin-right: 0.75rem;
}

.search-input-large {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
}

.search-submit {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.search-submit:hover {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Search Suggestions */
.search-suggestions {
  text-align: center;
  padding: var(--spacing-2xl);
}

.suggestions-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.suggestion-tag {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.suggestion-tag:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

/* Search Results */
.results-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.result-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.result-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.result-link {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.result-thumbnail {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
}

.result-content {
  flex: 1;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.result-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.result-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.search-tips {
  margin-top: var(--spacing-xl);
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--spacing-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.search-tips h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.search-tips ul {
  list-style-position: inside;
  color: var(--muted-foreground);
}

.search-tips li {
  margin-bottom: 0.5rem;
}

.results-notice {
  text-align: center;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* =====================================================
   AFFILIATE STORE
   ===================================================== */

.vitrine-section {
  padding-top: var(--spacing-xl);
}

.vitrine-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-md);
}

.vitrine-search-group .search-input {
  min-height: 44px;
}

.vitrine-select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.vitrine-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.product-link {
  display: block;
  height: 100%;
}

.product-thumbnail {
  position: relative;
  height: 220px;
  background: var(--secondary);
  overflow: hidden;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-discount {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.product-content {
  padding: var(--spacing-md);
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-excerpt {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-md);
  min-height: 2.8em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: var(--spacing-md);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.price-old {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-cta {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE - TABLET (768px+)
   ===================================================== */

@media (min-width: 768px) {
  .logo-text {
    display: inline;
  }

  .nav-desktop {
    display: flex;
  }

  .search-bar {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-form {
    flex-direction: row;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .result-link {
    padding: var(--spacing-lg);
  }

  .result-thumbnail {
    width: 160px;
    height: 160px;
  }

  .vitrine-filters {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .vitrine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1024px+)
   ===================================================== */

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .article-title {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .vitrine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =====================================================
   COMPARADOR DE PREÇOS (/comparador)
   Reusa product-card / price-main / vitrine-grid do tema.
   ===================================================== */

.comparador-section {
  padding-top: var(--spacing-xl);
}

/* Chips de categoria */
.comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.comp-chip {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comp-chip:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.comp-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
}

/* Estado (loading / erro / vazio) */
.comp-status {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--muted-foreground);
}

.comp-status h3 {
  color: var(--foreground);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.comp-status code {
  background: var(--secondary);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.comp-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: comp-spin 0.8s linear infinite;
}

@keyframes comp-spin {
  to { transform: rotate(360deg); }
}

/* Card do comparador (herda .product-card) */
.comp-thumb {
  height: 180px;
}

.comp-thumb img {
  object-fit: contain;
  padding: var(--spacing-md);
}

.comp-best-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.comp-best-store {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.comp-minhist {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-md);
}

.comp-minhist strong {
  color: var(--foreground);
}

/* Cabeçalho da sparkline */
.comp-spark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.comp-spark-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 700;
}

.comp-trend {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.comp-trend-down { color: #22c55e; }
.comp-trend-up   { color: #ef4444; }
.comp-trend-flat { color: var(--muted-foreground); }

.comp-sparkline {
  position: relative;
  height: 44px;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

/* Lista de lojas concorrentes */
.comp-stores {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--spacing-md);
}

.comp-store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  transition: border-color var(--transition-fast);
}

.comp-store-row:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.comp-store-row.best {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.08);
}

.comp-store-name { color: var(--muted-foreground); }
.comp-store-row.best .comp-store-name { color: var(--foreground); font-weight: 600; }
.comp-store-price { font-weight: 700; color: var(--accent); }

.comp-cta { width: 100%; text-align: center; }
