:root{
  --purple: #6b4e8a;
  --purple-weak: rgba(107, 78, 138, .12);
  --border: rgba(0,0,0,.10);
  --text: #1e1e1e;
  --muted: rgba(0,0,0,.68);
  --bg: #ebedf2;
  --card: #ffffff;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{ color: var(--purple); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Header ===== */
.header{
  background: linear-gradient(
    135deg,
    #efe6f7 0%,
    #f7e9f0 100%
  );
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

.brand-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-title{
  margin:0;
  font-size: 22px;
  line-height: 1.15;
}

.site-subtitle{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
}

.nav a:hover{
  background: rgba(0,0,0,.06);
  text-decoration: none;
}

/* ===== Main background (strelicie) ===== */
.main{
  position: relative;
  padding: 18px 0 28px;

  /* Strelicie jako fixní pozadí + „mléčná“ vrstva pro čitelnost */
  background-image:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url("strelicie.png");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

/* ===== Boxes ===== */
.box{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.box-alert{
  background: #fbf9fe;
  border-color: rgba(107, 78, 138, .24);
}

.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  margin: 0 0 12px;
  font-size: 18px;
}

.pill-small{
  font-size: 14px;
  padding: 7px 10px;
}

/* ===== Top grid: hodiny + dovolená vedle sebe ===== */
.top-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 6px;
}

@media (max-width: 900px){
  .header-inner{ flex-direction: column; align-items: flex-start; }
  .nav{ justify-content: flex-start; }
  .top-grid{ grid-template-columns: 1fr; }

  /* bonus: na mobilech fixed background často zlobí */
  .main{ background-attachment: scroll; }
}

/* ===== Compact rows (hodiny) ===== */
.compact{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.035);
}

.note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.lead{
  margin: 4px 0 10px;
  font-weight: 600;
}

.list{
  margin: 0;
  padding-left: 18px;
}

.muted{ color: var(--muted); }

/* ===== Subgrid for lower content ===== */
.subgrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.subbox{
  background: rgba(107, 78, 138, .06);
  border: 1px solid rgba(107, 78, 138, .12);
  border-radius: 16px;
  padding: 12px;
}

@media (max-width: 900px){
  .subgrid{ grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer{
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}


/* Lists */
.list{
  margin: 0;
  padding-left: 18px;
}
.list li{ margin: 6px 0; }

.row.today {
  background: rgba(114, 72, 166, 0.18);
  font-weight: 600;
}
