/* ==========================================================================
   Koncerty Czernica — main.css
   Paleta: Canva brand Kacpra (#ff7f50 koral, #f0e68c żółć, #d2b48c tan, #6f4c3e brąz)
   ========================================================================== */

/* === CUSTOM PROPERTIES === */
:root {
  /* Colors — Canva brand palette adapted for dark background */
  --color-bg:          #0f0a07;
  --color-bg-alt:      rgba(111, 76, 62, 0.12);
  --color-bg-card:     rgba(111, 76, 62, 0.08);
  --color-text:        #f0e8d5;
  --color-text-muted:  #d2b48c;
  --color-accent:      #ff7f50;   /* koral — CTA, linki */
  --color-accent-dark: #e86b38;   /* hover state */
  --color-accent-2:    #f0e68c;   /* żółć — tytuły sekcji */

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  /* Layout */
  --max-w:        1100px;
  --max-w-narrow: 680px;

  /* Nav height */
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

/* === TYPOGRAPHY === */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}
h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 400;
}

p { max-width: 65ch; }

/* === LAYOUT === */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}
.container--narrow {
  width: min(var(--max-w-narrow), 100% - 2rem);
  margin-inline: auto;
}

/* === UPCOMING BAR === */
.upcoming-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(15, 10, 7, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 230, 140, 0.25);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.upcoming-bar[hidden] { display: none; }

.upcoming-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.upcoming-bar__text {
  color: var(--color-accent-2);
}
.upcoming-bar__link {
  color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.875rem;
}
.upcoming-bar__link[hidden] { display: none; }
.upcoming-bar__link:hover { color: var(--color-accent-dark); }

.upcoming-bar__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.upcoming-bar__close:hover { color: var(--color-text); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--sp-md);
  background: rgba(15, 10, 7, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 232, 213, 0.06);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav__logo:hover { color: var(--color-accent-2); }

.nav__links {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}
.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta {
  color: var(--color-accent) !important;
  font-weight: 500;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  z-index: 101;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(280px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
    padding: 5rem var(--sp-md) var(--sp-md);
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav__hamburger { display: flex; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Fallback: gradient do czasu załadowania wideo */
  background: linear-gradient(135deg, #1a0e08 0%, #0f0a07 60%, #120e0a 100%);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15,10,7,0.25) 0%,
    rgba(15,10,7,0.50) 40%,
    rgba(15,10,7,0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-md);
  max-width: 820px;
}
.hero__tagline {
  color: var(--color-text);
  margin-bottom: var(--sp-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero__sub {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: var(--sp-md);
  max-width: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}
.hero__socials {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
}
.hero__socials a {
  color: rgba(240, 232, 213, 0.65);
  display: flex;
  transition: color 0.2s, transform 0.2s;
}
.hero__socials a:hover {
  color: var(--color-text);
  transform: scale(1.12);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(240, 232, 213, 0.4);
  display: flex;
  transition: color 0.2s;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero__scroll-hint:hover { color: var(--color-text-muted); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* === SECTIONS === */
.section {
  padding-block: var(--sp-xl);
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--newsletter {
  background: var(--color-bg-card);
  text-align: center;
}

.section__title {
  color: var(--color-accent-2);
  margin-bottom: var(--sp-md);
}
.section--newsletter .section__title {
  color: var(--color-text);
}
.section__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-md);
  max-width: none;
}
.section--newsletter .section__lead {
  margin-bottom: var(--sp-md);
}

/* === PROSE === */
.prose p {
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }

/* === VIDEO EMBED === */
.video-wrap {
  margin-block: var(--sp-md);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video-wrap lite-youtube {
  width: 100%;
  height: 100%;
}

.video-playlist-link {
  text-align: right;
  margin-top: var(--sp-xs);
}
.video-playlist-link a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.video-playlist-link a:hover { color: var(--color-accent); }

/* === GALLERY === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.gallery__item figcaption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* === ZASADY — lite === */
.rules-lite {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.rules-lite li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--color-text);
}
.rules-lite__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* === ZASADY — full (details/summary) === */
.rules-full {
  border: 1px solid rgba(240, 232, 213, 0.1);
  border-radius: 6px;
  padding: var(--sp-sm) var(--sp-sm) var(--sp-sm);
}
.rules-full summary {
  cursor: pointer;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--sp-xs);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rules-full summary::-webkit-details-marker { display: none; }
.rules-full summary::before {
  content: '▸';
  transition: transform 0.2s;
  display: inline-block;
}
details[open] .rules-full summary::before { transform: rotate(90deg); }
.rules-full summary:hover { color: var(--color-accent-dark); }

.rules-full__list {
  margin-top: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-inline-start: var(--sp-sm);
  counter-reset: rule-counter;
}
.rules-full__list li {
  position: relative;
  padding-inline-start: 1.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
  counter-increment: rule-counter;
}
.rules-full__list li::before {
  content: counter(rule-counter) ".";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* === DOJAZD === */
.travel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
}
.travel__option {
  background: var(--color-bg-card);
  border: 1px solid rgba(240, 232, 213, 0.06);
  border-radius: 8px;
  padding: var(--sp-md);
}
.travel__option h3 {
  margin-bottom: var(--sp-xs);
  font-size: 1rem;
  color: var(--color-text);
}
.travel__option p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-xs);
  max-width: none;
}
.travel__option p:last-child { margin-bottom: 0; }

.map {
  margin-top: var(--sp-lg);
}
.map img {
  border-radius: 8px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* === NEWSLETTER === */
.newsletter-form-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}
.newsletter-form-placeholder > p {
  max-width: none;
  color: var(--color-text);
}
.newsletter-form-placeholder__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 42ch;
  text-align: center;
}

/* === FOOTER === */
.footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(240, 232, 213, 0.06);
  padding-block: var(--sp-lg) var(--sp-md);
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-md);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer__brand strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
}
.footer__brand span,
.footer__brand a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.footer__brand a:hover { color: var(--color-text); }

.footer__socials {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  align-items: center;
}
.footer__socials a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.footer__socials a:hover { color: var(--color-text); }

.footer__colophon {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(240, 232, 213, 0.06);
  padding-top: var(--sp-sm);
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer__colophon a {
  color: var(--color-text-muted);
}
.footer__colophon a:hover { color: var(--color-text); }
.footer__ca {
  cursor: help;
  font-style: normal;
  transition: transform 0.2s;
}
.footer__ca:hover { transform: scale(1.3); }

@media (max-width: 600px) {
  .footer__grid { flex-direction: column; }
  .footer__socials { gap: var(--sp-sm); }
}
