/* WireLab Git — layout polish shared by all WireLab themes. PL: wspólne dopracowanie wyglądu. */

/* Top bar: navy → blue gradient, light text. PL: górny pasek. */
#navbar {
  background: linear-gradient(100deg, #0b1b38 0%, #163a6e 55%, #2b6fd0 100%) !important;
  border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 24px rgba(7,18,38,.18);
}
#navbar .item, #navbar a.item, #navbar .item .svg, #navbar .text { color: #e2ecff !important; }
#navbar a.item:hover, #navbar .item.active, #navbar .dropdown.item:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; border-radius: 8px; }
#navbar #navbar-logo img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
#navbar .ui.label { background: #38bdf8 !important; color: #04122a !important; }

/* Boxes and segments: softer, rounded. PL: zaokrąglone ramki. */
.ui.segment, .ui.attached.segment, .repository .ui.segment, .ui.table, .ui.menu:not(.secondary):not(.text):not(#navbar), .ui.card, .ui.cards > .card {
  border-radius: 12px;
}
.ui.top.attached.header { border-top-left-radius: 12px !important; border-top-right-radius: 12px !important; }
.ui.bottom.attached.segment { border-bottom-left-radius: 12px !important; border-bottom-right-radius: 12px !important; }
.ui.primary.button, .ui.primary.buttons .button {
  background: linear-gradient(100deg, var(--color-primary-dark-2), var(--color-primary-light-1)) !important;
  border: 0 !important; box-shadow: 0 6px 18px var(--color-primary-alpha-30);
}
.ui.primary.button:hover { filter: brightness(1.07); }
.repository .header-wrapper { background: linear-gradient(180deg, var(--color-header-wrapper), var(--color-body)); }
.repo-header .repo-title { font-weight: 700; letter-spacing: -.01em; }
.markup h1, .markup h2 { letter-spacing: -.015em; }
.markup table { border-radius: 10px; overflow: hidden; }
.page-footer { border-top: 1px solid var(--color-light-border); }

/* ---------- Landing page ---------- */
.wl-home { margin-top: 0 !important; }
.wl-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(56,189,248,.38), transparent 60%),
    radial-gradient(700px 360px at -5% 120%, rgba(79,143,239,.38), transparent 60%),
    linear-gradient(125deg, #071226 0%, #10284f 50%, #1f5096 100%);
  padding: 4.5rem 1.5rem 5rem;
}
.wl-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.wl-hero__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.wl-hero__eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #b8d4fb; font-weight: 700; margin: 0 0 .8rem; }
.wl-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff 30%, #b8d4fb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wl-hero p.wl-lead { font-size: 1.12rem; line-height: 1.6; color: rgba(227,238,253,.88); margin: 0 0 1.8rem; max-width: 34rem; }
.wl-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.wl-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 650; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s;
}
.wl-btn--primary { background: linear-gradient(100deg, #38bdf8, #4f8fef); color: #04122a !important; box-shadow: 0 10px 28px rgba(56,189,248,.35); }
.wl-btn--ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.wl-btn:hover { transform: translateY(-2px); }
.wl-btn--ghost:hover { background: rgba(255,255,255,.14); }
.wl-mascot { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 1; }
.wl-mascot::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,143,239,.45), transparent 65%); filter: blur(8px);
}
.wl-mascot img { position: relative; width: 100%; height: 100%; animation: wl-bob 5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@keyframes wl-bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .wl-mascot img { animation: none; } }

.wl-section { max-width: 1100px; margin: 0 auto; padding: 3.2rem 1.5rem 1rem; }
.wl-section h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; color: var(--color-text-dark); }
.wl-section > p { color: var(--color-text-light-1); margin: 0 0 1.6rem; }
.wl-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wl-card {
  display: block; padding: 1.3rem 1.3rem 1.2rem; border-radius: 16px; text-decoration: none !important;
  background: var(--color-box-body); border: 1px solid var(--color-light-border); color: var(--color-text) !important;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wl-card:hover { transform: translateY(-3px); border-color: var(--color-primary-light-3); box-shadow: 0 14px 34px var(--color-primary-alpha-20); }
.wl-card__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem; color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2b6fd0); box-shadow: 0 8px 20px var(--color-primary-alpha-30);
}
.wl-card__icon svg { width: 1.3rem; height: 1.3rem; }
.wl-card h3 { margin: 0 0 .35rem; font-size: 1.08rem; font-weight: 700; color: var(--color-text-dark); }
.wl-card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--color-text-light-1); }
.wl-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: center; padding: 2rem 1.5rem 3rem; color: var(--color-text-light-2); font-size: .9rem; }
.wl-strip b { color: var(--color-text); }
@media (max-width: 760px) {
  .wl-hero { padding: 2.6rem 1.1rem 3rem; }
  .wl-hero__inner { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .wl-mascot { width: 180px; order: -1; }
  .wl-hero p.wl-lead { margin-inline: auto; }
  .wl-actions { justify-content: center; }
}

/* Landing hero touches the top bar. PL: baner przylega do paska. */
.page-content.wl-home { padding-top: 0 !important; margin-top: 0 !important; }
.full.height > .page-content.wl-home, body > .full.height { padding-top: 0 !important; }
#navbar-logo img { width: 34px !important; height: 34px !important; }
