/*
Theme Name: Ziomek od e-commerce
Theme URI: https://example.com
Author: Daniel
Author URI: https://example.com
Description: Autorski, w pełni kodowany motyw WordPress (zero page builderów) dla marki osobistej Daniela — usługi e-commerce, integracje, kurs. Przygotowany pod WooCommerce (sprzedaż jako jeden z kanałów, nie fundament motywu).
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ziomek-ecommerce
*/

/* ==========================================================================
   Ten plik jest ładowany automatycznie przez WordPressa jako główny
   arkusz stylów motywu (get_stylesheet_uri()). Trzymamy tu całość CSS
   celowo — zero buildera, zero zależności, łatwo czytać i edytować.
   ========================================================================== */

:root {
  --bg: #17181b;
  --bg-raised: #1e2024;
  --bg-raised-2: #24262b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f5f4f0;
  --muted: #a7a8ad;
  --muted-2: #7b7c81;
  --accent: #e6c428;
  --accent-alt: #b98cff; /* alternatywny akcent (fiolet) do ew. przełączenia */
  --accent-ink: #1a1400;
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* ---------- tło / tekstury ---------- */

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 35%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 35%, #000 0%, transparent 80%);
}

/* ---------- doodles w tle (drobne ikony e-commerce, rozrzucone po pustych miejscach) ---------- */

.doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.doodle {
  position: absolute;
  color: var(--muted);
  opacity: 0.22;
  animation-name: floatY;
  animation-duration: var(--dur, 6s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.doodle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.doodle.accent {
  color: var(--accent);
  opacity: 0.3;
}

@keyframes floatY {
  0%   { transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1); }
  25%  { transform: translate(7px, -26px) rotate(calc(var(--rot, 0deg) + 10deg)) scale(1.1); }
  50%  { transform: translate(-9px, -40px) rotate(calc(var(--rot, 0deg) - 8deg)) scale(0.92); }
  75%  { transform: translate(6px, -18px) rotate(calc(var(--rot, 0deg) + 5deg)) scale(1.05); }
  100% { transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .doodle {
    animation: none;
  }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -24px) scale(1.08); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise-in {
  animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .glow, .dot, .marquee-track, .rise-in {
    animation: none !important;
  }
}

/* ---------- nav ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.brand:hover {
  color: var(--fg);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 15px;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.brand-name span {
  color: var(--muted-2);
  font-weight: 500;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.primary-nav a:hover {
  color: var(--fg);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- buttons / pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(230, 196, 40, 0.55);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.pill.pill-accent {
  color: var(--accent);
  border-color: var(--accent);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseSoft 2.2s ease-in-out infinite;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 0 64px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 96px 0 110px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  animation-name: floatY;
  animation-duration: var(--dur, 7s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-chip svg {
  flex-shrink: 0;
  color: var(--accent);
}

.hero-chip-1 { top: 3%; left: 64%; --rot: -4deg; --dur: 7s; animation-delay: -1s; }
.hero-chip-2 { top: 46%; left: 50%; --rot: 3deg; --dur: 8s; animation-delay: -4s; }

@media (max-width: 1180px) {
  .hero-chip {
    display: none;
  }
}

.hero-copy {
  max-width: 600px;
}

.hero-copy h1 {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 22px;
  color: var(--fg);
}

.hero-copy .lede {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-stats .stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 2px;
}

.frame-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  width: 420px;
  height: 480px;
}

.stack-card {
  position: absolute;
  border-radius: 20px;
}

.stack-card-alt {
  width: 380px;
  height: 440px;
  background: var(--accent-alt);
  top: 46px;
  right: 4px;
  transform: rotate(7deg);
  opacity: 0.92;
}

.stack-card-accent {
  width: 380px;
  height: 440px;
  background: var(--accent);
  top: 26px;
  right: -16px;
  transform: rotate(-5deg);
}

.frame-photo {
  position: absolute;
  top: 8px;
  right: 26px;
  width: 380px;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 7px solid var(--fg);
  transform: rotate(-3deg);
  box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.8s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sticker-profit {
  width: 128px;
  height: 84px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  top: -18px;
  left: -20px;
  transform: rotate(-7deg);
  padding: 6px 10px;
}

.sticker-profit .sticker-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}

.sticker-profit .sticker-sub {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  opacity: 0.85;
}

.sticker-ads {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-raised-2);
  border: 1.5px solid var(--line-strong);
  color: var(--fg);
  top: 260px;
  right: -26px;
  transform: rotate(9deg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.25;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-raised);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted-2);
}

.marquee-item.is-tag {
  color: var(--accent);
}

/* ---------- paths / cards ---------- */

.paths {
  padding: 120px 64px;
}

.paths-head {
  max-width: 520px;
}

.paths-head h2 {
  font-size: 34px;
  margin-top: 18px;
  color: var(--fg);
}

.paths-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--bg-raised-2);
}

.card h3 {
  font-size: 19px;
  margin-top: 20px;
  color: var(--fg);
}

.card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.card .card-link {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-arrow {
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0.5;
}

.card:hover .card-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 64px;
  color: var(--muted-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsywność (szkic — dopracujemy) ---------- */

@media (max-width: 960px) {
  .site-header,
  .hero,
  .paths {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .frame-wrap {
    align-self: center;
    width: 300px;
    height: 340px;
  }

  .stack-card-alt,
  .stack-card-accent {
    width: 270px;
    height: 320px;
  }

  .frame-photo {
    width: 270px;
    height: 320px;
    right: 14px;
    top: 6px;
  }

  .sticker-ads {
    top: 190px;
  }

  .primary-nav {
    display: none;
  }

  .paths-grid {
    grid-template-columns: 1fr;
  }
}
