@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600&display=swap");

:root {
  --primary-clr: rgba(228, 228, 229, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: url(https://github.com/ecemgo/mini-samples-great-tricks/assets/13468728/8727c9b1-be21-4932-a221-4257b59a74dd);
  background-repeat: no-repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: slidein 120s forwards infinite alternate;
  text-transform: uppercase;
}

@keyframes slidein {
  0%,
  100% {
    background-position: 20% 0%;
    background-size: 3400px;
  }
  50% {
    background-position: 100% 0%;
    background-size: 2400px;
  }
}

/* Keep real size so YouTube allows playback, but hide from view */
.yt-audio {
  position: fixed;
  width: 320px;
  height: 180px;
  left: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.yt-audio iframe {
  width: 320px;
  height: 180px;
  border: 0;
}

.album-cover {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(220px, 55vw);
  max-height: 72px;
  height: auto;
  object-fit: contain;
  margin: 8px 0 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  user-select: none;
  pointer-events: none;
}

.swiper {
  width: 100%;
  padding: 24px 0 100px;
}

.swiper-slide {
  position: relative;
  max-width: 200px;
  aspect-ratio: 1/1;
  border-radius: 10px;
}

.swiper-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  -webkit-box-reflect: below -5px
    linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.4));
  pointer-events: none;
  user-select: none;
}

.swiper-slide-active .overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 22, 37, 0.6);
  border-radius: inherit;
  opacity: 0;
  transition: all 0.4s linear;
}

.swiper-slide:hover .overlay {
  opacity: 1;
}

.swiper-slide .overlay ion-icon {
  opacity: 0;
}

.swiper-slide-active:hover .overlay ion-icon {
  font-size: 4rem;
  color: #eb0b0b;
  opacity: 1;
  cursor: pointer;
}

/* Event card */

.event-card {
  width: min(420px, 90%);
  margin: 16px 0 4px;
  padding: 22px 24px;
  text-align: center;
  color: var(--primary-clr);
  background: rgba(28, 22, 37, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(5, 36, 28, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-card__stage {
  width: 100%;
  opacity: 1;
  transform: scale(1);
}

.promo__lead {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.promo__highlight {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.signup-cta {
  width: min(420px, 90%);
  margin: -36px 0 8px;
  text-align: center;
  color: var(--primary-clr);
}

.promo__urgency {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.promo__urgency + .promo__urgency {
  margin-bottom: 16px;
}

.promo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 16px 36px;
  min-width: min(280px, 100%);
  border-radius: 999px;
  background: #7b2cbf;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 12px 28px rgba(123, 44, 191, 0.45);
  animation: promo-button-pulse 1.8s ease-in-out infinite;
  transition: background 0.2s ease;
}

.promo__button .fa-viber {
  font-size: 1.25rem;
}

.promo__button:hover,
.promo__button:focus-visible {
  background: #8e3dd6;
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(123, 44, 191, 0.55);
}

@keyframes promo-button-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(123, 44, 191, 0.45);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 18px 36px rgba(123, 44, 191, 0.7);
  }
}

/* Music Player */

.music-player {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-clr);
  width: 380px;
  padding: 10px 30px;
  border-radius: 20px;
}

.music-player h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}

.music-player p {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}

/* Music Player Progress */

#progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  background: rgba(163, 162, 164, 0.4);
  border-radius: 4px;
  margin: 32px 0 24px;
  cursor: pointer;
}

#progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(163, 162, 164, 0.9);
  width: 16px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  outline: 4px solid var(--primary-clr);
  box-shadow: 0 6px 10px rgba(5, 36, 28, 0.3);
}

/* Music Player Controls */

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  aspect-ratio: 1/1;
  margin: 20px;
  background: rgba(163, 162, 164, 0.3);
  color: var(--primary-clr);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  outline: 0;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(5, 36, 28, 0.3);
  cursor: pointer;
  transition: all 0.3s linear;
}

.controls button:is(:hover, :focus-visible) {
  transform: scale(0.96);
}

.controls button:nth-child(2) {
  transform: scale(1.3);
}

.controls button:nth-child(2):is(:hover, :focus-visible) {
  transform: scale(1.25);
}

.site-link {
  margin: 4px 0 8px;
  color: var(--primary-clr);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-link:hover,
.site-link:focus-visible {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
