/* ============================================================
   Tool Detail Page — static generated pages in tools/
   Inherits: css/main.css (variables, badges, footer)
             css/cards.css (cover gradients, use-list, pricing)
   ============================================================ */

/* ============================================================
   Header — gradient matches the tool's category cover
   ============================================================ */
.tool-page-header {
  padding: 20px 0 40px;
}

/* Tool hero — logo + title side by side */
.tool-hero {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 28px;
}

.tool-hero-logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tool-hero-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tool-hero-text {
  flex: 1;
}

.tool-hero-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tool-hero-text h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.tool-hero-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

/* Override badge styles on gradient background */
.tool-page-header .badge-category {
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================================
   Page Content
   ============================================================ */
.tool-page-content {
  max-width: 820px;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* ============================================================
   Sections
   ============================================================ */
.tool-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.tool-section:last-of-type {
  border-bottom: none;
}

.tool-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
}

.tool-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Two-column when/not-to-use */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .two-col-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Reuse use-list styles from cards.css if available, else define here */
.use-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.use-list li {
  font-size: 14px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
  color: var(--color-text);
}

.use-list-yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.use-list-no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* ============================================================
   Pricing table
   ============================================================ */
.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-row {
  display: flex;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-label {
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

/* ============================================================
   Tips section
   ============================================================ */
.tips-section {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border) !important;
}

/* ============================================================
   Alternatives
   ============================================================ */
.alts-section {
  border-bottom: 1px solid var(--color-border) !important;
}

.alts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alt-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1.5px solid var(--color-primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.alt-link:hover {
  background: var(--color-primary);
  color: white;
  text-decoration: none;
}

/* ============================================================
   Breadcrumb navigation (dou.ua style hierarchy trail)
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding-bottom: 28px;
  flex-wrap: wrap;
}

.bc-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.bc-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.bc-sep {
  color: var(--color-text-muted);
  opacity: 0.45;
  font-size: 14px;
}

.bc-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   CTA
   ============================================================ */
.tool-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-visit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.btn-back {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.btn-back:hover {
  color: var(--color-text);
  text-decoration: none;
}
