/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface2:    #1f2937;
  --border:      #30363d;
  --text:        #e6edf3;
  --muted:       #8b949e;
  --blue:        #4d85c3;   /* česká vlajka modrá */
  --blue-light:  #79aad8;
  --red:         #c8102e;   /* česká vlajka červená */
  --red-light:   #e04060;
  --green:       #3a9e6e;   /* huliard */
  --green-light: #5cba8a;
  --purple:      #7c5cbf;   /* night */
  --purple-light:#9f83d4;
  --white:       #f0f6fc;
  --radius:      10px;
  --transition:  0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

/* === NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-dropdown { position: relative; }

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover { background: var(--surface2); text-decoration: none; }
.nav-link--blue:hover  { color: var(--blue-light); }
.nav-link--green:hover { color: var(--green-light); }
.nav-link--purple:hover{ color: var(--purple-light); }
.nav-link--red:hover   { color: var(--red-light); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-light); transform: translateY(-1px); text-decoration: none; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--surface2); color: var(--blue-light); text-decoration: none; }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(77,133,195,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(200,16,46,0.06) 0%, transparent 60%);
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 32px;
  box-shadow: 0 0 40px rgba(77,133,195,0.3);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 .accent-blue { color: var(--blue-light); }
.hero h1 .accent-red  { color: var(--red-light); }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 48px;
}

/* === COUNTDOWN === */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.countdown-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  min-width: 80px;
  text-align: center;
}

.countdown-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.countdown-event {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.countdown-started {
  font-size: 1.2rem;
  color: var(--green-light);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); text-decoration: none; color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface2); border-color: var(--muted); text-decoration: none; }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-light); transform: translateY(-2px); text-decoration: none; color: var(--white); }

/* === SECTION === */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* === CATEGORY CARDS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card:hover { transform: translateY(-3px); text-decoration: none; color: var(--text); }

.category-card--blue  { border-top: 3px solid var(--blue); }
.category-card--green { border-top: 3px solid var(--green); }
.category-card--purple{ border-top: 3px solid var(--purple); }

.category-card--blue:hover  { box-shadow: 0 8px 32px rgba(77,133,195,0.15); border-color: var(--blue); }
.category-card--green:hover { box-shadow: 0 8px 32px rgba(58,158,110,0.15); border-color: var(--green); }
.category-card--purple:hover{ box-shadow: 0 8px 32px rgba(124,92,191,0.15); border-color: var(--purple); }

.category-icon { font-size: 2.5rem; }

.category-card h3 { font-size: 1.3rem; font-weight: 700; }

.category-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }

.category-card-footer {
  font-size: 13px;
  font-weight: 600;
}

.category-card--blue   .category-card-footer { color: var(--blue-light); }
.category-card--green  .category-card-footer { color: var(--green-light); }
.category-card--purple .category-card-footer { color: var(--purple-light); }

/* === EVENT PAGE === */
.event-header {
  max-width: 860px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.event-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge--blue   { background: rgba(77,133,195,0.15); color: var(--blue-light); }
.badge--green  { background: rgba(58,158,110,0.15); color: var(--green-light); }
.badge--purple { background: rgba(124,92,191,0.15); color: var(--purple-light); }
.badge--red    { background: rgba(200,16,46,0.15);  color: var(--red-light); }

.event-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.event-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.event-meta-item .icon { font-size: 16px; }

.event-body {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
}

.event-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.event-body h2:first-child { border-top: none; margin-top: 0; }

.event-body p { margin-bottom: 16px; line-height: 1.7; }

.event-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.event-body li { margin-bottom: 6px; line-height: 1.6; }

.event-body strong { color: var(--white); }

/* === COUNTDOWN na event stránce === */
.event-countdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.event-countdown h3 { font-size: 1.1rem; color: var(--muted); margin-bottom: 24px; }

/* === VIDEO === */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  margin: 32px 0;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: var(--radius);
}

.video-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  margin: 32px 0;
}

.video-placeholder .icon { font-size: 2.5rem; margin-bottom: 12px; }
.video-placeholder p { font-size: 0.9rem; }

/* === GALERIE === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 32px 0;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform var(--transition), opacity var(--transition);
  cursor: pointer;
}

.gallery img:hover { transform: scale(1.03); opacity: 0.9; }

.gallery-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  margin: 32px 0;
}

/* === KONTAKT === */
.contact-section {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-group select { cursor: pointer; }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
}

.form-submit:hover { background: var(--red-light); transform: translateY(-2px); }

/* === ARCHIVE LIST === */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: block;
}

.archive-card:hover { border-color: var(--blue); transform: translateY(-2px); text-decoration: none; color: var(--text); }

.archive-card-year { font-size: 2rem; font-weight: 800; color: var(--blue-light); line-height: 1; }
.archive-card-name { font-size: 1rem; font-weight: 600; margin: 8px 0 4px; }
.archive-card-meta { font-size: 13px; color: var(--muted); }
.archive-card-special { font-size: 11px; font-weight: 700; color: var(--red-light); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

/* === ČÁVA KARTIČKY === */
.cava-definition {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.cava-definition strong { color: var(--white); }

.cava-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.cava-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  scroll-margin-top: 90px; /* kotva nesmí zajet pod sticky header */
}

.cava-card:hover { transform: translateY(-2px); border-color: var(--muted); }

.cava-card--core { border-top: 3px solid var(--red); }
.cava-card--core:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(200,16,46,0.12); }

.cava-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-light);
  object-fit: cover;
}

.cava-card--core .cava-avatar { color: var(--red-light); }

.cava-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }

.cava-desc { font-size: 0.85rem; color: var(--muted); }

.cava-links a { color: var(--blue-light); }

/* === LAYOUT WRAPPER === */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { height: 36px; width: 36px; border-radius: 50%; }

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 13px; color: var(--border); margin-left: auto; }

/* === RESPONSIVE === */
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg);
    padding-left: 16px;
    display: block;
  }
  .nav-cta { margin-left: 0; border-radius: 8px; text-align: center; }
  .countdown { gap: 10px; }
  .countdown-item { padding: 14px 16px; min-width: 64px; }
  .countdown-num { font-size: 1.8rem; }
  .contact-form { padding: 24px; }
  .footer-copy { margin-left: 0; }
}
