/* Global Styles */
:root {
  --bg: #1a1a1a;
  --accent: #5865F2;
  --text: #fff;
  --hover: #7289da;
}

body.cyberpunk {
  --bg: #0a0a2e;
  --accent: #ff00ff;
  --text: #00ffff;
  --hover: #ff2277;
  --bg-gradient: linear-gradient(135deg, #000022, #0a0a2e, #1a1a4a);
}

body.nebula {
  --bg: #0d0628;
  --accent: #3b00e6;
  --text: #b886ff;
  --hover: #ff6ac1;
  --bg-gradient: linear-gradient(45deg, #0d0628, #1a0f40, #2e1b5e);
}

body.matrix {
  --bg: #001100;
  --accent: #00ff00;
  --text: #00ff00;
  --hover: #00ff00;
  --bg-gradient: linear-gradient(45deg, #001100, #002200, #004400);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient, linear-gradient(135deg, #1a1a1a, #0a0a0a, #000));
  color: var(--text);
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  left: 40px;
  top: 50%;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent);
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
  z-index: 100;
}

.theme-switcher:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
}

/* GitHub Button */
.github-button {
  position: fixed;
  top: 20px;
  right: 90px;
  background: rgba(36,41,46,0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  z-index: 100;
  overflow: hidden;
}

.github-button svg {
  width: 42px;
  height: 42px;
  transition: all 0.4s ease;
  fill: var(--text);
}

.github-button:hover {
  transform: scale(1.15) rotate(5deg);
  background: rgba(36,41,46,0.3);
  box-shadow: 0 0 35px rgba(36,41,46,0.5);
}

.github-button:hover svg {
  fill: var(--hover);
  transform: scale(1.3);
}

/* Enhanced Discord Button */
.discord-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(8px);
  z-index: 100;
  overflow: hidden;
}

.discord-button i {
  font-size: 32px;
  color: var(--text);
  transition: color 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.discord-button:hover {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(88, 101, 242, 0.3);
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.5);
}

.discord-button:hover i {
  color: var(--hover);
  transform: scale(1.3);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  border: 2px solid rgba(88, 101, 242, 0.4);
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Enhanced Stars Background */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite alternate;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* Enhanced Main Title */
.main-title {
  font-size: 52px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 40px 0 100px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
  animation: titleFloat 5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite, titleGradient 10s linear infinite;
  background: linear-gradient(45deg, var(--text), rgba(255,255,255,0.5), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  position: relative;
}

@keyframes titleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotate(2deg) scale(1.03);
  }
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: titleUnderline 5s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
  0% {
    width: 50%;
    opacity: 0.6;
  }
  100% {
    width: 85%;
    opacity: 0.9;
  }
}

/* Enhanced Panel Container */
.panel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 0 20px;
  margin-top: -50px;
}

.panel-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

.panel-row:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-link {
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-link:hover {
  color: var(--hover);
  transform: scale(1.1);
}

/* Enhanced Download Option */
.downloadOption {
  background: rgba(20, 20, 20, 0.85);
  border-radius: 15px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  padding: 25px;
  width: 100%;
  max-width: 350px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.downloadOption::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.downloadOption:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.downloadOption:hover::before {
  left: 100%;
}

.thumbnail {
  position: relative;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  text-align: center;
}

.thumbnail h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(45deg, #fff, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 15px;
  color: #ddd;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
  min-height: 48px;
}

.download_metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  align-self: stretch;
}

.verticalCenter {
  display: flex;
  gap: 15px;
  align-items: center;
}

.verticalCenter i {
  font-size: 22px;
  color: var(--text);
  transition: color 0.3s ease;
}

.verticalCenter i:hover {
  color: var(--hover);
}

/* Enhanced Release Button */
.release-card-button {
  background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.release-card-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.7s ease-out, height 0.7s ease-out;
}

.release-card-button:hover {
  background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.release-card-button:hover::before {
  width: 350px;
  height: 350px;
}

.moreinfo-card-button {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.moreinfo-card-button:hover {
  color: var(--hover);
  transform: scale(1.15);
}

/* Info Popup */
.info-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-popup-content {
  background: var(--bg-gradient, linear-gradient(135deg, #1a1a1a, #0a0a0a, #000));
  border: 1px solid var(--accent);
  border-radius: 15px;
  padding: 25px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.info-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-close:hover {
  color: var(--hover);
  transform: rotate(90deg);
}

#info-text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}

/* Media Player */
.media-player-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(30, 30, 30, 0.85);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  animation: slideInPlayer 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInPlayer {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.player-controls button {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  padding: 5px;
  border-radius: 5px;
}

.player-controls button:hover {
  color: var(--hover);
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.15);
}

.search-bar {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  color: var(--text);
  font-size: 14px;
  width: 200px;
  transition: background-color 0.3s ease, width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
}

.search-bar:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  width: 260px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

#youtube-player {
  display: none;
}

/* Add custom scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* OPSEC Services Button */
.opsec-button {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  animation: opsecFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 174, 255, 0.7));
}

.opsec-button img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.opsec-button:hover {
  transform: translateY(-50%) scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(0, 174, 255, 0.9));
}

@keyframes opsecFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-60%) rotate(5deg); }
}