/* tool.css — podstrony narzędzi (detal) i strony kategorii
   Wczytywane razem z common.css i narzedzia.css (styl kart .tool-card).
   Generowane przez scripts/build-tools.mjs — nie edytuj wygenerowanych HTML ręcznie. */

/* ===================== WSPÓLNE: kontener ===================== */
.tool-page-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { padding: 88px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-secondary); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary-text); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--color-border); }
.breadcrumb li[aria-current] { color: var(--color-text); font-weight: 600; }

/* ===================== HERO NARZĘDZIA ===================== */
.tool-hero { padding: 28px 0 40px; border-bottom: 1px solid var(--color-border); }
.tool-hero-top { display: flex; align-items: flex-start; gap: 22px; }
.tool-hero-logo {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 28px; letter-spacing: -0.5px;
}
.tool-hero-head { flex: 1; min-width: 0; }
.tool-hero-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; padding: 4px 11px; border-radius: 100px;
  margin-bottom: 10px; text-decoration: none;
}
.tool-hero-cat svg { width: 13px; height: 13px; }
.tool-hero h1 { font-size: clamp(28px,3.4vw,36px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; color: var(--color-text); margin-bottom: 6px; }
.tool-hero-type { font-size: 16px; color: var(--color-text); }
.tool-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tool-hero-tags .tool-tag { background: var(--color-primary-light); color: var(--color-primary-text); font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 8px; }
.tool-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===================== UKŁAD DETALU ===================== */
.tool-detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 40px 0 16px; align-items: start; }
.tool-main { min-width: 0; }
.tool-section { margin-bottom: 36px; }
.tool-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--color-text); margin-bottom: 14px; }
.tool-section p { font-size: 16px; line-height: 1.75; color: var(--color-text); margin-bottom: 12px; }
.tool-section p strong { color: var(--color-text); }

/* mocne / słabe strony */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proscons-col { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 22px; }
.proscons-col h3 { font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.proscons-col.pros h3 { color: #16A34A; }
.proscons-col.cons h3 { color: var(--color-accent-text); }
.proscons-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.proscons-col li { font-size: 16px; line-height: 1.55; color: var(--color-text); display: flex; align-items: flex-start; gap: 10px; }
.proscons-col li svg { flex-shrink: 0; margin-top: 3px; }

/* FAQ — natywny <details> */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-size: 16px; font-weight: 600; color: var(--color-text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 2px solid var(--color-text-muted); border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg); transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--color-primary-text); }
.faq-a { padding: 0 20px 18px; font-size: 16px; line-height: 1.7; color: var(--color-text); }

/* ===================== SIDEBAR ===================== */
.tool-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.aside-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; }
.aside-card h3 { font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--color-text); margin-bottom: 16px; }
.facts { display: flex; flex-direction: column; gap: 12px; }
.fact { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--color-text); }
.fact svg { flex-shrink: 0; color: var(--color-text); }
.fact span { color: var(--color-text); }
.fact strong { margin-left: auto; font-weight: 600; color: var(--color-text); text-align: right; }
.aside-ints { display: flex; flex-wrap: wrap; gap: 7px; }
.aside-card .pricing-note { font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); }
.aside-cta { background: var(--color-primary-text); border: none; }
.aside-cta h3 { color: rgba(255,255,255,0.85); }
.aside-cta p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.95); margin-bottom: 16px; }
.aside-cta .btn-white { width: 100%; justify-content: center; }

/* ===================== POWIĄZANE NARZĘDZIA ===================== */
.related { padding: 24px 24px 64px; }
.related h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; align-items: center; gap: 14px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.related-card:hover { border-color: var(--color-primary); }
.related-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; }
.related-name { font-size: 16px; font-weight: 700; color: var(--color-text); }
.related-type { font-size: 14px; color: var(--color-text-muted); margin-top: 2px; }

/* ===================== STRONA KATEGORII ===================== */
.cat-hero { padding: 104px 0 32px; text-align: center; }
.cat-hero-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; }
.cat-hero-icon svg { width: 30px; height: 30px; }
.cat-hero h1 { font-size: clamp(28px,4vw,36px); font-weight: 800; letter-spacing: -1px; color: var(--color-text); margin-bottom: 12px; }
.cat-hero p { font-size: 16px; line-height: 1.7; color: var(--color-text); max-width: 560px; margin: 0 auto 16px; }
.cat-hero-count { font-size: 14px; color: var(--color-text-muted); }
.cat-hero-count strong { color: var(--color-primary-text); }
.cat-other { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 24px 48px; }
.cat-chip { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); background: var(--color-surface); border: 1px solid var(--color-border); padding: 8px 16px; border-radius: 100px; text-decoration: none; transition: all 0.2s; }
.cat-chip:hover { color: var(--color-primary-text); border-color: var(--color-primary); }
.cat-chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .tool-detail { grid-template-columns: 1fr; gap: 28px; }
  .tool-aside { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .breadcrumb { padding-top: 84px; }
  .tool-hero-top { flex-direction: column; gap: 16px; }
  .tool-hero-logo { width: 64px; height: 64px; font-size: 24px; }
  .tool-hero-actions .btn-primary, .tool-hero-actions .btn-outline { width: 100%; justify-content: center; }
  .proscons { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cat-hero { padding-top: 96px; }
}
