/* =========================================================
   HillBeats – assets/css/style.css
   Mobile-first dark music-label theme
   ========================================================= */

/* --- Variables --- */
:root {
  --color-bg:           #0d0d1a;
  --color-surface:      #1a1a2e;
  --color-accent:       #c9a74d;
  --color-accent-hover: #e0bf6a;
  --color-text:         #f0f0f0;
  --color-text-muted:   #9090b0;
  --color-border:       #2a2a45;
  --notice-height:      42px;
  --nav-height:         64px;
  --radius:             8px;
  --transition:         0.3s ease;
  --font:               'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Neon red hover effect */
  --neon-red:           #ff2b2b;
  --neon-red-soft:      rgba(255, 43, 43, 0.55);
  --neon-red-glow:      rgba(255, 43, 43, 0.35);
  --neon-outline-r:     10px;
}

/* =========================================================
   PROJECT NOTICE BANNER (FFH Mediencamp)
   ========================================================= */
.project-notice {
  position: sticky;
  top: 0;
  z-index: 1001;
  background-color: #c0392b;
  color: #fff;
  text-align: center;
  padding: 0 1.25rem;
  height: var(--notice-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
[hidden] { display: none !important; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
  position: sticky;
  top: var(--notice-height);
  height: var(--nav-height);
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.burger:hover { background: rgba(201, 167, 77, 0.1); }
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  gap: 0.25rem;
}
.nav-links.open { display: flex; }
.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--color-accent);
  background: rgba(201, 167, 77, 0.08);
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.lang-btn:hover { border-color: var(--color-accent); background: rgba(201, 167, 77, 0.08); }
.lang-btn svg { transition: transform var(--transition); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 110px;
  overflow: hidden;
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.lang-list.open { display: block; }
.lang-list li {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.lang-list li:hover  { background: rgba(201, 167, 77, 0.12); color: var(--color-accent); }
.lang-list li[aria-selected="true"] { color: var(--color-accent); font-weight: 600; }

/* Desktop nav */
@media (min-width: 768px) {
  .burger { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 0.25rem;
  }
  .nav-links a { font-size: 0.9rem; }
}

/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,26,0.45) 0%, rgba(13,13,26,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 700px;
}
.hero-band-logo { max-width: 260px; margin: 0 auto 1.5rem; }
.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
}
.slogan {
  font-size: clamp(0.95rem, 3vw, 1.3rem);
  color: var(--color-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #0d0d1a;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #0d0d1a; }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* =========================================================
   SECTIONS – Common
   ========================================================= */
section { padding: 5rem 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* =========================================================
   RELEASE
   ========================================================= */
.release-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.release-card:hover {
  box-shadow: 0 12px 40px rgba(201, 167, 77, 0.15);
  transform: translateY(-4px);
}
.release-cover {
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
}
.release-info {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.release-tag {
  display: inline-block;
  background: rgba(201, 167, 77, 0.15);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.release-info h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; }
.release-info p  { color: var(--color-text-muted); }
.release-links   { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 768px) {
  .release-card { flex-direction: row; align-items: center; }
  .release-cover { max-width: 260px; flex-shrink: 0; margin: 1.5rem; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img img {
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { color: var(--color-text-muted); font-size: 1.05rem; }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   MEDIA
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }

.media-card {
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: transform var(--transition), box-shadow var(--transition);
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 167, 77, 0.12);
}
.media-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-bg);
  cursor: pointer;
  overflow: hidden;
}
.media-placeholder svg { width: 64px; height: 64px; }
.media-placeholder img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.media-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0 0.5rem;
}

/* =========================================================
   TOUR
   ========================================================= */
.tour-list   { display: flex; flex-direction: column; gap: 0.75rem; }
.tour-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.tour-item:hover { border-color: var(--color-accent); background: rgba(201, 167, 77, 0.05); }
.tour-date   { font-weight: 700; color: var(--color-accent); min-width: 105px; }
.tour-venue  { flex: 1; font-weight: 600; }
.tour-city   { color: var(--color-text-muted); font-size: 0.875rem; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-wrap {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-wrap p { color: var(--color-text-muted); margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.nl-input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.nl-input:focus { border-color: var(--color-accent); outline: none; }
.nl-input::placeholder { color: var(--color-text-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #080812;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-logo img    { height: 40px; margin: 0 auto 0.5rem; }
.footer-slogan      { font-size: 0.875rem; color: var(--color-text-muted); letter-spacing: 0.1em; }
.footer-nav         { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.footer-social      { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.social-link:hover  { color: var(--color-accent); }
.footer-copy        { font-size: 0.8rem; color: var(--color-text-muted); }

/* =========================================================
   BAND SECTION
   ========================================================= */
.band-section { padding: 5rem 0; }

.band-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.band-photo {
  width: 100%;
  max-width: 480px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.band-desc {
  max-width: 700px;
  text-align: center;
}
.band-desc p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .band-intro {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
  .band-photo {
    max-width: 360px;
    flex-shrink: 0;
  }
  .band-desc { text-align: left; }
}

/* =========================================================
   SCROLL-REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   NEON RED HOVER / FOCUS EFFECT
   Drawn rotating outline + glow for all clickable elements.
   Animation runs exactly 1 rotation on hover then holds;
   restarts reliably on each new hover because animation is
   removed when the element is not hovered.
   ========================================================= */

/* Position context so the ::after outline can be placed
   outside the element with inset: -4px                    */
a,
button,
.btn,
[role="button"],
input[type="button"],
input[type="submit"] {
  position: relative;
  isolation: isolate;
}

/* Drawn outline — sits outside the element via inset       */
a::after,
button::after,
.btn::after,
[role="button"]::after,
input[type="button"]::after,
input[type="submit"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--neon-outline-r);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--neon-red) 60deg,
    rgba(255, 120, 120, 0.9) 120deg,
    var(--neon-red) 200deg,
    transparent 280deg,
    transparent 360deg
  );
  /* Show only a 2 px border strip — hide interior fill     */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Glow box-shadow on hover / focus-visible                 */
a:hover,
a:focus-visible,
button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible,
[role="button"]:hover,
[role="button"]:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  box-shadow:
    0 0 0 2px var(--neon-red-soft),
    0 0 18px var(--neon-red-glow),
    0 0 36px rgba(255, 43, 43, 0.18);
}

/* Show + animate outline: 1 rotation, stop at final frame */
a:hover::after,
a:focus-visible::after,
button:hover::after,
button:focus-visible::after,
.btn:hover::after,
.btn:focus-visible::after,
[role="button"]:hover::after,
[role="button"]:focus-visible::after,
input[type="button"]:hover::after,
input[type="button"]:focus-visible::after,
input[type="submit"]:hover::after,
input[type="submit"]:focus-visible::after {
  opacity: 1;
  animation: neon-draw 900ms linear 1 forwards;
}



/* =========================================================
   NAVIGATION extra underline / shadow on hover / focus
   ========================================================= */
.nav-links a,
.footer-nav a {
  border-radius: var(--neon-outline-r);
}

/* Neon bar that slides in under nav links                  */
.nav-links a::before,
.footer-nav a::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red), 0 0 16px var(--neon-red-glow);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 2;
}

.nav-links a:hover::before,
.nav-links a:focus-visible::before,
.footer-nav a:hover::before,
.footer-nav a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

/* =========================================================
   PAGE ENTER ANIMATION (global, all pages)
   Only active when JS is available (.js on <html>).
   Falls back to fully visible if JS fails.
   ========================================================= */
html.js body.page-enter {
  opacity: 0;
  transform: translateY(16px);
}

html.js body.page-enter.page-enter--ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms ease, transform 450ms ease;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .media-card, .release-card, .tour-item { transition: none; }
  .lang-btn svg { transition: none; }
  .hero-bg-img { transform: none !important; will-change: auto; }
  /* Disable page-enter animation */
  html.js body.page-enter,
  html.js body.page-enter.page-enter--ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Neon outline: stop rotation but keep outline + glow visible */
  a:hover::after, a:focus-visible::after,
  button:hover::after, button:focus-visible::after,
  .btn:hover::after, .btn:focus-visible::after,
  [role="button"]:hover::after, [role="button"]:focus-visible::after,
  input[type="button"]:hover::after, input[type="button"]:focus-visible::after,
  input[type="submit"]:hover::after, input[type="submit"]:focus-visible::after {
    animation: none;
    opacity: 1;
  }
  /* Nav underline: skip slide transition */
  .nav-links a::before,
  .footer-nav a::before {
    transition: none;
    transform: scaleX(1);
  }
}
