/* Vitrine do Chacal - Portal Tech & Gadgets Affiliates */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --shopee-orange: #ee4d2d;
  --shopee-hover: #d73211;
  --mercadolivre-yellow: #fff159;
  --mercadolivre-text: #2d3277;
  --mercadolivre-hover: #e6d84f;
  --telegram-blue: #0088cc;
  --telegram-hover: #0077b5;
  --bg-dark: #0f172a;
  --bg-card-dark: #1e293b;
  --bg-light: #f8fafc;
  --bg-card-light: #ffffff;
  --text-dark: #f8fafc;
  --text-light: #0f172a;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --border-dark: #334155;
  --border-light: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.light-mode .card,
body.light-mode header,
body.light-mode footer,
body.light-mode .modal-content,
body.light-mode .cta-box {
  background-color: var(--bg-card-light);
  border-color: var(--border-light);
  color: var(--text-light);
}

body.light-mode .text-muted {
  color: #64748b;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span.badge-tech {
  background: linear-gradient(135deg, #ee4d2d, #0088cc);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.btn-telegram-group {
  background-color: var(--telegram-blue);
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, background-color 0.2s;
  text-decoration: none;
}

.btn-telegram-group:hover {
  background-color: var(--telegram-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.95) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.category-tag {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dual Affiliate Buttons (Shopee + Mercado Livre) */
.affiliate-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn-affiliate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
}

.btn-shopee {
  background-color: var(--shopee-orange);
  color: #ffffff;
}

.btn-shopee:hover {
  background-color: var(--shopee-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(238, 77, 45, 0.35);
}

.btn-mercadolivre {
  background-color: var(--mercadolivre-yellow);
  color: var(--mercadolivre-text);
}

.btn-mercadolivre:hover {
  background-color: var(--mercadolivre-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 241, 89, 0.35);
}

/* Dual Inline Row Buttons */
.affiliate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .affiliate-row {
    grid-template-columns: 1fr;
  }
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px 0;
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 10px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Deal & News Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #020617;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-red);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-store {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-shopee {
  background-color: var(--shopee-orange);
  color: white;
}

.badge-ml {
  background-color: var(--mercadolivre-yellow);
  color: var(--mercadolivre-text);
}

.badge-both {
  background: linear-gradient(90deg, #ee4d2d 50%, #fff159 50%);
  color: #000;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-box {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-green);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Callout Box inside Articles */
.cta-box {
  background-color: var(--bg-card-dark);
  border: 2px solid var(--border-dark);
  border-radius: 16px;
  padding: 24px;
  margin: 30px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}

@media (max-width: 700px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
}

.cta-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.cta-info {
  flex-grow: 1;
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: #020617;
  border-top: 1px solid var(--border-dark);
  padding: 50px 0 30px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 15px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: var(--text-muted);
}
