/* ===== VARS ===== */
:root {
  --default-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --ant: none;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: #f7f9fc;
  color: #1a1a1a;
}

img {
  max-width: 100%;
  /*display: block;*/
}

a {
  text-decoration: none;
  color: #4f46e5;
  /*color: inherit;*/
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1em;
  color: #555;
}

/* ===== HEADER ===== */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
}

nav ul {
  display: flex;
  gap: 1.5em;
  padding-left: 1.5em;
}

nav a {
  font-weight: 500;
  /*color: #333;*/
  /*color: #4f46e5;*/
}

.logo a {
  color: #333;*/
  /*color: #E619B6;*/
}

/* ===== FOOTER ===== */
footer {
  margin-top: 5em;
  padding: 2em 0;
}
footer p {
  color: #aaa;
}
.legal {
  font-size: 70%;
}

/* ===== HERO ===== */
.hero {
  padding: 4em 0 2em 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 1.5em;
}

/* ===== CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}

.card {
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== FORMS ===== */
input, textarea, select {
  font: var(--basic-font);
  width: 100%;
  padding: 0.5em;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 1em;
  font-size: 1rem;
  color: #333;
  font-weight: normal;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.2);
}

select {
  display: block;
  width: 100%;
}

label {
  font-weight: 500;
  margin-bottom: 0.3em;
  font-size: 1rem;
  /*display: block;*/
}

input[type="checkbox"] {
  width: auto;
}

.width-auto input, .width-auto select {
  width: auto !important;
}

input::placeholder, textarea::placeholder {
  color: #ddd;
}

.section {
  padding: 1.5em;
  border: 1px solid silver;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.important {
  display: var(--ant);
}

/* ===== BUTTONS ===== */
.btn {
  font: var(--basic-font);
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #4f46e5;
  color: white;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-flat {
  padding: 0.25em 0.75em;
  border-radius: 4px;
  /*border: 1px solid #4f46e5;
  background: none;*/
}

/* ===== UTILITIES ===== */
.text-center { text-align: center;}
.text-right { text-align: right;}
.mt-1 {margin-top: 1em}
.mt-2 {margin-top: 2em}
.mt-3 {margin-top: 3em}
.mb-1 {margin-bottom: 1em}
.mb-2 {margin-bottom: 2em}
.mb-3 {margin-bottom: 3em}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  nav ul {
    /*flex-direction: column;*/
    gap: 0.75em;
  }

  .hero {
    padding: 2.5em 0;
  }
}


/* ===== SEZNAM ===== */
.seznam {
  background: white;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  display: flex;
  flex-flow:wrap;
  gap: 0 1em;
}

.seznam:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.flex-break {
  flex-basis: 100%;
  height: 0;
}

/* ===== ITEMS ===== */
.item {
  padding: 1px 6px;
  border-radius: 6px;
  color: #555;
}

a.item {
  text-decoration: none;
}
a:hover.item {
  text-decoration: underline;
}

.s-date {
  /*background-color: #ffe;*/
  /*font-weight: 500;*/
}
.s-place {
  /*margin-left: auto;*/
  font-weight: 500;
  /*background-color: #efe;*/
}
.s-title {
  font-weight: 500;
  color: #4f46e5;
  /*background-color: #efe;*/
  font-size: 125%;
}
.s-description {
}
.s-speaker {
  background-color: #eef;
}
.s-host {
  background-color: #fef;
}
.s-prerequisite {
  margin-left: auto;
  background-color: #ffa;
}
.s-price {
  /*font-weight: 500;*/
  margin-left: auto;
  /*color: #555;*/
}

/* ===== EVENT ===== */
.event {
  background: white;
  padding: 1em;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  
  padding: 1.5em;
  
  /*display: flex;
  flex-flow:wrap;
  gap: 0 1em;*/
}
.f-name {
  font-weight: 500;
}
.f-value {
  
}

/* ===== REST ===== */
.red {
  color: #E54F46;
}
.green {
  color: #46E54F;
}

.abbr{
  display: inline-block;
  background-color: #f8f8f8;
  border: 1px solid silver;
  border-radius: 4px;
  padding: 0 0.25em;
  margin-bottom: 0.25em;
  cursor: pointer;
}
.abbr:hover {
  background: white;
  transition: all 0.2s ease;
}