/* ===================================================
   AI Tool Radar – Tool Detail Page Styles
   Shared CSS for all standalone tool pages
   =================================================== */

:root {
  --bg: #f7f7fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f3fa;
  --surface: #ededf5;
  --border: #ddd9e8;
  --text: #16152a;
  --text-dim: #4e4b66;
  --text-muted: #7c7a92;
  --accent: #5b4df5;
  --accent-bright: #7b6ff8;
  --accent2: #34c78b;
  --accent3: #e5544e;
  --accent4: #f0a030;
  --accent5: #3ea8d4;
  --gradient1: linear-gradient(135deg, #5b4df5 0%, #3b82f6 100%);
  --gradient2: linear-gradient(135deg, #e5544e 0%, #f0a030 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(91,77,245,0.04), 0 4px 16px rgba(91,77,245,0.06);
  --shadow-btn: 0 2px 8px rgba(91,77,245,0.2), 0 4px 16px rgba(91,77,245,0.15);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* === HEADER === */
.tool-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,247,251,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 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: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

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

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

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

.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: 'Instrument Serif', serif;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.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: 99px;
  background: rgba(91,77,245,0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.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: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* === DESCRIPTION === */
.tool-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  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: 1rem 1.3rem;
  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: 2.5rem;
  flex-wrap: wrap;
}

.tool-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient1);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91,77,245,0.3), 0 8px 24px rgba(91,77,245,0.2);
}

.tool-price {
  font-family: 'JetBrains 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: 1.2rem;
  margin-bottom: 2rem;
}

.pros-box, .cons-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

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

.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-dim);
  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.8rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

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

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

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

.features-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

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

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

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

.related-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  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: 8px;
}

.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: 'Instrument Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

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

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

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

/* === FOOTER === */
.tool-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  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;
  }
}
