/* ==========================================================================
   AyeVision — wariant z jasnymi sekcjami (index2.html)
   Sekcje z klasą .theme-light dostają jasną paletę „papieru technicznego”.
   Komponenty korzystają ze zmiennych, więc wystarczy je nadpisać.
   ========================================================================== */

.theme-light {
  --bg: #f2f0eb;
  --bg-2: #ecebe5;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #d6d3ca;
  --line-soft: #e3e0d8;

  --text: #121820;
  --text-2: #3a4551;
  --muted: #5f6b78;

  --accent: #1d8a81;          /* ciemniejszy morski — kontrast na jasnym tle */
  --accent-strong: #176f68;
  --accent-dim: rgba(29, 138, 129, .1);
  --copper: #a3622c;
  --copper-dim: rgba(163, 98, 44, .12);
  --danger: #c0503a;

  --shadow: 0 18px 40px -22px rgba(30, 40, 50, .25);

  color: var(--text);
  background-color: var(--bg-2);
  /* delikatna siatka rysunku technicznego */
  background-image:
    linear-gradient(rgba(18, 24, 32, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 32, .035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.theme-light ::selection { background: var(--accent); color: #fff; }

/* Przyciski */
.theme-light .btn--primary { color: #fff; }
.theme-light .btn--ghost { background: var(--surface); }

/* Karty / kafelki — lekki cień zamiast świecenia */
.theme-light .card,
.theme-light .person,
.theme-light .form,
.theme-light .tl__n { box-shadow: 0 1px 2px rgba(18, 24, 32, .05); }
.theme-light .card:hover { box-shadow: var(--shadow); }
.theme-light .card::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(29, 138, 129, .07), transparent 60%); }
.theme-light .card__corner { color: #c9c5bb; }

/* Zespół */
.theme-light .person--lead { background: linear-gradient(160deg, #ffffff, #f6f5f1 70%); }
.theme-light .person--join { background: transparent; }
.theme-light .avatar { border-color: rgba(29, 138, 129, .3); }
.theme-light .avatar--copper { border-color: rgba(163, 98, 44, .3); }
.theme-light .todo { border-color: rgba(163, 98, 44, .5); }

/* Formularz */
.theme-light .field input,
.theme-light .field textarea,
.theme-light .field select { background-color: var(--bg); }
.theme-light .field input:focus,
.theme-light .field textarea:focus,
.theme-light .field select:focus { background-color: #fff; }

/* Przejście jasna ↔ ciemna: cienka linia akcentu na górze sekcji */
.theme-light { border-top: 0 !important; }
.theme-light::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--copper) 70%, transparent);
  opacity: .5;
}
