/* blog/static/blog/site.css
   Ujednolicony styl globalny dla stron: layout, typografia, komponenty, post-content, tools/blog/about
*/

:root{
  --max-width: 1100px;

  /* kolorystyka */
  --bg: #f8f9fa;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0e1620;
  --subtle: rgba(20,20,30,0.04);
  --card-shadow: 0 6px 18px rgba(14,18,30,0.04);

  /* brand */
  --brand: #0b3d91;
  --brand-cta: #0b63d4;

  /* spacing/typography */
  --gutter: 16px;
  --radius: 12px;
  --base-font: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* --- Base / layout --- */
html,body{height:100%;}
body{
  background-color: var(--bg);
  font-family: var(--base-font);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  margin:0;
}

/* container used on pages */
.container, .blog-container, .tools-container, .about-container {
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

/* small helper utilities */
.text-muted-soft { color: #6b7280; }
.mb-4 { margin-bottom: 1.25rem; }

/* --- Navbar / footer tweaks (overrides dla bootstrap dark) --- */
.navbar-brand span { color: #ffffff; font-family: 'Playfair Display', serif; }
.nav-link { font-weight: 500; color: #dcdcdc !important; }
.nav-link:hover { color: #ffffff !important; }
.btn-outline-light { border-radius: 20px; font-weight:500; padding:6px 14px; }

/* footer */
footer { border-top: 1px solid rgba(255,255,255,0.08); }

/* --- Cards (shared) --- */
.card, .about-card, .blog-card, .tool-card, .post-card {
  background: linear-gradient(180deg, var(--surface) 0%, #fbfbfd 100%);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* efekt tylko dla kart interaktywnych */
.card.interactive:hover,
.blog-card.interactive:hover,
.tool-card.interactive:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14,18,30,0.09);
}


/* small card variants used in tools/blog lists */
.blog-card, .tool-card { display:flex; gap:12px; align-items:center; min-height:110px; }
.blog-icon, .tool-icon { flex: 0 0 64px; height:64px; width:64px; border-radius:10px; display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01)); }

/* --- About specific (moved from about.css) --- */
.about-container { max-width: var(--max-width); margin: 28px auto; padding: 0 var(--gutter); box-sizing: border-box; }
.about-hero { display:flex; gap:18px; align-items:center; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; }
.about-hero-body { flex:1 1 380px; }
.about-hero-image { flex:0 0 240px; text-align:center; }
.about-title { margin:0 0 6px 0; font-size:2rem; font-weight:700; font-family:'Playfair Display', serif; }
.about-sub { margin:0; color:var(--muted); font-size:1.05rem; }
.about-card { background: var(--surface); border-radius: var(--radius); padding:24px; box-shadow: var(--card-shadow); color:#444654; line-height:1.65; }
.about-fact { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(11,18,32,0.02); color:#333; }
.about-team { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.team-card .name { font-weight:600; margin-top:8px; }
.team-card .role { color: var(--muted); font-size:0.92rem; }

/* --- Blog list + post excerpt --- */
.blog-grid { display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.post-excerpt { margin: 0.2rem 0 0.6rem 0; color:#333; line-height:1.5; font-size:0.97rem; }
.post-excerpt a { color:#333; transition: color 0.15s ease; }
.post-excerpt a:hover { color: var(--brand-cta); text-decoration:none; }

/* --- Post content (full) - preserved from your post-content styles --- */
.post-content {
  margin-top: 8px;
  line-height: 1.65;
  font-size: 1rem;
  color: #222;
  font-family: var(--base-font);
  letter-spacing: -0.01em;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  color: #0e1620;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.18;
  font-weight: 600;
}
.post-content h1 { font-size: 1.6rem; }
.post-content h2 { font-size: 1.3rem; }
.post-content h3 { font-size: 1.1rem; }
.post-content h4 { font-size: 1rem; }
.post-content .lead { font-size: 1.06rem; color:#333; font-weight:500; margin-bottom:1rem; }
.post-content p { margin:0 0 1.05rem 0; color:#2a2a2a; font-weight:400; }
.post-content ul, .post-content ol { margin:0 0 1.05rem 1.15rem; padding:0; color:#2a2a2a; }
.post-content li { margin-bottom:0.45rem; }
.post-content blockquote { margin:0 0 1rem 0; padding:12px 16px; background:#fbfbfb; border-left:3px solid rgba(11,18,32,0.06); color:#444; border-radius:6px; font-style:italic; }
.post-content pre { background:#0f1720; color:#e6eef8; padding:12px; border-radius:8px; overflow:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; font-size:0.9rem; margin:0 0 1rem 0; }
.post-content code { background: rgba(11,18,32,0.04); padding:2px 6px; border-radius:6px; font-family:ui-monospace, monospace; font-size:0.92em; color:#0b1220; }
.post-content table { width:100%; border-collapse:collapse; margin:0 0 1rem 0; font-size:0.95rem; background:white; }
.post-content th, .post-content td { padding:10px 12px; border:1px solid rgba(20,20,30,0.06); text-align:left; }
.post-content thead th { background: rgba(11,18,32,0.03); font-weight:600; }
.post-content img { max-width:100%; height:auto; display:block; margin:0.6rem 0; border-radius:8px; box-shadow:0 6px 18px rgba(14,18,30,0.04); }
.post-content a { color: var(--brand-cta); text-decoration:underline; }
.post-content a:hover { text-decoration:none; text-underline-offset:3px; }

/* --- Tools list (reuse blog-card styles) --- */
.tools-grid { display:grid; gap:20px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.tool-title, .blog-title { font-size:1.06rem; font-weight:700; margin:0 0 6px 0; }
.tool-desc, .blog-desc { margin:0; color:#505060; font-size:0.92rem; }

/* responsive tweaks */
@media (min-width:900px){ .blog-grid, .tools-grid { gap:24px; } }
@media (max-width:680px){
  .post-content { font-size:0.98rem; line-height:1.6; }
  .post-content h1 { font-size:1.45rem; }
  .post-content h2 { font-size:1.18rem; }
}

/* --- Small utilities to ease migration --- */
.text-center { text-align:center; }
.lead { font-size:1.06rem; font-weight:500; color:#333; }
.small { font-size:0.88rem; }


/* End of site.css */
