/* ============================================================
   CV foksia (frozZaic) - cv.dualfroz.com
   Jezyk wizualny przeniesiony z old-personal-react (tokeny 1:1).
   Screen: ciemny glass + cyan glow.  Print: bialy, oszczedny.
   ============================================================ */

:root {
  --bg-color: #000011;
  --primary-color: #00f7ff;
  --text-color: #f0f0f0;
  --text-secondary-color: #c0c0c0;
  --text-muted-color: #8a97a8;
  --glass-bg: rgba(16, 18, 27, 0.8);
  --glass-border: rgba(0, 247, 255, 0.2);
  --panel-inner: rgba(13, 2, 33, 0.5);
  --accent-todo: #ffc700;          /* zolty - WYLACZNIE do znakow uzupelnienia */
  --font-main: "Fira Code", ui-monospace, "Cascadia Code", "Consolas", monospace;
  --radius-card: 15px;
  --radius-inner: 10px;
  --radius-pill: 15px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  background-image: radial-gradient(circle at 50% 30vh, #080d1b 0%, var(--bg-color) 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warstwa dekoracyjna: subtelna siatka + poswiata, tylko na ekranie */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(600px circle at 15% 12%, rgba(0, 247, 255, 0.06), transparent 60%),
    radial-gradient(700px circle at 85% 88%, rgba(0, 247, 255, 0.05), transparent 60%);
}

a { color: inherit; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Karta (glass, jak .content-wrapper) ---------- */
.card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  position: relative;
  min-width: 0;
}

/* ---------- Naglowki sekcji ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-head i {
  font-size: 1.35rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 6px rgba(0, 247, 255, 0.5));
  flex-shrink: 0;
}
h2 {
  color: var(--primary-color);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.55);
  letter-spacing: 0.01em;
}
.section-note {
  color: var(--text-muted-color);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 247, 255, 0.12);
}
.section-note strong { color: var(--text-secondary-color); font-weight: 600; }

/* ============================================================
   Header / profil
   ============================================================ */
.profile {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 36px 6px rgba(0, 247, 255, 0.35);
  z-index: -1;
}
.avatar {
  width: clamp(96px, 22vw, 132px);
  height: clamp(96px, 22vw, 132px);
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.55);
  background-color: #000;
  object-fit: cover;
  display: block;
}
.profile-main {
  flex: 1 1 320px;
  min-width: 0;
}
h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.5);
  margin-bottom: 0.35rem;
}
h1 .handle-alt {
  color: var(--primary-color);
  font-weight: 400;
  font-size: 0.62em;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

/* Podtytul pod h1 (tytul/stanowisko) */
.subtitle-line {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: baseline;
}

/* Inline placeholder [DO UZUPELNIENIA] */
.ph {
  display: inline-block;
  border: 1px dashed rgba(255, 199, 0, 0.6);
  color: var(--accent-todo);
  background: rgba(255, 199, 0, 0.05);
  border-radius: 6px;
  padding: 0.05rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ph-hint { color: var(--text-muted-color); font-size: 0.76rem; }

/* Pasek meta (imie / tytul) z placeholderami inline */
.identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0.85rem 0 0.25rem;
}
.identity-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  min-width: 0;
}
.identity-item .k {
  color: var(--text-muted-color);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ---------- Kontakt chipy (naglowek) ---------- */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  background: var(--panel-inner);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inner);
  font-size: 0.85rem;
  color: var(--text-color);
  text-decoration: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
  min-width: 0;
  max-width: 100%;
}
.contact-chip i {
  font-size: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}
.contact-chip .val {
  overflow-wrap: anywhere;
  word-break: break-word;
}
a.contact-chip:hover {
  border-color: rgba(0, 247, 255, 0.55);
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.14);
  transform: translateY(-2px);
}

/* ---------- Znaczniki uczciwosci ---------- */
.flag {
  display: inline-block;
  font-size: 0.66rem;
  line-height: 1.2;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.flag-confirm {
  color: var(--accent-todo);
  border: 1px solid rgba(255, 199, 0, 0.4);
  background: rgba(255, 199, 0, 0.08);
}

/* ---------- Legenda uczciwosci ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 247, 255, 0.12);
  font-size: 0.78rem;
  color: var(--text-secondary-color);
}
.legend div { display: flex; align-items: center; gap: 0.5rem; }
.legend .sw {
  width: 0.9rem; height: 0.9rem; border-radius: 3px; flex-shrink: 0;
}
.legend .sw.confirm { border: 1px solid rgba(255,199,0,0.5); background: rgba(255,199,0,0.15); }
.legend .sw.todo { border: 1px dashed rgba(255,199,0,0.7); background: transparent; }

/* ---------- Quick nav (kotwice, tylko ekran) ---------- */
.quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.quicknav a {
  font-size: 0.78rem;
  color: var(--text-secondary-color);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: color var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed);
}
.quicknav a:hover {
  color: var(--bg-color);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ============================================================
   Blok DO UZUPELNIENIA
   ============================================================ */
.todo {
  border: 1.5px dashed rgba(255, 199, 0, 0.55);
  border-radius: var(--radius-inner);
  background:
    repeating-linear-gradient(-45deg, rgba(255,199,0,0.03) 0 10px, transparent 10px 20px);
  padding: 1.1rem 1.25rem;
  position: relative;
}
.todo + .todo { margin-top: 0.9rem; }
.todo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-todo);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.todo-label i { font-size: 0.9rem; }
.todo-title { color: var(--text-color); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.3rem; }
.todo-hint { color: var(--text-muted-color); font-size: 0.82rem; line-height: 1.55; }
.todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

/* ============================================================
   Umiejetnosci / stack
   ============================================================ */
.skill-group { margin-bottom: 1.4rem; }
.skill-group:last-of-type { margin-bottom: 0; }
.skill-group-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-group-title::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
  display: inline-block;
}
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.skill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  background: var(--panel-inner);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inner);
  font-size: 0.9rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
  min-width: 0;
}
.skill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 247, 255, 0.15);
  border-color: rgba(0, 247, 255, 0.5);
}
.skill i {
  font-size: 1.5rem;
  color: #dff9fb;              /* devicon monochrom, spojny z rodzina cyan */
  line-height: 1;
  flex-shrink: 0;
}
.skill .skill-name { font-weight: 400; }
.skill .skill-tag {
  font-size: 0.68rem;
  color: var(--text-muted-color);
  margin-left: 0.15rem;
  white-space: nowrap;
}

/* ============================================================
   Projekty
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.project {
  background: rgba(13, 2, 33, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inner);
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
  min-width: 0;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 247, 255, 0.15);
  border-color: rgba(0, 247, 255, 0.5);
}
.project.legacy { opacity: 0.9; border-style: dashed; }
.project-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
}
.project h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.project-kind {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-color);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.project p {
  color: var(--text-secondary-color);
  font-size: 0.87rem;
  line-height: 1.55;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.tag {
  background: rgba(0, 247, 255, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(0, 247, 255, 0.2);
  white-space: nowrap;
}

/* ============================================================
   Dwie kolumny (wyksztalcenie + jezyki obce)
   ============================================================ */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Fakt poboczny ---------- */
.sidefact {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-secondary-color);
  background: var(--panel-inner);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  line-height: 1.55;
}
.sidefact i { color: var(--primary-color); margin-top: 0.15rem; flex-shrink: 0; }

/* ============================================================
   Kontakt (pelny) + profile
   ============================================================ */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.7rem;
}

/* ---------- Stopka ---------- */
.foot {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted-color);
  line-height: 1.6;
  padding: 0.5rem 0 0;
}

/* ============================================================
   Wejscie (subtelne, tylko ekran, tylko translateY -> zero overflow-x)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page > .reveal:nth-child(1) { animation-delay: 0.02s; }
  .page > .reveal:nth-child(2) { animation-delay: 0.09s; }
  .page > .reveal:nth-child(3) { animation-delay: 0.16s; }
  .page > .reveal:nth-child(4) { animation-delay: 0.23s; }
  .page > .reveal:nth-child(5) { animation-delay: 0.30s; }
  .page > .reveal:nth-child(6) { animation-delay: 0.36s; }
  .page > .reveal:nth-child(n+7) { animation-delay: 0.4s; }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   Responsywnosc
   ============================================================ */
@media (max-width: 560px) {
  .profile { flex-direction: column; text-align: center; align-items: center; }
  .identity-row, .contact-strip, .legend, .quicknav { justify-content: center; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
}

/* ============================================================
   WERSJA DO DRUKU
   ============================================================ */
@media print {
  :root {
    --text-color: #111;
    --text-secondary-color: #333;
    --text-muted-color: #555;
  }
  html, body {
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
  }
  .bg-decor, .quicknav, .avatar-wrap::after { display: none !important; }

  .page {
    max-width: 100%;
    padding: 0;
    gap: 0.6rem;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .card {
    background: #fff !important;
    border: 1px solid #cfd6de !important;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1 { color: #0b2b31 !important; }
  h2 { color: #0b2b31 !important; font-size: 1.15rem; }
  .section-head i { color: #0b2b31 !important; }

  .avatar {
    border: 2px solid #0b2b31 !important;
    width: 96px; height: 96px;
  }

  /* Chipy i skille: bialy, ciemny tekst, oszczedne obramowanie */
  .contact-chip, .skill, .project, .contact-chip .val {
    background: #fff !important;
    color: #111 !important;
  }
  .contact-chip, .skill {
    border: 1px solid #cfd6de !important;
    break-inside: avoid;
  }
  .contact-chip i, .skill i { color: #222 !important; }
  .skill i { text-shadow: none; }

  .project {
    border: 1px solid #cfd6de !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .project.legacy { border-style: solid !important; opacity: 1; }
  .project p, .section-note, .todo-hint, .identity-item .k, .foot { color: #333 !important; }

  .tag {
    background: #eef6f7 !important;
    color: #0b2b31 !important;
    border: 1px solid #b9ccce !important;
  }

  /* Placeholdery: dobrze widoczne w druku, dla foksia do wypelnienia */
  .todo {
    background: #fafafa !important;
    border: 1.5px dashed #999 !important;
    break-inside: avoid;
  }
  .todo-label { color: #111 !important; }
  .flag-confirm, .ph {
    color: #7a5b00 !important;
    border: 1px solid #b39400 !important;
    background: #fff8e0 !important;
  }
  .ph-hint { color: #555 !important; }
  .legend .sw.confirm { background: #fff8e0 !important; border-color: #b39400 !important; }
  .legend .sw.todo { border-color: #999 !important; }
  .legend { color: #333 !important; }

  .sidefact {
    background: #f4f8f9 !important;
    border-left: 3px solid #0b2b31 !important;
    color: #333 !important;
  }
  .sidefact i { color: #0b2b31 !important; }

  a { color: #0b2b31 !important; text-decoration: none; }

  .section-head, h2 { break-after: avoid; page-break-after: avoid; }

  @page { margin: 12mm 12mm; }
}
