/* Reset & global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px; /* for fixed header */
}
a {
  color: #61dafb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background-color: rgba(18, 18, 18, 0.8); /* Transparent with depth */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.site-header .logo {
  height: 40px;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

.download-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.download-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.download-thumbnail,
.youtube-embed iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 15px;
  object-fit: cover;
}

.youtube-embed {
  display: none;
}
.media-toggle {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.media-toggle button {
  background: #bb86fc;
  color: #121212;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-weight: bold;
}

/* Description */
.download-description {
  color: #cccccc;
  font-size: 1rem;
  max-width: 700px;
  margin: 20px auto;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
  transition: padding 0.4s ease;
}
.modal-box h2 {
  margin-bottom: 10px;
}
.modal-box .countdown {
  font-size: 2rem;
  font-weight: bold;
  margin: 15px 0;
  color: #03dac6;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ffffff;
}

/* Cookie Banner */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1f1f1f;
  color: #cccccc;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1500;
}
#cookieBanner.hidden {
  display: none;
}
#cookieBanner button {
  background-color: #61dafb;
  color: #121212;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
}

/* Footer */
.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #cccccc;
  padding: 20px;
  background-color: transparent;
}

.countdown-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 20px auto;
}
.countdown-ring {
  transform: rotate(-90deg);
}
.countdown-ring circle {
  fill: none;
  stroke-width: 8;
}
.countdown-ring circle:first-child {
  stroke: #333;
}
#countdownPath {
  stroke: #03dac6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: #03dac6;
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Make embedded YouTube player larger */
.media-section iframe {
  width: 100%;
  max-width: 720px;
  height: 405px;
  display: block;
  margin: 2rem auto;
}

/* CSS Variables for Neon Colors */
:root {
  --neon-cyan: #61dafb;
  --neon-violet: #bb86fc;
  --neon-bg: #121212;
}

/* Main download button - animated border glow effect */
.fancy-neon-button {
  display: inline-block;
  background-color: #1f1f1f;
  color: #000000;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}

.fancy-neon-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-cyan));
  background-size: 600% 600%;
  border-radius: 30px;
  z-index: -1;
  animation: neonMove 4s linear infinite;
  filter: blur(4px);
}

@keyframes neonMove {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Modal download button - classic neon with flicker effect */
.real-download-btn a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: var(--neon-cyan);
  background: transparent;
  border: var(--neon-cyan) 0.125em solid;
  padding: 0.75em 1.5em;
  border-radius: 0.25em;
  text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;
  box-shadow: inset 0 0 0.5em 0 var(--neon-cyan), 0 0 0.5em 0 var(--neon-cyan);
  position: relative;
  transition: all 0.2s ease;
  animation: flicker 2.4s infinite alternate;
}

/* Neon button pseudo-elements for the glow effects */
.real-download-btn a::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background: var(--neon-cyan);
  top: 120%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
  filter: blur(1em);
  opacity: 0.7;
}

.real-download-btn a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 2em 0.5em var(--neon-cyan);
  opacity: 0;
  background-color: var(--neon-cyan);
  z-index: -1;
  transition: opacity 100ms linear;
}

/* Hover effects for modal neon button */
.real-download-btn a:hover,
.real-download-btn a:focus {
  color: var(--neon-bg);
  text-shadow: none;
}

.real-download-btn a:hover::before,
.real-download-btn a:focus::before {
  opacity: 1;
}

.real-download-btn a:hover::after,
.real-download-btn a:focus::after {
  opacity: 1;
}

/* Ensure the modal download wrapper displays properly */
.real-download-btn {
  margin-top: 15px;
}

/* Flicker animation for modal neon button */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.35;
  }
}
/* Add to styles.css */
.no-video-tooltip {
  position: relative;
}

.no-video-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff5555;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 100;
}

.no-video-tooltip:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #ff5555 transparent transparent transparent;
  z-index: 100;
}

/* Add to styles.css */
.media-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.media-toggle button.locked {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.media-toggle button.locked:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e0e0e0;
  color: #000000;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 8px;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.media-toggle button.locked:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #e0e0e0 transparent transparent transparent;
  z-index: 100;
}

.download-thumbnail,
.media-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.media-section iframe {
  display: block;
  margin: 0 auto;
}
/* Add to styles.css */
.glitch-button {
  position: relative;
  background: #bb86fc !important; /* Your existing purple color */
  color: #121212 !important;
  overflow: hidden;
}

.glitch-button .glitch-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.glitch-button:hover .glitch-effect {
  animation: glitch-anim 0.4s linear infinite;
  opacity: 0.8;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    clip-path: inset(0 0 95% 0);
  }
  10% {
    transform: translate(-3px, 3px);
    clip-path: inset(10% 0 30% 0);
  }
  20% {
    transform: translate(3px, -3px);
    clip-path: inset(80% 0 5% 0);
  }
  30% {
    transform: translate(0);
    clip-path: inset(50% 0 40% 0);
  }
  40% {
    transform: translate(-3px, -3px);
    clip-path: inset(10% 0 80% 0);
  }
  50% {
    transform: translate(3px, 3px);
    clip-path: inset(0 0 20% 0);
  }
  60% {
    transform: translate(3px, -3px);
    clip-path: inset(40% 0 50% 0);
  }
  70% {
    transform: translate(-3px, 3px);
    clip-path: inset(10% 0 30% 0);
  }
  80% {
    transform: translate(0);
    clip-path: inset(80% 0 5% 0);
  }
  90% {
    transform: translate(3px, -3px);
    clip-path: inset(50% 0 40% 0);
  }
  100% {
    transform: translate(0);
    clip-path: inset(0 0 95% 0);
  }
}

/* Keep your existing locked button styles */
.media-toggle button.locked {
  opacity: 0.8;
  cursor: not-allowed;
  position: relative;
  background: #bb86fc !important;
  color: #121212 !important;
}

.media-toggle button.locked:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e0e0e0;
  color: #000000;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 8px;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}