/*
Theme Name: ZeroBelki
Theme URI: https://zerobelki.pl/
Author: ZeroBelki.pl
Description: Lekki motyw blokowy dla portalu porównującego IKE, IKZE i OKI.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: zerobelki
*/

:root {
  --zb-navy: #102a43;
  --zb-blue: #1463ff;
  --zb-blue-dark: #0b49c1;
  --zb-mint: #dff8ee;
  --zb-ink: #172b3a;
  --zb-muted: #536779;
  --zb-line: #dce5ec;
  --zb-surface: #f5f8fb;
  --zb-white: #ffffff;
  --zb-warning: #fff3cf;
  --zb-danger: #9c2f25;
  --zb-radius: 18px;
  --zb-shadow: 0 16px 40px rgba(16, 42, 67, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--zb-ink);
  background: var(--zb-white);
  -webkit-font-smoothing: antialiased;
}
a { text-underline-offset: .18em; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
}

.zb-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 236, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.admin-bar .zb-site-header { top: 32px; }
.zb-site-header > .wp-block-group {
  width: min(calc(100% - 2rem), 1180px);
  max-width: 1180px;
  margin-inline: auto;
}
.zb-site-header .wp-block-site-title a { text-decoration: none; }
.zb-site-header .wp-block-navigation__container { gap: clamp(.75rem, 1.6vw, 1.35rem); }
.zb-site-header .wp-block-navigation-item__content {
  font-size: .96rem;
  font-weight: 650;
  white-space: nowrap;
}
.zb-site-header .current-menu-item > a { color: var(--zb-blue); }

.zb-main { min-height: 65vh; }
.zb-site-footer { margin-top: clamp(3rem, 8vw, 7rem); }

.zb-eyebrow {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  margin: 0 0 .8rem;
  color: var(--zb-blue-dark);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zb-hero {
  overflow: hidden;
  position: relative;
  padding: clamp(2.4rem, 6vw, 5.7rem) 0 clamp(2.2rem, 5vw, 4.7rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(20, 99, 255, .13), transparent 31%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}
.zb-hero > .wp-block-group {
  width: min(calc(100% - 2rem), 1180px);
  max-width: 1180px;
  margin-inline: auto;
}
.zb-hero h1 { max-width: 17ch; margin-top: 0; letter-spacing: -.045em; }
.zb-hero p { max-width: 63ch; color: var(--zb-muted); }
.zb-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }

.zb-grid { display: grid; gap: 1rem; }
.zb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zb-card {
  height: 100%;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--zb-line);
  border-radius: var(--zb-radius);
  background: var(--zb-white);
  box-shadow: var(--zb-shadow);
}
.zb-card h2, .zb-card h3 { margin-top: 0; }
.zb-card p:last-child { margin-bottom: 0; }
.zb-soft { background: var(--zb-surface); }
.zb-callout {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--zb-blue);
  border-radius: 0 12px 12px 0;
  background: #edf4ff;
}
.zb-callout--warning { border-color: #d99000; background: var(--zb-warning); }

.wp-block-button__link {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 99, 255, .18);
}
.wp-block-post-title { letter-spacing: -.035em; }
.wp-block-post-content > .wp-block-group.alignwide,
.wp-block-post-content > section.alignwide {
  width: min(calc(100% - 2rem), 1180px);
  max-width: 1180px;
  margin-inline: auto;
}
.wp-block-post-content > .alignfull {
  max-width: none;
}
.wp-block-post-content > h2 { margin-top: 2.7rem; }
.wp-block-post-content > h3 { margin-top: 2rem; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table th { background: var(--zb-navy); color: white; text-align: left; }
.wp-block-table th, .wp-block-table td { padding: .78rem .85rem; border-color: var(--zb-line); }

@media (max-width: 800px) {
  .admin-bar .zb-site-header { top: 46px; }
  .zb-grid-3 { grid-template-columns: 1fr; }
  .zb-site-header { position: relative; top: 0; }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .zb-site-header .wp-block-navigation__container { gap: .7rem; }
  .zb-site-header .wp-block-navigation-item__content { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
