﻿/* Disco-Koira – discokoira.fi */

:root {
  --bg: #0d0a1a;
  --bg-alt: #120e26;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #15112b;
  --border: rgba(255, 255, 255, 0.1);
  --text: #e9ebff;
  --text-soft: #d6d8f0;
  --muted: #b4b6cf;
  --pink: #f64fd9;
  --cyan: #5be7ff;
  --yellow: #f9f871;
  --lime: #9dfb7a;
  --orange: #ffb36b;
  --gradient: linear-gradient(120deg, var(--pink), var(--cyan));
  --display: "Bangers", "Impact", sans-serif;
  --radius: 24px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Painikkeet */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #0a0817;
  box-shadow: 0 14px 40px rgba(246, 79, 217, 0.4);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  background: var(--text);
  color: #0a0817;
}

/* Ylätunniste */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.nav-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.nav-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 10, 26, 0.92), rgba(13, 10, 26, 0.55) 50%, rgba(13, 10, 26, 0.92));
}

.nav-inner {
  max-width: 1200px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.brand {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(120deg, var(--yellow), var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px 24px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  padding: 10px 0;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links .nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0817;
  font-weight: 700;
}

.nav-links .nav-cta:hover {
  color: #0a0817;
}

.nav-links .nav-lang {
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow--pink {
  width: 640px;
  height: 640px;
  left: -200px;
  top: -160px;
  background: radial-gradient(circle, rgba(246, 79, 217, 0.22), transparent 65%);
}

.hero-glow--cyan {
  width: 560px;
  height: 560px;
  right: -140px;
  top: 40px;
  background: radial-gradient(circle, rgba(91, 231, 255, 0.16), transparent 65%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(246, 79, 217, 0.55), 4px 4px 0 var(--pink);
}

.hero .lead {
  margin-top: 24px;
  max-width: 30em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  padding: 12px;
}

.hero-visual img {
  width: 100%;
  border-radius: 28px;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(246, 79, 217, 0.35);
}

.hero-sticker {
  position: absolute;
  right: -6px;
  bottom: -14px;
  transform: rotate(6deg);
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--yellow);
  color: #0a0817;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Osiot */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 36px;
}

.section-heading h2,
.universe h2 {
  font-size: clamp(32px, 4.5vw, 48px);
}

.section-aside {
  max-width: 26em;
  color: var(--muted);
}

.panel {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}

/* Hahmot */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.character-card {
  display: block;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card:hover,
.character-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(91, 231, 255, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.character-media {
  position: relative;
  display: block;
}

.character-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.character-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 10, 26, 0.75);
  color: #ffffff;
  transition: background-color 180ms ease, color 180ms ease;
}

.character-card:hover .character-play {
  background: var(--cyan);
  color: #0a0817;
}

.character-text {
  display: block;
  padding: 16px 18px 20px;
}

.character-name {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.1;
}

.character-line {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* Universumi */
.group-photo {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.universe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 56px;
  margin-top: 48px;
}

.follow {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.follow a {
  color: var(--cyan);
  text-decoration: none;
}

.follow a:hover {
  text-decoration: underline;
}

.universe-text p {
  color: var(--text-soft);
}

.universe-text p + p {
  margin-top: 14px;
}

/* Keikat */
.gig-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: start;
}

.gig-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gig-featured {
  padding: 2px;
  border-radius: 28px;
  background: var(--gradient);
}

.gig-featured-inner {
  border-radius: 26px;
  background: var(--panel-solid);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.gig-datebox {
  width: 112px;
  min-height: 112px;
  border-radius: 20px;
  background: rgba(91, 231, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gig-datebox-day {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--cyan);
}

.gig-datebox-month {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.gig-featured-meta {
  flex: 1 1 200px;
}

.gig-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.gig-featured-venue {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.gig-featured-city {
  color: var(--muted);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  font-weight: 700;
}

.panel > .panel-title {
  margin-bottom: 10px;
}

.panel-count {
  font-size: 14px;
  color: var(--muted);
}

.panel-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.gig-empty {
  color: var(--muted);
  text-align: center;
}

.gig-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gig-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.gig-row-date {
  min-width: 64px;
  color: var(--cyan);
  font-weight: 700;
}

.gig-row-meta {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
}

.gig-row-meta span {
  font-size: 15px;
  color: var(--muted);
}

.gig-row-link {
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.chip strong {
  color: var(--cyan);
}

.chip-list--outline {
  margin-top: 16px;
}

.chip-list--outline .chip {
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.chip-muted {
  color: #9a9cb8;
}

.past-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.past-count span {
  font-family: var(--display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
}

.past-count + .panel-note {
  margin-top: 8px;
}

/* Musiikki */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 20px;
}

.album-card {
  display: block;
  text-decoration: none;
}

.album-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease;
}

.album-card:hover img {
  transform: translateY(-4px) rotate(-1deg);
}

.album-title {
  display: block;
  margin-top: 12px;
  font-weight: 700;
}

.album-cta {
  display: block;
  font-size: 14px;
  color: var(--cyan);
}

/* Varaus */
.booking {
  padding: 2px;
  border-radius: 36px;
  background: linear-gradient(120deg, var(--pink), var(--cyan), var(--yellow));
}

.booking-inner {
  border-radius: 34px;
  background: var(--panel-solid);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
  align-items: center;
}

.booking-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  justify-self: center;
}

.booking-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 1px;
}

.booking-lead {
  margin: 18px 0 28px;
  max-width: 30em;
  color: var(--text-soft);
}

.booking-links {
  display: grid;
  gap: 12px;
}

.booking-links a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.booking-links a:hover {
  border-color: rgba(91, 231, 255, 0.5);
  background: rgba(91, 231, 255, 0.06);
}

.booking-links span {
  font-size: 14px;
  color: var(--muted);
}

.booking-links strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

/* Alatunniste */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--cyan);
  text-decoration: none;
}

/* Hahmo-ikkuna */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 3, 12, 0.75);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 28px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 10, 26, 0.7);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: center;
}

.modal-media video {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: var(--bg);
}

.modal-copy h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.modal-copy p:last-child {
  color: var(--text-soft);
}

/* Takaisin ylös -diskopallo */
.disco-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 10, 26, 0.85);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(246, 79, 217, 0.2);
  transition: transform 160ms ease;
}

.disco-fab:hover {
  transform: translateY(-2px);
}

.disco-ball {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(246, 79, 217, 0.75), rgba(91, 231, 255, 0.7));
  box-shadow: 0 0 12px rgba(246, 79, 217, 0.55), 0 0 24px rgba(91, 231, 255, 0.45);
  animation: ballSpin 6s linear infinite;
}

.disco-ball::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 6px 6px;
}

@keyframes ballSpin {
  to { transform: rotate(360deg); }
}

/* Puhelin */
@media (max-width: 720px) {
  :root {
    --header-h: 112px;
  }

  .nav-inner {
    padding: 10px 0 8px;
    justify-content: center;
    gap: 2px;
  }

  .brand {
    font-size: 32px;
    padding: 0 16px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-links .nav-cta {
    padding: 8px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-sticker {
    font-size: 22px;
    right: 4px;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .character-text {
    padding: 12px 12px 14px;
  }

  .character-name {
    font-size: 22px;
  }

  .character-line {
    font-size: 13px;
  }

  .character-play {
    width: 36px;
    height: 36px;
    right: 8px;
    bottom: 8px;
  }

  .gig-featured-inner,
  .panel {
    padding: 22px;
  }

  .booking-links strong {
    font-size: 17px;
  }

  .disco-fab {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .disco-ball {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
