/* ===== AI Tool Radar — Affiliate Site Styles ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C3CE1;
  --primary-light: #8B5CF6;
  --primary-dark: #5228CC;
  --accent: #00D4AA;
  --accent-dark: #00B894;
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Featured Articles Grid */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

img.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  background: rgba(108,60,225,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-tag.comparison { background: rgba(0,212,170,0.1); color: var(--accent-dark); }
.card-tag.guide { background: rgba(245,87,108,0.1); color: #f5576c; }

.card-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover { gap: 8px; }

/* Article Page */
.article-header {
  padding: 60px 0 30px;
  max-width: 760px;
  margin: 0 auto;
}

.article-header .breadcrumb {
  color: var(--text-lighter);
  font-size: 14px;
  margin-bottom: 20px;
}

.article-header .breadcrumb a { color: var(--text-light); }

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.affiliate-disclosure {
  background: #FFF8E1;
  border-left: 4px solid #FFB300;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: #6D5D00;
  margin-bottom: 32px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 20px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text);
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Product Box */
.product-box {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  transition: border-color 0.2s;
}

.product-box:hover { border-color: var(--primary-light); }

.product-box.featured {
  border-color: var(--primary);
  position: relative;
}

.product-box.featured::before {
  content: "Editor's Choice";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
}

.product-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-rating {
  color: #F59E0B;
  font-size: 16px;
  margin-bottom: 12px;
}

.product-box .price {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.product-box .price strong {
  font-size: 20px;
  color: var(--text);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

.pros h4, .cons h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pros h4 { color: #10B981; }
.cons h4 { color: #EF4444; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.pros li::before { content: "✓ "; color: #10B981; font-weight: 700; }
.cons li::before { content: "✗ "; color: #EF4444; font-weight: 700; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
  transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.cta-button.green { background: var(--accent); }
.cta-button.green:hover { background: var(--accent-dark); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:nth-child(even) { background: #F9FAFB; }
.comparison-table tr:hover { background: #F3F4F6; }

/* Quick Summary Box */
.summary-box {
  background: linear-gradient(135deg, rgba(108,60,225,0.05), rgba(0,212,170,0.05));
  border: 1px solid rgba(108,60,225,0.15);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}

.summary-box h3 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 12px;
}

.summary-box ul { padding-left: 20px; }
.summary-box li { margin-bottom: 6px; font-size: 15px; }

/* Table of Contents */
.toc {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}

.toc h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.toc ol {
  padding-left: 20px;
  margin: 0;
}

.toc li {
  margin-bottom: 6px;
  font-size: 14px;
}

.toc a { color: var(--text-light); }
.toc a:hover { color: var(--primary); }

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 60px 0;
  color: #fff;
}

.newsletter h2 { font-size: 28px; margin-bottom: 12px; color: #fff; }
.newsletter p { opacity: 0.9; margin-bottom: 24px; font-size: 16px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
}

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--accent-dark); }

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { margin-top: 12px; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 50px 0 40px; }
  .articles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .article-header h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
}
