/* assets/style.css */
:root{
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --brand: #007ae7;
  --brand-600: #056cc9;
  --ring: rgba(0,122,231,0.25);
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(0,122,231,0.08), transparent) no-repeat,
              radial-gradient(1000px 600px at 120% 10%, rgba(0,122,231,0.06), transparent) no-repeat,
              var(--bg);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }


.site-header.small{ padding-bottom: 8px; }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; padding: 16px;
}

/* -------------- 
.site-header {
  /* background: linear-gradient(135deg, #0a74d3, var(--brand));

  box-shadow: var(--shadow);
}

*/

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;               
}

.site-header .wrap .user-actions {
  margin-left: auto;       
}

.btn-outline {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
}


@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-header .wrap .user-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
  }
}

/*. ----------------- */

.logo img{ height: 48px; display: block; }

.banner { margin-left: auto; }
.banner img{ display:block; margin: 0 auto; }

.hero { padding: 28px 0 8px; }
.hero h1{ margin: 0; font-size: 40px; letter-spacing: -0.02em; }
.hero .sub{ margin-top: 8px; 
  /* color: #e9f3ff; */
  font-weight: 600; }

.card{
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 24px 0;
  border: 1px solid rgba(2, 76, 147, 0.06);
}

.card.center{ text-align: center; width: 900px; margin: 10px auto; }

h2{ margin-top: 0; font-size: 22px; }

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.field{ display:flex; flex-direction: column; gap: 6px; margin-bottom:12px;}
.field label{ font-weight: 600; }
.req{ color: var(--brand); margin-left: 6px; }
input, select, textarea{
  width: 100%;
  border: 1px solid #d6dee9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fbfdff;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .06s;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 6px var(--ring);
}
input:hover, select:hover, textarea:hover{ transform: translateY(-1px); }

textarea{ resize: vertical; }

.btn, .btn-outline{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.btn{
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 18px rgba(0,122,231,0.25);
}
.btn:hover{ transform: translateY(-2px); background: var(--brand-600); }
.btn:active{ transform: translateY(0); }

.btn-outline{
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover{ background: rgba(0,122,231,0.08); }

.tiny{ color: var(--muted); font-size: 12px; }

.site-footer{
  margin-top: 40px; padding: 20px 0; color: var(--muted);
  border-top: 1px solid rgba(2, 76, 147, 0.08);
}
.site-footer .wrap{ display:flex; align-items:center; justify-content: space-between; }

.admin-link{ color: white; text-decoration: underline; }

.table-wrap{ overflow-x: auto; }
.table{
  width: 100%; border-collapse: collapse;
}
.table th, .table td{
  padding: 10px 12px; border-bottom: 1px solid #e7eef8; vertical-align: top;
}
.table th{ text-align: left; color: var(--muted); font-size: 14px; }
.table td.nowrap{ white-space: nowrap; }
.muted{ color: var(--muted); }
.center{ text-align: center; }

.list-header{
  display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.filter{ display:flex; align-items:center; gap: 10px; }

.error-banner{
  background: #ffecec; color: #b00020; border: 1px solid #ffb3b3; padding: 10px 12px; border-radius: 10px;
}

.errors{ color: #b00020; }
.errors li{ margin: 6px 0; }

@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .banner img{ height: 40px; }
}

.visually-hidden {
  position: absolute !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important; width: 1px !important;
  overflow: hidden !important; white-space: nowrap !important;
}

/* Sekcja tła */
.thanks .hero--cloudy {
  min-height: 40svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(120% 80% at 20% 10%, #f0f9ff 0%, #ffffff 40%, transparent 41%) no-repeat,
    radial-gradient(90% 60% at 90% 20%, #f7f5ff 0%, #ffffff 50%, transparent 51%) no-repeat,
    linear-gradient(180deg, #ffffff, #fafafa);
  border-radius: 2rem;
}

/* Chmura słów */
.cloud {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.4rem, 1vw, 0.8rem);
  width: 100%;
  align-items: center;
}

/* Pojedyncze słowo */
.cloud .word {
  --span: 3; /* domyślnie zajmij 3 kolumny */
  grid-column: span var(--span);
  justify-self: center;
  padding: 0.1em 0.2em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.3px;
  text-wrap: balance;

  /* efekt „atrakcyjnego napisu” */
  background: linear-gradient(135deg,
    #00c6ff 0%, #2d2c30 25%, #ff6ec7 55%, #ffcc70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 1px 0 rgba(0,0,0,0.03),
    0 12px 30px rgba(124,92,255,0.10);

  transform: rotate(var(--rot, 0deg));
  transition: transform .25s ease, filter .25s ease;
  filter: saturate(1.1);
}


/* delikatna animacja unoszenia */
@keyframes floaty {
  0%   { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%  { transform: translateY(-6px) rotate(calc(var(--rot, 0deg) * 1)); }
  100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}
.cloud .word { animation: floaty 6s ease-in-out infinite; }
.cloud .word:nth-child(odd) { animation-duration: 7.5s; }
.cloud .word:hover { transform: scale(1.05) rotate(0deg); filter: saturate(1.4); }

/* preferencje dostępności */
@media (prefers-reduced-motion: reduce) {
  .cloud .word { animation: none; }
}

.thanks .hero--cloudy {
  width: 100%;
  max-width: 1200px;      /* nowość */
  margin-inline: auto;    /* wyśrodkuj w layoucie */
}

/* Chmura – zwiększamy siatkę i znosimy limit 1100px */
.cloud {
  --cols: 13;             /* było 12 */
  max-width: 1200px;      /* było 1100px */
  width: 100%;
  margin: 0 auto;
}

/* Większe span-y i większe czcionki */
.cloud .w4 { --span: 8; font-size: clamp(2.6rem, 7vw, 5.2rem); }
.cloud .w3 { --span: 5; font-size: clamp(2.0rem, 5vw, 3.6rem); }
.cloud .w2 { --span: 3; font-size: clamp(1.4rem, 3.6vw, 2.6rem); }

.hero-content { width: 100%; }