/*
  Styl pro kalendar.html.
  Obsah akcí upravuj v souboru kalendar.html.
  Barvy, mezery a mobilní zobrazení jsou tady.
*/

:root {
  --page: #f9f7fb;
  --paper: #ffffff;
  --text: #332a38;
  --muted: #716675;

  --purple: #6f3a86;
  --purple-soft: #f7f1fa;
  --purple-line: #d9c8e2;

  --green: #2f7468;
  --green-soft: #eef8f4;
  --green-line: #bddbd4;

  --beige: #8a5a2b;
  --beige-soft: #fbf4ea;
  --beige-line: #e2c8a8;

  --blue: #315f8c;
  --blue-soft: #eef5fb;
  --blue-line: #c7d8e9;

  --rose: #8a3f72;
  --rose-soft: #fbf1f7;
  --rose-line: #e7c7da;

  --gold: #8a6424;
  --gold-soft: #fbf7eb;
  --gold-line: #e2d2aa;

  --line: #e8e1ec;
  --font-main: system-ui, -apple-system, "Segoe UI", "Trebuchet MS", Arial, sans-serif;

  --shadow: 0 3px 12px rgba(54, 38, 62, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 18px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus { color: var(--rose); }

.tag a {
  color: inherit;
  text-decoration-color: currentColor;
}

.tag a:hover,
.tag a:focus { color: inherit; }

.page {
  width: min(100%, 860px);
  margin: 0 auto;
}

.header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: start;
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 4px 0 10px;
  text-align: center;
}

.header-logo-link {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1px;
}

.header-logo {
  width: 70px;
  height: 70px;
  display: block;
}

.header-title { min-width: 0; }

h1 {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  line-height: 1.18;
  font-weight: 700;
}

.header-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.header-title p a {
  color: var(--muted);
  text-decoration: none;
}

.top-divider {
  height: 1px;
  margin: 8px 0 20px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--purple-line) 16%, var(--purple-line) 84%, transparent);
}

.section-title {
  margin: 24px 0 12px;
  padding: 7px 12px;
  text-align: center;
  color: var(--purple);
  border-top: 1px solid var(--purple-line);
  border-bottom: 1px solid var(--purple-line);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: linear-gradient(90deg, var(--purple-soft), var(--paper) 48%);
  border: 1px solid var(--purple-line);
  border-left: 6px solid var(--purple);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.event.bread {
  border-color: var(--beige-line);
  border-left-color: var(--beige);
  background: linear-gradient(90deg, var(--beige-soft), var(--paper) 50%);
}

.event.moon {
  border-color: var(--blue-line);
  border-left-color: var(--blue);
  background: linear-gradient(90deg, var(--blue-soft), var(--paper) 50%);
}

.event.rose {
  border-color: var(--rose-line);
  border-left-color: var(--rose);
  background: linear-gradient(90deg, var(--rose-soft), var(--paper) 50%);
}

.event.care {
  border-color: var(--green-line);
  border-left-color: var(--green);
  background: linear-gradient(90deg, var(--green-soft), var(--paper) 50%);
}

.event.reiki {
  border-color: var(--gold-line);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, var(--gold-soft), var(--paper) 50%);
}

.event.plan { box-shadow: 0 1px 8px rgba(54, 38, 62, 0.04); }

.event-image {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.9);
  background: #fff;
  display: block;
}

.event-content h2 {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 1.08rem;
  line-height: 1.35;
}

.event.bread h2 { color: var(--beige); }
.event.care h2 { color: var(--green); }
.event.moon h2 { color: var(--blue); }
.event.rose h2 { color: var(--rose); }
.event.reiki h2 { color: var(--gold); }

.event-content p { margin: 0 0 6px; }

.when {
  margin-top: 8px;
  font-weight: bold;
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: bold;
}

.tag.green {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}

.tag.beige {
  background: var(--beige-soft);
  border-color: var(--beige-line);
  color: var(--beige);
}

.tag.blue {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue);
}

.note {
  margin: 18px 0 0;
  padding: 12px 14px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.note-next,
.note-section-title {
  position: relative;
  font-weight: bold;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.note-next::before,
.note-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-line) 16%, var(--purple-line) 84%, transparent);
}

.note-section-title {
  margin: 24px 0 14px;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.note-next {
  margin-top: 22px;
  padding: 14px 0 0;
}

.footer {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer img {
  width: 56px;
  height: 56px;
  margin-top: 8px;
}

/* sjednocení typografie napříč webem */
h1,
h2,
h3,
.header-title p,
.subtitle,
.short-note,
.tag,
.button {
  font-family: var(--font-main);
}

@media (max-width: 620px) {
  body {
    padding: 9px;
    font-size: 15px;
  }

  .header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 7px;
    padding: 3px 0 13px;
  }

  .header-logo {
    width: 46px;
    height: 46px;
  }

  h1 {
    font-size: clamp(1.08rem, 5.6vw, 1.42rem);
  }

  .header-title p { font-size: 0.86rem; }

  .top-divider {
    margin: 7px 0 16px;
  }

  .section-title,
  .note-section-title {
    margin: 20px 0 10px;
    font-size: 0.92rem;
  }

  .event {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
    border-radius: 14px;
    border-left-width: 5px;
  }

  .event-image {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .event-content h2 {
    font-size: 1rem;
  }

  .tag {
    font-size: 0.78rem;
  }
}

@media (max-width: 390px) {
  .header {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 5px;
  }

  .header-logo {
    width: 34px;
    height: 34px;
  }

  .event {
    grid-template-columns: 1fr;
  }

  .event-image {
    width: 82px;
    height: 82px;
    margin: 0 auto;
  }

  .event-content h2,
  .when,
  .tag-row {
    text-align: center;
    justify-content: center;
  }
}
