/* ═══════════════════════════════════════════════
   TRIFIKUS – style.css
   Tmavý, filmový, středověký design
═══════════════════════════════════════════════ */

/* ── PROMĚNNÉ ─────────────────────────────────── */
:root {
  --gold:       #c8a44a;
  --gold-light: #e0c070;
  --gold-dim:   rgba(200, 164, 74, 0.25);
  --bg:         #0d0b08;
  --bg-alt:     #111009;
  --surface:    #18150f;
  --surface2:   #201c14;
  --border:     rgba(200, 164, 74, 0.15);
  --text:       #d4c9b0;
  --text-muted: #7a7060;
  --text-faint: #4a4438;
  --white:      #f5f0e8;
  --nav-h:      70px;
  --max-w:      1140px;
  --ease:       0.35s ease;
  --font-d:     'Cinzel', serif;
  --font-b:     'Crimson Pro', serif;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--text); font-family: var(--font-b); font-weight: 300; line-height: 1.75; overflow-x: hidden; }
ul    { list-style: none; }
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── UTILITA ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}
.section      { padding: clamp(5rem, 10vw, 8rem) 0; }
.section-dark { background: var(--surface); }

/* Fade-in animace při scrollu */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }


/* ══════════════════════════════════════════════
   NAVIGACE
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  /* Tmavý gradient dolu – vždy viditelný i přes hero fotku */
  background: linear-gradient(to bottom, rgba(5, 4, 2, 0.82) 0%, transparent 100%);
  transition: background var(--ease);
}
/* Po odscrollování: plné tmavé pozadí */
#navbar.scrolled {
  background: rgba(10, 8, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Světlá barva + stín – čitelné na tmavém gradientu i přes libovolnou fotku */
  color: rgba(235, 225, 200, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger – mobilní menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0807; /* fallback barva pokud se fotky nenačtou */
}

/* Kontejner pro slideshow – JS sem vloží .hero-slide divy */
#hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Jedna fotka v slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
}
/* Aktivní slide je viditelný */
.hero-slide.active {
  opacity: 1;
}

/* Tmavý přechod přes fotku – bez něj by text nebyl čitelný */
.hero-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(4, 3, 2, 0.52) 0%,
    rgba(4, 3, 2, 0.35) 45%,
    rgba(4, 3, 2, 0.72) 100%
  );
  pointer-events: none;
}

/* Textový obsah – nad fotkou i tmavou vrstvou */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: heroIn 1.4s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-ornament {
  font-family: var(--font-d);
  color: rgba(200, 164, 74, 0.4);
  letter-spacing: 0.5em;
  font-size: 0.75rem;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 60px rgba(200, 164, 74, 0.25), 0 2px 8px rgba(0, 0, 0, 0.8);
}
.hero-subtitle {
  font-family: var(--font-d);
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(212, 201, 176, 0.75);
}
.hero-divider {
  width: 70px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.hero-tagline {
  font-family: var(--font-b);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--text);
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-d);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(200, 164, 74, 0.08);
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn-hero:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 28px rgba(200, 164, 74, 0.35);
}

/* Tečky pro přepínání slidů */
.slide-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}
.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 74, 0.6);
  background: rgba(200, 164, 74, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease);
}
.slide-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-d);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 164, 74, 0.4);
  animation: scrollBob 2.2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(200, 164, 74, 0.5), transparent);
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}


/* ══════════════════════════════════════════════
   SECTION HLAVIČKY
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.ornament-line {
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}


/* ══════════════════════════════════════════════
   O KAPELE
══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.lead-text {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.about-text p     { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.about-text em    { color: var(--gold-light); }
.about-text strong { color: var(--white); font-weight: 600; }

.sidebar-title {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.instruments-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.instruments-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  color: var(--text);
  transition: color var(--ease);
}
.instruments-list li:hover { color: var(--gold-light); }
.inst-mark { color: var(--gold); flex-shrink: 0; }

.since-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  background: rgba(200, 164, 74, 0.03);
}
.since-year {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.since-label {
  font-family: var(--font-d);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}


/* ══════════════════════════════════════════════
   KONCERTY
══════════════════════════════════════════════ */
.concerts-list { display: flex; flex-direction: column; }

.concert-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), padding-left var(--ease);
}
.concert-item:first-child { border-top: 1px solid var(--border); }
.concert-item:hover { background: rgba(200, 164, 74, 0.02); padding-left: 0.5rem; }

/* Nejbližší budoucí koncert – zlatá linka vlevo */
.concert-item.is-next {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
/* Minulé koncerty – ztlumené */
.concert-item.is-past { opacity: 0.3; }

.concert-date {
  font-family: var(--font-d);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}
.concert-name {
  font-family: var(--font-d);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.concert-place {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.concert-badge {
  font-family: var(--font-d);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  border-radius: 2px;
}
.status-text {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}


/* ══════════════════════════════════════════════
   GALERIE
══════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--surface2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: brightness(0.88) saturate(0.85);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: var(--gold);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity var(--ease), background var(--ease);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* ── LIGHTBOX ──────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lb-inner img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}
#lb-caption {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.7rem;
  font-size: 0.9rem;
}
.lb-btn {
  position: fixed;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  z-index: 1001;
  transition: background var(--ease), color var(--ease);
}
.lb-btn:hover { background: var(--gold); color: var(--bg); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev  { top: 50%; left: 1.2rem; transform: translateY(-50%); }
.lb-next  { top: 50%; right: 1.2rem; transform: translateY(-50%); }


/* ══════════════════════════════════════════════
   VIDEO
══════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.video-wrap { display: flex; flex-direction: column; gap: 0.65rem; }
.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  display: block;
}
.video-label {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════
   HUDBA
══════════════════════════════════════════════ */
.music-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.album-title {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.3rem;
}
.album-meta {
  font-family: var(--font-d);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.album-info p { color: var(--text); font-size: 1.05rem; }


/* ══════════════════════════════════════════════
   KONTAKT
══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}
.contact-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  min-height: 140px;
}
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-box-title {
  font-family: var(--font-d);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.contact-box-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-family: var(--font-d);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.contact-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.footer-sub {
  font-family: var(--font-d);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.footer-social a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-dim);
}
.footer-copy { font-size: 0.82rem; color: var(--text-faint); }


/* ══════════════════════════════════════════════
   RESPONZIVITA
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .music-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 680px) {
  /* Hamburger menu */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10, 8, 5, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { max-height: 380px; padding: 1.5rem 0; gap: 1.4rem; }

  /* Koncerty – stack */
  .concert-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .concert-item.is-next { border-left: 3px solid var(--gold); padding-left: 1rem; }

  /* Kontakt – jeden sloupec */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    align-self: auto;
  }

  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
}

@media (max-width: 440px) {
  .hero-title   { letter-spacing: 0.08em; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid   { grid-template-columns: 1fr; }
}
