/* ==========================================================================
   refine.css - warstwa "anti-slop" nakładana na style.css i arkusze stron.
   Ładowana jako ostatnia. Usunięcie <link> do tego pliku przywraca poprzedni wygląd.
   ========================================================================== */

/* --- 1. Typografia: Geist zamiast Inter + Space Grotesk ------------------- */
:root {
  --f-heading: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --accent-glow: transparent;
}
body {
  font-feature-settings: "ss01", "cv11";
}
h1,
h2,
h3,
.hero__title,
.page-hero__title,
.proj-hero__title,
.section__title,
.showcase-title {
  letter-spacing: -0.03em;
}
.hero__title,
.page-hero__title,
.proj-hero__title {
  font-weight: 650;
}

/* --- 2. Przyciski: płaski akcent, bez poświaty i gradientu ---------------- */
.btn--primary,
body:not(.dark-theme) .btn--primary {
  background: var(--accent);
  border: 1px solid transparent;
  box-shadow: none;
}
.btn--primary:hover {
  background: #1d4ed8;
  box-shadow: none;
  transform: none;
}
.btn:active,
.nav__cta:active,
.filter-chip:active {
  transform: scale(0.98);
}
.nav__cta,
.nav__cta:hover,
.btt,
.btt:hover {
  box-shadow: none;
}
.nav__link:hover::after {
  box-shadow: none;
}

/* --- 3. Status "dostępny": kropka zostaje (realny stan), bez poświaty ----- */
.hero__status-dot {
  box-shadow: none;
  animation: none;
}

/* --- 4. Etykiety sekcji: bez numeracji "01 / 02", jako zwykłe nagłówki ---- */
.section__num {
  display: none;
}
.section__label::after {
  display: none;
}
.section__label {
  margin-bottom: 32px;
}
.section__tag {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
/* gdy pod etykietą jest właściwy tytuł sekcji, etykieta jest zbędna */
.section__label:has(+ .section__header) {
  display: none;
}

/* --- 5. Dekoracje do usunięcia -------------------------------------------- */
.showcase-num,
.dash-frame__dots,
.hero__grid-lines,
.hero__mesh {
  display: none;
}

/* --- 6. Liczby w podstronach: bez szklanych kart i gradientowego tekstu --- */
.stats-row {
  gap: 0;
  border-top: 1px solid var(--border-strong);
}
.stat-card,
body:not(.dark-theme) .stat-card {
  background: none;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  padding: 28px 24px 8px;
  transition: none;
}
.stat-card:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat-card:hover,
body:not(.dark-theme) .stat-card:hover {
  transform: none;
  box-shadow: none;
}
.stat-card::before {
  display: none;
}
.stat-card__value {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-0);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}
@media (max-width: 992px) {
  .stat-card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

/* --- 7. Karty tekstowe: zamiast pudełek - lista z linią nad punktem ------- */
.finding-card:not(:has(> img)) {
  background: none;
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 24px 0 8px;
  transition: none;
}
.finding-card:not(:has(> img)):hover {
  background: none;
  border-color: var(--border-strong);
  transform: none;
}
.finding-card__icon,
.finding-card:hover .finding-card__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--accent);
  justify-content: flex-start;
  margin-bottom: 14px;
}
.findings-grid {
  column-gap: 40px;
  row-gap: 16px;
}
/* karty z obrazem (galerie): lekki hover bez podskoku */
.finding-card:has(> img):hover {
  transform: none;
}

/* --- 8. Lista projektów: zamiast 7 zygzaków - wyróżniony + siatka 2 kol. -- */
@media (min-width: 993px) {
  #projects-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 96px 56px;
  }
  #projects-container > .project-showcase,
  #projects-container > .project-showcase--reverse {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 0;
  }
  #projects-container > .project-showcase > .showcase-visual {
    order: -1;
    width: 100%;
    flex: none;
  }
  #projects-container > .project-showcase:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  #projects-container > .project-showcase:first-child > .showcase-visual {
    order: 1;
    flex: 1.3;
  }
  #projects-container .showcase-text {
    position: static;
    padding-bottom: 0;
  }
  #projects-container .project-showcase:not(:first-child) .showcase-title {
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    margin: 14px 0 12px;
  }
  #projects-container .project-showcase:not(:first-child) .showcase-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  #projects-container .project-showcase:not(:first-child) .showcase-stats {
    margin-bottom: 24px;
  }
}
.showcase-visual {
  box-shadow: none;
  border-radius: var(--r-lg);
}
.stat-glass {
  background: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
  gap: 8px;
}
.stat-glass span {
  font-family: var(--f-body);
  font-size: 0.92rem;
}
.showcase-stats {
  gap: 10px 24px;
}

/* --- 9. Ramki screenshotów: spokojniejszy pasek z podpisem ---------------- */
.dash-frame__bar {
  justify-content: flex-start;
}
.dash-frame__title {
  font-family: var(--f-body);
  letter-spacing: 0;
}

/* --- 10. Hero podstron: bez pustej przestrzeni nad treścią ---------------- */
.proj-hero {
  min-height: 0;
  padding-top: calc(var(--nav-h) + 72px);
}
.page-hero {
  min-height: 0;
  padding-top: calc(var(--nav-h) + 88px);
}

/* --- 11. Ograniczony ruch ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
