/* ========================== */
/*          MENU              */
/* ========================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #000000;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(134, 10, 216, 0.082);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 65px;
  width: auto;
}

.brand .brand-title {
  font-weight: 600;
  font-size: 18px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.16s ease;
}

nav a:hover {
  background: #860ad8f6;
  color: #000000;
}


/* ========================== */
/*        ZÁKLADNÍ BARVY      */
/* ========================== */

:root {
  --bg: #0b0f1a;
  --card: #0f1724;
  --accent: #860ad8f6;
  --accent-2: #ffffff;
  --text: #e6eef8;
  --muted: #98a3b3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: #04050a; /* jednobarevné pozadí */
  color: var(--text);
}

.wrap {
  max-width: 1100px;
  margin: 36px auto;
  padding: 28px;
}


/* ========================== */
/*          HLAVIČKA          */
/* ========================== */

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.badge {
  margin-top: 10vh;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 22px;
}

p.lead {
  margin: 0;
  color: var(--muted);
}


/* ========================== */
/*        HARMONOGRAM         */
/* ========================== */

.schedule {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin-top: 22px;
}

.time-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-slot {
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.event-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event .meta {
  flex: 1;
}

.event h3 {
  margin: 0;
  font-size: 15px;
}

.event p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #08121a;
}

.event.wide {
  grid-column: 1 / -1;
  padding: 18px;
}


/* ========================== */
/*           FOOTER           */
/* ========================== */

footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}


/* ========================== */
/*        RESPONSIVITA        */
/* ========================== */

@media (min-width: 880px) {
  .schedule {
    grid-template-columns: 120px 1fr;
  }

  .event {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 14px;
  }

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

  .time-col {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .time-slot {
    flex: 0 0 auto;
  }

  .event {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag {
    margin-top: 8px;
  }
}


/* ========================== */
/*        TISKOVÁ VERZE       */
/* ========================== */

@media print {
  body {
    background: white;
    color: black;
  }

  .badge {
    background: #000;
    color: #fff;
  }

  .event {
    border: 1px solid #ddd;
    background: #fff;
  }
}


/* ========================== */
/*          TLAČÍTKO          */
/* ========================== */

.ucebnatlacitko {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 60px;
  background-color: #0f0f0f;
  border: none;
  border-radius: 30px;
  color: #860ad8;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-top: 1rem;
}

.ucebnatlacitko span {
  position: relative;
  z-index: 2;
}

.ucebnatlacitko::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg,
    transparent,
    transparent 30%,
    rgba(0, 0, 0, 0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 1;
}

.ucebnatlacitko:hover {
  transform: scale(1.05);
  background-color: #860ad8;
  color: #000000;
}

.ucebnatlacitko:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}
