/* ==========================================================================
   Dugem-Inspired DJ Website Theme - CSS Stylesheet
   Design Aesthetic: Dark Cyber Neon, Glassmorphism, Micro-Animations
   ========================================================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: rgba(22, 22, 34, 0.75);
  --bg-card-hover: rgba(30, 30, 48, 0.9);
  
  --color-neon-cyan: #00f0ff;
  --color-neon-magenta: #ff007f;
  --color-neon-purple: #9d00ff;
  --color-neon-gold: #ffb700;
  --color-neon-green: #00ff88;
  --color-neon-red: #ff3355;
  
  --text-main: #ffffff;
  --text-muted: #a0a0b8;
  --text-dim: #60607a;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon-cyan: rgba(0, 240, 255, 0.3);
  --border-neon-magenta: rgba(255, 0, 127, 0.3);
  --border-neon-green: rgba(0, 255, 136, 0.3);
  --border-neon-red: rgba(255, 51, 85, 0.3);
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 90px; /* Space for sticky player */
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(157, 0, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2a2a3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon-cyan);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.glow-text-cyan {
  color: var(--color-neon-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.glow-text-magenta {
  color: var(--color-neon-magenta);
  text-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

.glow-text-green {
  color: var(--color-neon-green);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-neon-cyan) 0%, var(--color-neon-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Section Common */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-neon-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-fast);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

/* Navbar logo.
   invert(1) flips dark logo text to white.
   mix-blend-mode: screen makes any remaining dark/black background transparent.
   Works for both transparent PNGs and white-background PNGs. */
.logo-img {
  height: 38px;
  width: auto;
  filter: invert(1) drop-shadow(0 0 8px rgba(0, 240, 255, 0.7));
  mix-blend-mode: screen;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: invert(1) drop-shadow(0 0 14px rgba(0, 240, 255, 1));
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-magenta));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-neon-cyan);
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--color-neon-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-cyan), #0099ff);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.btn-green {
  background: linear-gradient(135deg, var(--color-neon-green), #00b862);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--color-neon-magenta), var(--color-neon-purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.7);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-neon-red), #cc0029);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 51, 85, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 51, 85, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-neon-cyan);
  color: var(--color-neon-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Hero Section */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 30px;
  background: linear-gradient(to bottom, rgba(10,10,15,0.4), var(--bg-primary)),
              url('../images/hero-bg.jpg') center 20%/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--border-neon-magenta);
  border-radius: 30px;
  color: var(--color-neon-magenta);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-neon-magenta);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon-magenta);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animated Equalizer Visualizer */
.hero-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 35px;
  margin-top: 40px;
}

.eq-bar {
  width: 4px;
  background: linear-gradient(to top, var(--color-neon-cyan), var(--color-neon-magenta));
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 60%; animation-delay: 0.5s; }
.eq-bar:nth-child(5) { height: 90%; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 50%; animation-delay: 0.6s; }

@keyframes eqBounce {
  0% { height: 15%; }
  100% { height: 100%; }
}

/* Mixes Grid & Filters */
.mix-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.mix-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-neon-cyan);
  color: #000;
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.mixes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.mix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.mix-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-neon-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.mix-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.mix-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.mix-card:hover .mix-thumb {
  transform: scale(1.08);
}

.mix-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.mix-card:hover .mix-play-overlay {
  opacity: 1;
}

.play-circle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
  cursor: pointer;
  transition: var(--transition-fast);
}

.play-circle-btn:hover {
  transform: scale(1.15);
}

.mix-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mix-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mix-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.mix-tag-video {
  background: rgba(255, 0, 127, 0.15);
  color: var(--color-neon-magenta);
  border-color: var(--border-neon-magenta);
}

.mix-card-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.mix-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mix-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  margin-top: auto;
}

.mix-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mix-actions-row .btn {
  flex: 1;
}

/* Google Drive Embedded Drawer */
.gdrive-embed-drawer {
  display: none;
  background: #0d0d14;
  border-top: 1px solid var(--border-neon-cyan);
  padding: 12px;
}

.gdrive-embed-drawer.active {
  display: block;
}

.gdrive-embed-drawer iframe {
  width: 100%;
  height: 90px;
  border: none;
  border-radius: 8px;
}

/* Video Modal Responsive Container */
.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sticky Bottom Audio Player Bar */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-neon-cyan);
  z-index: 9999;
  padding: 12px 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s ease;
}

.player-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
}

.player-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.player-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-controls-main {
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  color: var(--color-neon-cyan);
}

.btn-play-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-magenta));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transition: var(--transition-fast);
}

.btn-play-pause:hover {
  transform: scale(1.1);
}

.player-progress-bar-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-stamp {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  min-width: 35px;
}

.progress-bar-bg {
  flex-grow: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--color-neon-cyan), var(--color-neon-magenta));
  border-radius: 10px;
  transition: width 0.1s linear;
}

.player-extra-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 200px;
  justify-content: flex-end;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-neon-cyan);
}

.code-block {
  background: #08080c;
  border: 1px solid var(--border-glass);
  padding: 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-neon-cyan);
  margin: 12px 0;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-select option {
  background: #12121a;
  color: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-neon-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Admin Manage Mix List */
.admin-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.admin-tab-btn.active {
  color: var(--color-neon-cyan);
  border-bottom-color: var(--color-neon-cyan);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.manage-mix-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.manage-mix-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manage-mix-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-title { font-size: 2.8rem; }
  .mixes-grid { grid-template-columns: 1fr; }
  .player-track-info { width: auto; }
  .player-extra-controls { display: none; }
  .nav-links { display: none; }
}
