/* ===================================================
   AI Tool Radar – Tool Detail Page Styles
   Minimalist Design System
   =================================================== */

:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-card-hover: #f6f7f9;
  --surface: #f0f1f4;
  --border: #e2e4e9;
  --text: #111118;
  --text-dim: #3a3a44;
  --text-muted: #8b8b96;
  --accent: #5b6cf0;
  --accent-bright: #7b8af5;
  --accent2: #22c583;
  --accent3: #ef5350;
  --accent4: #ffb020;
  --accent5: #2196f3;
  --gradient1: linear-gradient(135deg, #2196f3 0%, #5b6cf0 100%);
  --gradient2: linear-gradient(135deg, #ef5350 0%, #ffb020 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.08);
  --shadow-btn: 0 4px 14px rgba(99,102,241,0.35), 0 8px 28px rgba(99,102,241,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === HEADER (Glassmorphism) === */
.tool-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,251,252,0.7);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
}

.tool-header a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-header a:hover { color: var(--accent); }

.tool-header .logo-icon {
  width: 26px;
  height: 26px;
}

/* === MAIN LAYOUT === */
.tool-page {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  position: relative;
}

/* === HERO SECTION === */
.tool-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.tool-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.tool-hero-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.tool-hero-info h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tool-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.tool-hero-meta .cat-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-hero-meta .rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tool-hero-meta .stars {
  color: var(--accent4);
  letter-spacing: 1px;
}

.tool-hero-meta .rating-num {
  font-family: 'Space Mono', monospace;
  font-weight: 500;
}

/* === DESCRIPTION === */
.tool-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* === VERDICT === */
.tool-verdict {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* === CTA === */
.tool-cta-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tool-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient1);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.tool-price {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-price strong {
  color: var(--accent2);
}

/* === PROS & CONS === */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pros-box, .cons-box {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.pros-box h3, .cons-box h3 {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pros-box h3 { color: var(--accent2); }
.cons-box h3 { color: var(--accent3); }

.pros-box li, .cons-box li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 1.4rem;
  position: relative;
}

.pros-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

.cons-box li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--accent3);
}

/* === INFO GRID === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.info-card .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.info-card .value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* === FEATURES === */
.features-section {
  margin-bottom: 2rem;
}

.features-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* === RELATED TOOLS === */
.related-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--surface);
}

.related-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.related-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

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

.related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.related-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.related-card-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.related-card-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === RELATED ARTICLES === */
.related-articles {
  margin-top: 2rem;
}

.related-articles h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.article-link {
  display: block;
  padding: 0.7rem 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--surface);
  transition: color 0.3s ease;
}

.article-link:hover { color: var(--text); }

/* === AFFILIATE NOTICE === */
.affiliate-notice {
  margin-top: 2.5rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === FOOTER === */
.tool-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--surface);
  margin-top: 3rem;
}

.tool-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .tool-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tool-hero-meta {
    justify-content: center;
  }

  .proscons-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-cta-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tool-cta-btn {
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
