/* =============================================================
   akce.css – Stránky akcí a turnajů
   Barvy: --yellow #FFD400, --red #D62828, bílá, černé pozadí
   ============================================================= */

/* ── Obecné ─────────────────────────────────────────────────── */
.akce-main {
  min-height: 100vh;
  background: #1A1A1A;
  padding-top: calc(70px + 2.5rem);
  padding-bottom: 5rem;
}

/* ── Nadpis sekce ───────────────────────────────────────────── */
.akce-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,212,0,0.1);
  margin-bottom: 2.5rem;
}

.akce-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--yellow, #FFD400);
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  text-shadow: 0 0 40px rgba(255,212,0,0.2);
}

.akce-subtitle {
  color: #888;
  font-size: 1rem;
  margin: 0;
}

/* ── Filtry tagů ────────────────────────────────────────────── */
.akce-filtry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filtr-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.filtr-btn:hover {
  border-color: var(--yellow, #FFD400);
  color: var(--yellow, #FFD400);
}
.filtr-btn--active,
.filtr-btn--active:hover,
.filtr-btn--active:focus,
.filtr-btn--active:active {
  background: var(--yellow, #FFD400);
  border-color: var(--yellow, #FFD400);
  color: #000 !important;
  font-weight: 700;
}

/* ── Prázdný stav ───────────────────────────────────────────── */
.akce-empty {
  text-align: center;
  padding: 4rem 0;
  color: #555;
  font-size: 1.1rem;
}

/* ── Karta akce ─────────────────────────────────────────────── */
.akce-karta {
  background: #333333;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}
.akce-karta:last-child { margin-bottom: 0; }

/* Hlavička karty */
.akce-karta-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.akce-karta-nazev {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--white, #fff);
  margin: 0;
  letter-spacing: 0.02em;
}
.akce-karta-datum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.akce-datum-text {
  font-size: 0.92rem;
  color: #aaa;
}
.akce-zbyva {
  font-size: 0.8rem;
  color: var(--yellow, #FFD400);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Tělo karty – obrázek + obsah */
.akce-karta-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
.akce-karta--mirror .akce-karta-body {
  grid-template-columns: 1fr 300px;
}
.akce-karta--mirror .akce-karta-img {
  order: 2;
}
.akce-karta--mirror .akce-karta-content {
  order: 1;
}

/* Obrázek */
.akce-karta-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  flex-shrink: 0;
}
.akce-karta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.akce-karta:hover .akce-karta-img img { transform: scale(1.03); }
.akce-karta-img--empty {
  border: 1px dashed rgba(255,255,255,0.1);
}

/* Obsah */
.akce-karta-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Tagy */
.akce-tagy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.akce-tag {
  font-size: 0.78rem;
  color: var(--yellow, #FFD400);
  border: 1px solid rgba(255,212,0,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  background: rgba(255,212,0,0.06);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Texty */
.akce-popis {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  margin: 0;
}
.akce-detail {
  font-size: 0.88rem;
  color: var(--yellow, #FFD400);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}
.akce-kapacita {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}
.akce-kapacita strong { color: #fff; }

/* Tlačítko registrace */
.akce-btn-wrap {
  margin-top: 0.5rem;
}

.btn-registrace {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 2px solid var(--yellow, #FFD400);
  background: transparent;
  color: var(--yellow, #FFD400);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-registrace:hover {
  background: var(--yellow, #FFD400);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,212,0,0.25);
}
.btn-registrace .btn-arrow {
  font-size: 1.2rem;
  font-family: sans-serif;
  font-weight: 400;
}
.btn-registrace--disabled {
  border-color: #444;
  color: #555;
  cursor: not-allowed;
  background: transparent;
}
.btn-registrace--disabled:hover {
  background: transparent;
  color: #555;
  transform: none;
  box-shadow: none;
}
.btn-registrace--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   DETAIL AKCE – přihlašovací stránka
══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.detail-breadcrumb {
  margin-bottom: 2rem;
}
.detail-breadcrumb a {
  font-size: 0.88rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.detail-breadcrumb a:hover { color: var(--yellow, #FFD400); }

/* Nadpis stránky */
.detail-page-header {
  margin-bottom: 3rem;
}
.detail-label {
  font-size: 0.82rem;
  color: var(--yellow, #FFD400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.detail-page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Grid: formulář | info */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

/* ── Formulář ── */
.detail-form-col {}

.detail-form-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
}
.detail-form-sub {
  font-size: 0.88rem;
  color: var(--yellow, #FFD400);
  margin: 0 0 2rem;
}

.det-form-group {
  margin-bottom: 1rem;
}
.det-input,
.det-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.det-input::placeholder,
.det-textarea::placeholder { color: #555; }
.det-input:focus,
.det-textarea:focus {
  border-color: rgba(255,212,0,0.5);
  background: rgba(255,212,0,0.04);
}
.det-textarea { resize: vertical; min-height: 100px; }
.det-hint {
  display: block;
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.det-error {
  background: rgba(214,40,40,0.12);
  border: 1px solid rgba(214,40,40,0.35);
  border-radius: 6px;
  color: #ff7070;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* Potvrzení */
.det-success {
  text-align: center;
  padding: 3rem 1.5rem;
}
.det-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,212,0,0.15);
  border: 2px solid var(--yellow, #FFD400);
  color: var(--yellow, #FFD400);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.det-success h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.5rem;
}
.det-success p { color: #aaa; margin: 0 0 2rem; }

.btn-zpet {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: transparent;
  border: 1px solid rgba(255,212,0,0.4);
  border-radius: 6px;
  color: var(--yellow, #FFD400);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-zpet:hover {
  background: rgba(255,212,0,0.08);
  border-color: var(--yellow, #FFD400);
}

.detail-naplneno {
  background: rgba(214,40,40,0.08);
  border: 1px solid rgba(214,40,40,0.3);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #ff7070;
}
.detail-naplneno p { margin: 0 0 1.5rem; }

/* ── Info o akci ── */
.detail-info-col {}

.detail-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  margin-bottom: 1.5rem;
}
.detail-img-wrap--empty {
  border: 1px dashed rgba(255,255,255,0.1);
}
.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-akce-nazev {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #ccc;
}
.detail-meta-icon { font-size: 1rem; }

.detail-popis {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.7;
  margin: 1rem 0 0;
}
.detail-detail {
  font-size: 0.85rem;
  color: var(--yellow, #FFD400);
  line-height: 1.6;
  margin: 0.75rem 0 0;
  opacity: 0.85;
}

/* Aktivní nav-link */
.nav-link.active {
  color: var(--yellow, #FFD400);
}

.akce-denni-rezim {
  margin-top: .25rem;
  color: var(--yellow, #FFD400);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.det-gdpr {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1rem 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #bbb;
  font-size: .82rem;
  line-height: 1.5;
}
.det-gdpr.is-invalid { border-color: #e95454; }
.det-gdpr-checkbox { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .1rem; accent-color: var(--yellow, #FFD400); }
.det-gdpr a { color: var(--yellow, #FFD400); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .akce-karta-body,
  .akce-karta--mirror .akce-karta-body {
    grid-template-columns: 1fr;
  }
  .akce-karta--mirror .akce-karta-img { order: 0; }
  .akce-karta-img { max-width: 100%; aspect-ratio: 16/9; }
  .akce-karta-header { flex-direction: column; }
  .akce-karta-datum { align-items: flex-start; text-align: left; }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-info-col { order: -1; }
}

@media (max-width: 600px) {
  .akce-karta {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .akce-title { font-size: 1.7rem; }
  .btn-registrace { width: 100%; justify-content: center; }
  .detail-page-title { font-size: 1.3rem; }
}
