/* CleanTextFree — Shared Styles
 * Ładowany przez każdą stronę: <link rel="stylesheet" href="/styles.css">
 * Page-specific CSS zostaje w <style> tagu na danej stronie.
 * Źródło prawdy: DESIGN-SYSTEM.md
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f7f8fa;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Page wrapper ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Top nav ── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}
.top-nav .logo img {
  height: 72px;
  width: auto;
  display: block;
}
.top-nav .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-nav .nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}
.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
  color: #6366f1;
}

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn { color: #6366f1; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px 0;
  min-width: 220px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.nav-dropdown-menu a:hover { background: #f8fafc; color: #6366f1; }
.nav-dropdown-menu a::before { content: '·'; margin-right: 6px; opacity: 0.45; }

/* ── Quick-tool cards ── */
.quick-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.quick-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #6366f1;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 110px;
  transition: background 0.15s, transform 0.1s;
  border: none;
}
.quick-tool-card:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}
.quick-tool-card svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-tool-card small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.78;
  text-align: center;
  line-height: 1.3;
}

/* ── Footer ── */
.site-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}
.site-footer a { color: #6366f1; text-decoration: none; margin: 0 8px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-top: 10px; }

/* ── Consent banner ── */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
#consent-banner a { color: #a5b4fc; }
.consent-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.15s;
}
.consent-btn.accept { background: #6366f1; color: #fff; }
.consent-btn.decline { background: #334155; color: #e2e8f0; }
.consent-btn:hover { opacity: 0.85; }

/* ── CRO badges ── */
.social-proof {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #16a34a;
  margin-top: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Mobile nav ── */
@media (max-width: 480px) {
  .top-nav .logo img { height: 40px !important; }
  .top-nav .nav-links { gap: 12px; }
  .top-nav .nav-links a,
  .nav-dropdown-btn { font-size: 0.8rem; }
}


/* ── From the Blog section (shared across all pages) ── */
.from-blog-section { margin-top: 40px; }
.from-blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.from-blog-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.from-blog-see-all {
  font-size: 0.84rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}
.from-blog-see-all:hover { text-decoration: underline; }
.from-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .from-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .from-blog-grid { grid-template-columns: 1fr; } }
.from-blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.from-blog-card:hover { box-shadow: 0 4px 20px rgba(99,102,241,0.12); border-color: #c7d2fe; }
.from-blog-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6366f1;
  background: #eef2ff;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}
.from-blog-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}
.from-blog-card:hover .from-blog-card-title { color: #6366f1; }
.from-blog-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}
