/* ═══════════════════════════════════════════════════════════
   ROOFTUNE – Shared stylesheet
   Patří sem: fonty, utility třídy, glass, nav, btn, animace,
              ticker, countdown.
   NEPATŘÍ sem: layout sekcí, barvy pozadí konkrétních sekcí,
                page-specific komponenty (gallery-grid apod.)
   ═══════════════════════════════════════════════════════════ */

/* ── Fonty ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
@font-face {
  font-family: 'LeagueGothic';
  src: url('fonts/League_Gothic/LeagueGothic-Regular-VariableFont_wdth.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'ProtestRiot';
  src: url('fonts/Protest_Riot/ProtestRiot-Regular.ttf') format('truetype');
  font-weight: normal;
}

/* ── Zabraň horizontálnímu scrollu/overscrollu ──────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overscroll-behavior-x: none;
}

/* ── Typografické utility ────────────────────────────────── */
* { font-family: 'Roboto', sans-serif; }
.font-display { font-family: 'ProtestRiot', sans-serif; }
.font-gothic  { font-family: 'LeagueGothic', sans-serif; letter-spacing: 0.05em; }

/* ── Název akce – velký titulek (hero, karta, sekce) ─────── */
.event-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* ── Glass efekt (nav pill) ──────────────────────────────── */
.glass {
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 4px 24px rgba(0,0,0,0.08);
}

/* ── Navigace ────────────────────────────────────────────── */
#main-nav .nav-pill {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#main-nav .nav-link {
  transition: color 0.3s ease;
}
#main-nav.light .nav-pill {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
#main-nav.light .nav-link {
  color: #000000;
}

/* ── Tlačítka ────────────────────────────────────────────── */
.btn {
  font-family: 'LeagueGothic', sans-serif;
  text-transform: uppercase;
  animation: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}
.btn:hover {
  background: #F9781C !important;
  color: #ffffff !important;
  transform: scale(1.03) !important;
}

/* ── Page-load animace (hero) ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroBgReveal {
  from { opacity: 0; transform: scale(1.06) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.hero-title     { animation: fadeUp 0.8s ease both; animation-delay: 0.1s; }
.hero-date      { animation: fadeUp 0.8s ease both; animation-delay: 0.3s; }
.hero-btn       { animation: fadeUp 0.8s ease both; animation-delay: 0.5s; }
.hero-timer     { animation: fadeIn 1s  ease both;  animation-delay: 0.7s; }
.hero-bg-reveal { animation: heroBgReveal 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* ── Tour ticker ─────────────────────────────────────────── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

/* ── Soundwave animace ───────────────────────────────────── */
@keyframes wavebar {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.28); }
}

/* ── Countdown ───────────────────────────────────────────── */
.cd-num {
  font-size: 76px;
  font-weight: 900;
  color: white;
  line-height: 1;
  display: block;
  min-width: 140px;
  text-align: center;
}
.cd-label {
  font-size: 19px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.22em;
  display: block;
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
}
.cd-sep {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  padding-bottom: 24px;
  align-self: flex-end;
}

/* ── DJ circles – overlap + hover overlay ── */
.dj-circle { position: relative; flex-shrink: 0; }
.dj-circle:hover { z-index: 10; }
.dj-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.68);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity 0.22s ease;
  text-decoration: none;
}
.dj-circle:hover .dj-overlay { opacity: 1; }

/* Large – 96px (o-nas.html) */
.dj-circles .dj-circle + .dj-circle { margin-left: -52px; transition: margin-left 0.45s cubic-bezier(0.25,0.46,0.45,0.94); }
.dj-circles:hover .dj-circle + .dj-circle,
.dj-circles.expanded .dj-circle + .dj-circle { margin-left: 10px; }

/* Small – 72px (index, detail-akce) */
.dj-circles-sm .dj-circle + .dj-circle { margin-left: -32px; transition: margin-left 0.45s cubic-bezier(0.25,0.46,0.45,0.94); }
.dj-circles-sm:hover .dj-circle + .dj-circle,
.dj-circles-sm.expanded .dj-circle + .dj-circle { margin-left: 8px; }

/* Touch expanded – show all overlays */
.dj-circles.expanded .dj-overlay,
.dj-circles-sm.expanded .dj-overlay { opacity: 1; }

/* ── Responsive countdown ── */
@media (max-width: 639px) {
  .cd-num   { font-size: 34px !important; min-width: 60px !important; }
  .cd-label { font-size: 10px !important; margin-top: 2px !important; }
  .cd-sep   { font-size: 26px !important; padding-bottom: 18px !important; }
}

/* ── Hero subtitle (rotovaný popisek nad názvem akce) ── */
@media (max-width: 1023px) {
  .ak-hero-subtitle { font-size: 24px !important; }
}
@media (max-width: 639px) {
  .ak-hero-subtitle { font-size: 20px !important; }
}

/* ── Hamburger ikona – světlý/tmavý stav ── */
#main-nav #nav-mobile .hamburger-icon {
  stroke: white;
  transition: stroke 0.3s ease;
}
#main-nav.light #nav-mobile .hamburger-icon {
  stroke: #000000;
}

/* ── Responsive footer (sdílené třídy) ── */
@media (max-width: 1023px) {
  .rp-footer-contacts { flex-direction: column !important; gap: 16px !important; align-items: flex-start !important; }
  .rp-footer-logo     { height: auto !important; overflow: visible !important; background: #F9781C !important; }
  .rp-footer-logo-img { transform: none !important; }
}
