@charset "UTF-8";

body.pk-app {
  --pk-cream: #FFF4F6;
  --pk-cream-2: #FFFDF9;
  --pk-pink: #FF8FB1;
  --pk-pink-soft: #FFD3E1;
  --pk-magenta: #D6336C;
  --pk-lavender: #C9AEEA;
  --pk-lavender-soft: #E6DAFB;
  --pk-mint: #9FE0BE;
  --pk-yellow: #FFD866;
  --pk-ink: #4A2E35;
  --pk-ink-soft: #8A6B72;
  --pk-paper-shadow: rgba(74, 46, 53, 0.16);

  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, var(--pk-lavender-soft) 0%, transparent 45%),
    radial-gradient(circle at 88% 0%, var(--pk-pink-soft) 0%, transparent 42%),
    var(--pk-cream);
  font-family: 'Quicksand', sans-serif;
  color: var(--pk-ink);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Ctext x='0' y='26' font-size='26'%3E🐾%3C/text%3E%3C/svg%3E") 4 28, auto;
}

body.pk-app *, body.pk-app *::before, body.pk-app *::after { box-sizing: border-box; }
body.pk-app h1, body.pk-app h2, body.pk-app h3 { font-family: 'Baloo 2', 'Quicksand', sans-serif; }
body.pk-app button, body.pk-app select, body.pk-app input, body.pk-app textarea, body.pk-app label, body.pk-app a {
  font-family: inherit;
  color: inherit;
  cursor: inherit;
}
body.pk-app textarea,
body.pk-app input[type="text"],
body.pk-app input[type="password"] {
  cursor: text;
}
body.pk-app a { text-decoration: none; }
body.pk-app :focus-visible { outline: 3px solid var(--pk-magenta); outline-offset: 2px; }

/* ślad kursora */
.pk-trail-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.pk-trail-item {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 18px; animation: pk-trail-fade 750ms ease-out forwards;
}
@keyframes pk-trail-fade {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1) translateY(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) translateY(-26px); }
}

/* pływające ozdobniki w hero */
.pk-floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pk-floater { position: absolute; opacity: 0.4; animation: pk-float 9s ease-in-out infinite; }
@keyframes pk-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* nagłówek */
.pk-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(20px, 5vw, 56px) 0;
}
.pk-logo { display: flex; align-items: center; gap: 10px; }
.pk-logo-text { font-size: 21px; font-weight: 700; color: var(--pk-magenta); font-family: 'Baloo 2', sans-serif; }
.pk-nav { display: flex; gap: 10px; flex-wrap: wrap; }

.pk-tape {
  position: absolute; width: 60px; height: 20px; opacity: 0.65;
  top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: var(--pk-yellow);
  box-shadow: 0 1px 3px rgba(74, 46, 53, 0.18);
}

/* przyciski */
.pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 2px solid var(--pk-ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 3px 3px 0 var(--pk-ink);
  white-space: nowrap;
}
.pk-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pk-ink); }
.pk-btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--pk-ink); }
.pk-btn--primary { background: var(--pk-pink); color: var(--pk-ink); }
.pk-btn--ghost { background: transparent; }
.pk-btn--sm { padding: 6px 12px; font-size: 12px; box-shadow: 2px 2px 0 var(--pk-ink); }

.pk-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--pk-magenta); color: #fff; border: 3px solid var(--pk-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--pk-ink);
  transition: transform 160ms ease;
  font-size: 26px;
}
.pk-fab:hover { transform: scale(1.08) rotate(-6deg); }

/* hero */
.pk-hero {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  padding: 42px clamp(20px, 5vw, 56px) 26px;
  max-width: 1180px; margin: 0 auto;
}
.pk-hero-copy { max-width: 480px; position: relative; z-index: 1; }
.pk-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.pk-hero p { font-size: 16px; line-height: 1.55; color: var(--pk-ink-soft); margin: 0 0 22px; max-width: 46ch; }
.pk-hero-mascot { position: relative; z-index: 1; }
.pk-hero-mascot::before {
  content: ""; position: absolute; inset: -18px; border: 3px dashed var(--pk-lavender);
  border-radius: 50%; z-index: -1;
}

/* baner potwierdzenia */
.pk-banner {
  max-width: 1180px; margin: 0 auto 14px; padding: 10px 20px;
  background: var(--pk-yellow); border: 2px solid var(--pk-ink); border-radius: 999px;
  text-align: center; font-weight: 700; width: fit-content;
}

/* pasek filtrów */
.pk-filters {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 18px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.pk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px dashed var(--pk-ink); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; background: #fff;
}
.pk-chip--active { background: var(--pk-yellow); border-style: solid; }
.pk-field-inline { display: inline-flex; align-items: center; gap: 6px; }
.pk-select {
  border: 2px solid var(--pk-ink); border-radius: 14px;
  padding: 7px 10px; font-size: 13px; font-weight: 600; background: #fff;
}
.pk-search {
  border: 2px solid var(--pk-ink); border-radius: 14px;
  padding: 8px 12px; font-size: 13px; min-width: 180px; background: #fff;
}
.pk-clear-link {
  border: none; background: none; text-decoration: underline;
  font-size: 13px; font-weight: 700; color: var(--pk-magenta); padding: 4px;
}

/* tablica z wpisami */
.pk-board { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 10px clamp(20px, 5vw, 56px) 90px; }
.pk-board h1 { margin-top: 0; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 24px; }

.pk-card {
  position: relative;
  background: var(--pk-cream-2);
  border: 2px solid var(--pk-ink);
  border-radius: 6px;
  padding: 12px 12px 16px;
  box-shadow: 6px 8px 0 var(--pk-paper-shadow);
}
.pk-grid .pk-card { transition: transform 200ms ease, box-shadow 200ms ease; }
.pk-grid .pk-card:hover { transform: translateY(-4px) !important; box-shadow: 8px 12px 0 var(--pk-paper-shadow); }
.pk-card-link { display: block; }
.pk-card-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden;
  background: var(--pk-lavender-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.pk-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-card-desc { font-size: 14.5px; line-height: 1.4; margin: 0 0 10px; min-height: 20px; }
.pk-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pk-chip-sm {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 3px 9px; border: 1.5px solid var(--pk-ink);
}
.pk-chip-sm--day { background: var(--pk-lavender-soft); }
.pk-chip-sm--time { background: var(--pk-mint); }
.pk-chip-sm--holiday { background: var(--pk-yellow); }
.pk-chip-sm--breed { background: var(--pk-pink-soft); }

.pk-author-line {
  display: block; font-size: 12px; color: var(--pk-ink-soft); margin: -4px 0 8px;
}
.pk-author-line:hover { color: var(--pk-magenta); }

.pk-like {
  display: inline-flex; align-items: center; gap: 5px;
  border: 2px solid var(--pk-ink); border-radius: 999px;
  padding: 5px 11px; background: #fff; font-weight: 700; font-size: 13px;
}
.pk-like:hover { background: var(--pk-pink-soft); }

.pk-empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--pk-ink); border-radius: 16px; background: rgba(255, 255, 255, 0.5); }
.pk-empty svg { margin-bottom: 6px; }

/* logowanie */
.pk-login-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pk-login-page .pk-card { width: 100%; max-width: 340px; }

/* tabela w panelu admina */
.pk-admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--pk-ink); border-radius: 10px; overflow: hidden; }
.pk-admin-table th, .pk-admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--pk-pink-soft); text-align: left; vertical-align: middle; font-size: 13.5px; }
.pk-admin-table tr:last-child td { border-bottom: none; }
.pk-admin-table th { background: var(--pk-lavender-soft); font-family: 'Baloo 2', sans-serif; }
.pk-admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid var(--pk-ink); display: block; }
.pk-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* formularze */
.pk-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.pk-field label { font-weight: 700; font-size: 13.5px; }
.pk-field textarea,
.pk-field select,
.pk-field input[type="text"],
.pk-field input[type="password"] {
  border: 2px solid var(--pk-ink); border-radius: 10px; padding: 9px 11px;
  font-size: 14px; background: #fff; width: 100%;
}
.pk-field textarea { resize: vertical; }
.pk-upload-zone {
  border: 2px dashed var(--pk-ink); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: rgba(255, 255, 255, 0.5);
}
.pk-upload-zone input[type="file"] { font-size: 13px; max-width: 100%; }
.pk-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-form-error { color: var(--pk-magenta); font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.pk-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.pk-post-nav {
  display: flex; justify-content: space-between; gap: 16px; margin: 18px 2px 0;
  font-size: 13.5px; font-weight: 700;
}
.pk-post-nav a { max-width: 48%; }

/* profil użytkownika */
.pk-profile-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 26px;
}
.pk-xp-line { margin: 4px 0 0; font-weight: 700; color: var(--pk-magenta); }

.pk-badge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 30px;
}
.pk-badge {
  border: 2px solid var(--pk-ink); border-radius: 12px; padding: 14px 12px;
  text-align: center; background: var(--pk-cream-2);
  box-shadow: 4px 5px 0 var(--pk-paper-shadow);
}
.pk-badge--locked { opacity: 0.42; filter: grayscale(0.6); box-shadow: none; }
.pk-badge-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.pk-badge-name { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.pk-badge-desc { font-size: 11.5px; color: var(--pk-ink-soft); line-height: 1.3; }
.pk-badge-progress { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--pk-magenta); }

/* edytowalna treść na dole strony */
.pk-note {
  position: relative; z-index: 1;
  max-width: 720px; margin: 10px auto 40px; padding: 26px clamp(20px, 4vw, 34px);
  background: var(--pk-cream-2); border: 2px solid var(--pk-ink); border-radius: 10px;
  box-shadow: 6px 8px 0 var(--pk-paper-shadow);
  font-size: 15px; line-height: 1.65;
}
.pk-note p:first-child { margin-top: 0; }
.pk-note p:last-child { margin-bottom: 0; }

/* stopka */
.pk-footer { position: relative; z-index: 1; text-align: center; padding: 20px 20px 40px; color: var(--pk-ink-soft); font-size: 13px; }
.pk-footer a { text-decoration: underline; font-weight: 700; }

.pk-tail { transform-origin: 98px 88px; animation: pk-wag 1.6s ease-in-out infinite; }
@keyframes pk-wag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .pk-tail, .pk-floater, .pk-trail-item { animation: none !important; }
}

@media (max-width: 560px) {
  .pk-field-grid { grid-template-columns: 1fr; }
  .pk-admin-table { display: block; overflow-x: auto; }
}
