/**
 * AIToolSpot — style.css
 *
 * Copyright (c) 2026 Aditya Shrivatri. All rights reserved.
 *
 * This source code is proprietary and confidential.
 * Unauthorized copying, distribution, modification, or use of this file,
 * via any medium, is strictly prohibited without the express written
 * permission of Aditya Shrivatri.
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.main-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a8a 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #c7d2fe;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e0e7ff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ============================================
   USE-CASE FILTER
   ============================================ */
.usecase-section {
  background: var(--white);
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.usecase-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   FREE TIER BANNER
   ============================================ */
.free-tier-banner {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #065f46;
}

.free-tier-banner .container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-section {
  padding: 36px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tool Card */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.tool-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-block;
  margin-top: 2px;
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-free-tier {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #166534;
}

.tool-free-tier strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
}

.tool-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tool-price-free {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}

.tool-price-paid {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tool-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s;
}

.tool-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: var(--white);
}

.tool-cta.free {
  background: var(--green);
}
.tool-cta.free:hover { background: #059669; }

/* ============================================
   DEALS SECTION
   ============================================ */
.deals-section {
  background: var(--white);
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.update-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #fde68a;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.deal-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.deal-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.deal-name {
  font-weight: 700;
  font-size: 1rem;
}

.deal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deal-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

.deal-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.deal-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: var(--white);
}

/* ============================================
   COMPARE TABLE
   ============================================ */
.compare-section {
  padding: 36px 0 48px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
}

.compare-table th {
  background: #f1f5f9;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }

.compare-table .tool-name-cell {
  font-weight: 700;
  color: var(--text);
}

.compare-table .free-tag {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.compare-table .get-btn {
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.compare-table .get-btn:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* ============================================
   LOCAL TOOLS SECTION
   ============================================ */
.local-section {
  padding: 36px 0;
  background: #fafafa;
  border-top: 1px solid var(--border);
}

.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.local-card {
  background: var(--white);
  border: 1.5px solid #d1fae5;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.local-free-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
}

.local-meta {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.local-meta-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-label {
  font-weight: 700;
  color: var(--text);
  min-width: 64px;
  flex-shrink: 0;
}

/* ============================================
   CHINA AI SECTION
   ============================================ */
.china-section {
  padding: 36px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.china-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.china-card {
  background: var(--white);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

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

.china-company-tag {
  background: #fef9c3;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
}

.no-affiliate-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  margin-top: -4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1e1b4b;
  color: #a5b4fc;
  padding: 36px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: #818cf8; }

.footer-links a {
  color: #a5b4fc;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--white); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: #6b7280;
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.78rem;
  color: #4b5563;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .main-nav { display: none; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .deals-grid { grid-template-columns: 1fr; }
}

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