/* ===========
   Kolory
   =========== */
:root {
  --brand: #0d3b66;
  --brand-700: #0a274a;
  --brand-600: #11406f;
  --brand-soft: #e7f1ff;
  --gold: #e0b144;

  --surface: #ffffff;
  --surface-soft: rgba(255,255,255,.92);
  --border-subtle: rgba(15,23,42,.08);
  --border-strong: rgba(15,23,42,.18);

  --text-main: #0f172a;
  --text-muted: #6b7280;
}

/* ===========
   Globalne tło z mocno ruchomym, połyskującym gradientem
   =========== */

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);

  background:
    radial-gradient(circle at 0% 0%, rgba(14,116,144,.4), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.45), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #e0ecff 100%);
  background-attachment: fixed;
  background-size: 220% 220%;
  background-position: 0% 0%;
  animation: gradientFlow 18s ease-in-out infinite alternate;
  position: relative;
}

/* szeroki połysk przechodzący przez ekran */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    linear-gradient(120deg,
      rgba(255,255,255,0) 35%,
      rgba(255,255,255,.9) 50%,
      rgba(255,255,255,0) 65%);
  mix-blend-mode: screen;
  opacity: .4;
  transform: translate3d(-45%, 0, 0);
  animation: sheenSweep 14s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
  z-index: -1;
}

/* dodatkowe „plamy” światła, lekko pływające */
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,.18), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(224,177,68,.22), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: .8;
  animation: floatGlow 26s ease-in-out infinite alternate;
  z-index: -2;
}

/* płynny ruch tła */
@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
  }
  30% {
    background-position: 40% 60%;
  }
  60% {
    background-position: 100% 40%;
  }
  100% {
    background-position: 60% 100%;
  }
}

/* połysk przechodzący po ekranie */
@keyframes sheenSweep {
  0% {
    transform: translate3d(-45%, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: .5;
  }
  35% {
    transform: translate3d(5%, 0, 0);
    opacity: .2;
  }
  55% {
    transform: translate3d(35%, 0, 0);
    opacity: .45;
  }
  80% {
    transform: translate3d(75%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(110%, 0, 0);
    opacity: 0;
  }
}

/* pływanie i lekkie „nabłyszczanie” plam światła */
@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
  40% {
    transform: translate3d(-4%, -2%, 0) scale(1.03);
    filter: saturate(1.1);
  }
  70% {
    transform: translate3d(3%, 5%, 0) scale(1.05);
    filter: saturate(1.15);
  }
  100% {
    transform: translate3d(-2%, 3%, 0) scale(1.02);
    filter: saturate(1.05);
  }
}

/* szacunek dla osób wrażliwych na ruch */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background-size: cover;
  }
  body::before {
    animation: none;
    opacity: .12;
  }
  body::after {
    animation: none;
    opacity: .25;
  }
  section::before {
    animation: none;
    opacity: .6;
  }
}

/* ===========
   Layout
   =========== */

.site-main {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
}

/* lekkie rozświetlenie każdej sekcji + delikatne „oddychanie” */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.65), transparent 70%);
  opacity: .7;
  pointer-events: none;
  z-index: -1;
  animation: sectionGlow 32s ease-in-out infinite alternate;
}

/* rozjaśnienie pierwszej sekcji pod headerem */
.site-hero + section::before {
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.9), transparent 70%);
}

@keyframes sectionGlow {
  0% {
    opacity: .5;
    transform: translate3d(0, -6px, 0);
  }
  40% {
    opacity: .9;
    transform: translate3d(0, 4px, 0);
  }
  70% {
    opacity: .65;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: .85;
    transform: translate3d(0, 8px, 0);
  }
}

/* ===========
   Nawigacja
   =========== */

.navbar-elegant {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-600));
  border-bottom: 1px solid rgba(224,177,68,.35);
  backdrop-filter: blur(12px);
}

.navbar-elegant .navbar-brand {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f9fafb;
}

.navbar-elegant .navbar-brand:hover {
  color: #ffffff;
}

.navbar-elegant .navbar-toggler {
  border-color: rgba(255,255,255,.4);
}

.navbar-elegant .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(224,177,68,.4);
}

.navbar-elegant .navbar-nav {
  gap: .4rem;
}

.navbar-elegant .nav-link {
  color: rgba(255,255,255,.9);
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  line-height: 1.2;
  transition: all .18s ease;
  font-size: .95rem;
}

.navbar-elegant .nav-link:hover,
.navbar-elegant .nav-link:focus {
  color: var(--brand-700);
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: transparent;
  box-shadow: 0 0 0 .18rem rgba(224,177,68,.28);
  text-decoration: none;
}

.navbar-elegant .nav-link.active,
.navbar-elegant .nav-link[aria-current="page"] {
  color: var(--brand-700);
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: transparent;
}

/* ===========
   Hero – zdjęcie jako tło całego headera
   =========== */

.site-hero {
  padding: 2.5rem 0 2.75rem;
  background:
    /* mocniejsza „zasłona” pod tekstem po lewej */
    radial-gradient(circle at 15% 50%, rgba(15,23,42,.96), rgba(15,23,42,.85) 40%, transparent 70%),
    /* delikatne złoto i błękit */
    radial-gradient(circle at 0% 0%, rgba(224,177,68,.35), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(59,130,246,.35), transparent 60%),
    /* zdjęcie z kościoła */
    url("/static/header.jpeg");
  background-repeat: no-repeat;
  background-size: 110% 110%, 80% 80%, 80% 80%, cover;
  background-position: center, 0% 0%, 100% 0%, center;
  color: #f9fafb;
  border-bottom: 1px solid rgba(224,177,68,.4);
}

.site-hero h1 {
  letter-spacing: .03em;
}

.text-hero-subtitle {
  color: rgba(241,245,249,.96);
}

.intention-card {
  background: radial-gradient(circle at 0 0, rgba(253,224,171,.35), transparent 55%), #ffffff;
  border-radius: 1.2rem;
  border: 1px solid rgba(15,23,42,.08);
}

/* kartka z intencjami w headerze */

.hero-intentions {
  border-radius: 1.2rem;
  border: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(15,23,42,.3);
  max-width: 440px;
  margin-left: auto;
}

.hero-intentions h2 {
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--brand-700);
}

/* lista intencji – eleganckie wypunktowanie */
.hero-intentions ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.hero-intentions li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .95rem;
  color: #111827;
}

.hero-intentions li + li {
  margin-top: .15rem;
}

.hero-intentions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  box-shadow: 0 0 0 1px rgba(15,23,42,.06);
}

/* złoty, bardziej „parafialny” przycisk */
.btn-intentions {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #1f2937;
  border: none;
  font-weight: 600;
  padding-inline: 1.1rem;
  box-shadow: 0 6px 16px rgba(15,23,42,.18);
}

.btn-intentions:hover,
.btn-intentions:focus {
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #111827;
  box-shadow: 0 8px 20px rgba(15,23,42,.25);
}

@media (max-width: 991.98px) {
  .hero-intentions {
    max-width: 100%;
    margin-left: 0;
    margin-top: 1.75rem;
  }
}

/* ===========
   Karty, ogłoszenia, treść
   =========== */

.card {
  border-radius: 1rem;
  border: 1px solid rgba(15,23,42,.04);
  background-color: var(--surface-soft);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.card-announce,
.announcement-card {
  border-radius: 1.1rem;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 0 0, rgba(224,177,68,.26), transparent 65%), #ffffff;
  box-shadow: 0 16px 40px rgba(15,23,42,.09);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-announce::before,
.announcement-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(224,177,68,.5), transparent 55%);
  opacity: 0;
  transform: translate3d(-12px, -12px, 0);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.card-announce:hover,
.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15,23,42,.14);
  border-color: rgba(224,177,68,.6);
}

.card-announce:hover::before,
.announcement-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.badge-cat {
  background: var(--brand-600);
  color: #e5f0ff;
  font-weight: 500;
  border-radius: 999px;
  padding: .25rem .5rem;
}

/* linia meta pod tytułem ogłoszenia */
.announcement-meta {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
}

.announcement-meta .dot {
  width: .35rem;
  height: .35rem;
  border-radius: 999px;
  background: rgba(148,163,184,.9);
  display: inline-block;
}

/* Rich text */
.rich-content p {
  margin-bottom: .75rem;
}

.rich-content h2,
.rich-content h3 {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

/* ===========
   Chips (kategorie)
   =========== */

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(13,59,102,.18);
  background: var(--brand-soft);
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  transition: all .16s ease;
  font-size: .9rem;
}

.chip:hover {
  background: #ffffff;
  border-color: rgba(13,59,102,.32);
  box-shadow: 0 1px 8px rgba(15,23,42,.08);
  text-decoration: none;
}

.chip:focus {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(224,177,68,.4);
}

.chip.active {
  color: var(--brand-700);
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: transparent;
  box-shadow: 0 1px 12px rgba(224,177,68,.4);
}

/* ===========
   Intencje / listy
   =========== */

.intention-week-link {
  border-radius: .9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.92);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.intention-week-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(13,59,102,.32);
  box-shadow: 0 16px 32px rgba(15,23,42,.1);
}

.intention-day {
  border-radius: 1rem;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(148,163,184,.25);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.intention-day h2 {
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.intention-day small {
  color: var(--text-muted);
}

.intention-day ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

/* ===========
   Stopka
   =========== */

.footer {
  background: #020617;
  color: #e5e7eb;
  padding: 2rem 0;
  border-top: 1px solid rgba(15,23,42,.6);
}

.footer h6 {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.footer a {
  color: #bfdbfe;
  text-decoration: none;
}

.footer a:hover {
  color: #e0f2fe;
  text-decoration: underline;
}

/* Sekcja powitalna na stronie głównej */
.home-welcome-section .card {
  border-radius: 1.25rem;
}

/* Podpis „odręczny” */
.signature-font {
  font-family: "Segoe Script", "Bradley Hand", "Lucida Handwriting", cursive;
  font-size: 1.4rem;
}

/* Czytelniejsze godziny kancelarii */
.office-hours dt {
  font-weight: 600;
}

.office-hours dd {
  margin-bottom: .15rem;
}

/* Podpis – Alex Brush (bardziej spokojny, bardzo czytelny) */
.signature-font-alex {
  font-family: "Alex Brush", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

/* Podpis – Great Vibes (bardziej ozdobny) */
.signature-font-greatvibes {
  font-family: "Great Vibes", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

/* Podpis – Parisienne (delikatny, subtelny) */
.signature-font-parisienne {
  font-family: "Parisienne", "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

/* Delikatne, ale czytelne opisy w stopce */
.footer-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}
