/* ONSalex - Estilo Moderno Tech Cobalt & Slate */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-cyan: #06b6d4;
  --accent-light: #38bdf8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Top Announcement */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-announcement {
  background: var(--bg-darker);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-badge-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.top-badge-link:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
}

.brand-title .accent-text {
  color: var(--primary);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.main-nav .nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-tech {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.hero-tech::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-quick-calc {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-quick-calc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Calculadora Remessa Conforme */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-group {
  display: flex;
  align-items: center;
}

.input-group-addon {
  padding: 12px 14px;
  background: #e2e8f0;
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.calc-result-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
}

.calc-result-box.highlight {
  background: #eff6ff;
  border-color: #93c5fd;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.92rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row.total-row {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 2px solid #93c5fd;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* Radar & Deals Grid */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 40px 0 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.deal-img-wrap {
  position: relative;
  height: 190px;
  background: #f1f5f9;
  overflow: hidden;
}

.deal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-card:hover .deal-img-wrap img {
  transform: scale(1.05);
}

.deal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.deal-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

.deal-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-origin {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.deal-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-pricing {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.deal-store {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Guides Cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.guide-badge {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.guide-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.4;
}

.guide-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent-light);
}

.affiliate-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Article Page Layout */
.article-header {
  padding: 40px 0 20px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.article-content {
  padding: 40px 0;
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin: 36px 0 16px 0;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 28px 0 12px 0;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
