/* ================================
🎧 CORE VARIABLES
================================ */
:root {
  --bg: #120a1f;
  --bg-soft: #1b1333;
  --panel: #0f0a1a;
  --accent: #f5b301; 
  --accent-2: #ff8c42; 
  --text: #ffffff;
  --muted: #bbbbbb;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* LAYOUT */
.cs-artist-dashboard {
  display: flex;
  min-height: 100vh;
}

/* ================================
📱 RESPONSIVE (MOBILE FIRST)
================================ */
/* ===============================
SMALL MOBILE
=============================== */
@media (max-width: 480px) {

  .cs-artist-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
/* ===============================
TABLET
=============================== */
@media (max-width: 1024px) {
  .cs-artist-sidebar {
    width: 200px;
    padding: 1.5rem;
  }

  .cs-artist-main {
    padding: 1.5rem;
  }
}


/* ==================================
ARTIST DASHBOARD VIP HERO
====================================*/
.cs-artist-hero {
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  background: radial-gradient(circle at top, rgba(245,179,1,0.15), transparent);
}

.cs-artist-hero h1 {
    font-size: 1.6rem;
  }

.Btns-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  width: 100%;
}


/* ==================================
FOR SOLID GLOW DEEP HOVER AND 
MORE INTERACTION ON HERO
====================================*/

.cs-artist-hero {
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;

  background: radial-gradient(circle at top, rgba(245,179,1,0.15), transparent);

  /* 🔥 ALWAYS-ON GLOW */
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(157,77,255,.6);
}

/* ===========================
FOR MORE INTERACTION
=============================*/

.cs-artist-hero:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(157,77,255,.8);
}

/* ================================
FOR MORE ANIMATION AND SLOW PULSE
==================================*/

@keyframes heroGlowPulse {
  0% {
    box-shadow: 0 20px 40px rgba(157,77,255,.5);
  }
  50% {
    box-shadow: 0 25px 55px rgba(157,77,255,.85);
  }
  100% {
    box-shadow: 0 20px 40px rgba(157,77,255,.5);
  }
}

.cs-artist-hero {
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;

  background: radial-gradient(circle at top, rgba(245,179,1,0.15), transparent);

  transform: translateY(-6px);

  /* 🔥 Base glow */
  box-shadow: 0 20px 40px rgba(157,77,255,.6);

  /* ✨ Pulse animation */
  animation: heroGlowPulse 4s ease-in-out infinite;
}


/* =========================================
💡 Optional upgrades

1. Slower, smoother vibe (more premium feel)
===========================================*/

animation: heroGlowPulse 6s ease-in-out infinite;

/* =========================================
2. Add slight “breathing” movement:
===========================================*/

@keyframes heroGlowPulse {
  0% {
    box-shadow: 0 20px 40px rgba(157,77,255,.5);
    transform: translateY(-6px);
  }
  50% {
    box-shadow: 0 28px 60px rgba(157,77,255,.9);
    transform: translateY(-8px);
  }
  100% {
    box-shadow: 0 20px 40px rgba(157,77,255,.5);
    transform: translateY(-6px);
  }
}

/* =========================================
GRADUAL COLOR CHANGES FROM PURPLE TO GOLD
===========================================*/
@keyframes gradientGlowShift {
  0% {
    opacity: 0.7;
    transform: scale(1);
    background: radial-gradient(circle, rgba(157,77,255,0.7), transparent 70%);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    background: radial-gradient(circle, rgba(245,179,1,0.75), transparent 70%);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
    background: radial-gradient(circle, rgba(157,77,255,0.7), transparent 70%);
  }
}

/* =========================================
GLOWING LAYER FOR PURPLE TO GOLD
===========================================*/
.cs-artist-hero::before {
  content: "";
  position: absolute;
  inset: -25px;              /* controls glow spread */
  border-radius: 30px;

  filter: blur(50px);        /* softness of glow */
  z-index: -1;

  animation: gradientGlowShift 6s ease-in-out infinite;
}

/* =========================================
PULSE ON HRO TOP (OPTIONAL)
===========================================
@keyframes heroLift {
  0%, 100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cs-artist-hero {
  animation: heroLift 6s ease-in-out infinite;
}
=============================================*/
  
/* =================================
CONTROLS HERO DROP NEW TRACK AND 
UPLOAD NEW TRACK BUTTONS ON HERO
===================================*/
.cs-artist-actions {
margin-top:1rem;
display:flex;
gap:1rem;
}
 
  
/* ===================================
BUTTON SYSTEM
=====================================*/
  
.Btns-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  width: 100%;
}

/* BUTTON BASE */
.Btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;

  font-size: clamp(12px, 2.5vw, 15px);

  cursor: pointer;
  border: none;
  transition: all 0.3s ease;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  
  /* ============================================ 
  🔑 KEY FIX FOR BUTTONS
  ==============================================*/
  flex: 1 1 150px; /* grow, shrink, base width */
  max-width: 220px;
}

/* 🟢 MOBILE (STACK FULL WIDTH) */
@media (max-width: 600px) {
  .Btns-container {
    flex-direction: column;
    align-items: stretch;
  }

  .Btn {
    width: 100%;
    max-width: 100%;
  }
}

/* 🟡 TABLET (2 PER ROW) */
@media (min-width: 601px) and (max-width: 900px) {
  .Btn {
    flex: 1 1 calc(50% - 10px);
    max-width: 100%;
  }
}

/* 🔵 DESKTOP (AUTO GRID FEEL) */
@media (min-width: 901px) {
  .Btn {
    flex: 1 1 180px;
  }
}

/* Variants */
.Btn-primary {
  background: linear-gradient(90deg, #f5b301, #ff8c42);
  color: #120a1f;
}

.Btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(245, 179, 1, 0.6);
}

.Btn-outline {
  border: 2px solid #f5b301;
  color: #f5b301;
}

.Btn-outline:hover {
  background: #f5b301;
  color: #120a1f;
}

/* ==============================================
TWO COLUMN STATS KDRO
===============================================*/
/* STATS */
.cs-artist-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ Force 2 columns on small screens */
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Scale up on larger screens */
@media (min-width: 768px) {
  .cs-artist-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cs-artist-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.cs-stat-card {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;

  /* ✅ Equal height + clean alignment */
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 120px; /* keeps boxes consistent */
  transition: all 0.3s ease;
}

.cs-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(157, 77, 255, 0.6);
}

/* ==============================
UPLOAD FORMS
==============================*/

.cs-upload-panel,
.cs-track-manager,
.cs-project-viewer{
margin-top:40px;
}

.cs-upload-form input{
display:block;
width:100%;
margin-bottom:20px;
padding:12px;
border-radius:10px;
border:none;
}

.cs-project-card{
background:#1b122b;
padding:25px;
border-radius:12px;
margin-top:15px;
}

.cs-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(157,77,255,.6);
}

/* ==========================
STREAM CARD (PLAYER)
============================ */
/* ====== 🎧 Stream Card ====== */
.stream-card {
  max-width: 420px;
  margin: auto;
  background: #1b1333;
  border-radius: 16px;
  padding: 16px;
  transition: all .3s ease;
}

.stream-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(157,77,255,.6);
}

.stream-card img {
  width: 100%;
  border-radius: 10px;
}

.title {
  margin: 12px 0 6px;
  font-size: 20px;
}

.meta {
  color: #bbbbbb;
  font-size: 14px;
}

/* ====== 🎧 Player ====== */
.cs-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #120a1f;
  border-radius: 40px;
  padding: 10px 14px;
  margin-top: 14px; /* 👈 spacing fix */
  position: relative;
}

/* Glow */
.cs-audio-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(245,179,1,.15), transparent 60%);
}

/* Play button */
.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  background: linear-gradient(90deg, #f5b301, #ff8c42);
  color: #120a1f;
}

.track-info {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Progress */
.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,.08);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5b301, #ff8c42);
}

/* ====== 🔥 ACTION BUTTONS (FIXED SPACING) ====== */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px; /* 👈 BIG FIX: pushes buttons away from player */
}

.actions a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* View Details */
.view-product {
  background: #2a2045;
  color: #fff;
}

/* Buy License */
.btn-gold {
  background: linear-gradient(90deg, #f5b301, #ff8c42);
  color: #120a1f;
}

/* =====================================================*/

/* ================================
MAIN CONTENT
================================ */
.cs-artist-main {
  flex: 1;
  padding: 2rem;
}

/* ================================
MOBILE HEADER (GLASS)
================================ */
.cs-mobile-header {
  display: none;
}

@media (max-width: 768px) {

  .cs-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;

    background: rgba(15, 10, 26, 0.65);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .cs-mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

.cs-mobile-logo svg {
  height: 40px;
  width: auto;
}

  /* HAMBURGER */
  .cs-menu-toggle {
    width: 30px;
    height: 22px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
  }

  .cs-menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
  }
  
/* ====== CREATE LINES ======*/
.cs-menu-toggle span{
  display:block;
  height:3px;
  width:100%;
  background:#fff;
  border-radius:3px;
  transition: all 0.3s ease;
}


  .cs-menu-toggle span:nth-child(1){top:0;}
  .cs-menu-toggle span:nth-child(2){top:9px;}
  .cs-menu-toggle span:nth-child(3){bottom:0;}

  .cs-menu-toggle.active span:nth-child(1){
    transform: rotate(45deg);
    top:9px;
  }

  .cs-menu-toggle.active span:nth-child(2){
    opacity:0;
  }

  .cs-menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg);
    bottom:9px;
  }
}

/* ===================================
💎 OVERLAY (DEPTH EFFECT) LEVEL UP NEW 
====================================== */
#csOverlay{
  position:fixed;
  inset:0;

  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);

  opacity:0;
  pointer-events:none;
  transition:.3s;

  z-index:999;
}

#csOverlay.active{
  opacity:1;
  pointer-events:auto;
}

/* ================================
🚀 FINAL MOBILE SLIDE MENU
================================ */
@media (max-width: 768px) {

  .cs-artist-dashboard{
    flex-direction: column;
  }

  .cs-artist-sidebar {
    position: fixed;
    top: 0;
    right: 0;

    width: 280px;
    height: 100vh;

    background: rgba(20, 12, 40, 0.9);
    backdrop-filter: blur(20px);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 1001;
    padding: 80px 20px 20px;

    overflow-y: auto;
  }

  .cs-artist-sidebar.active {
    transform: translateX(0);
  }

  .cs-artist-sidebar nav a {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
  }
}

/* ===================================================
💎 OPTIONAL (BUT 🔥): MICRO-INTERACTION HOVER NEW
=====================================================*/
.cs-artist-sidebar nav a:hover {
  background: rgba(245,179,1,0.12);
  color: var(--accent);
  transform: translateX(6px);
 
  box-shadow: 0 20px 40px rgba(157,77,255,.6); /* kdro added */
}
}

/* ===================================================== 
💎 SMART ACTIVE INDICATOR (🔥 SUPER CLEAN) NEW
=======================================================*/
.cs-sidebar-nav {
  position: relative;
}

.cs-active-indicator {
  position: absolute;
  left: 0;
  width: 4px;
  height: 40px;

  background: linear-gradient(#f5b301, #ff8c42);
  border-radius: 4px;

  transition: top 0.3s ease;
}

/* ====================================================== 
SIDE BAR AUDIO REACTIVE GLOW SUPPORT NEW
========================================================*/
@keyframes pulseGlow {
  0% { box-shadow: inset 0 0 40px rgba(245,179,1,0.1); }
  50% { box-shadow: inset 0 0 80px rgba(245,179,1,0.25); }
  100% { box-shadow: inset 0 0 40px rgba(245,179,1,0.1); } 
}


/* =====================================================
SIDEBAR - MUST KEEP THIS SIDEBAR ALWAYS WITHOUT THIS 
YOU WILL NEVER HAVE A SIDEBAR EVEN IF NAV WORKS
======================================================*/

.cs-artist-sidebar{
  width:240px;
  background:var(--panel);
  padding:2rem 1rem;
  transition:.3s;
}

.cs-sidebar-logo img{
  width:140px;
  margin-bottom:2rem;
}

.cs-artist-sidebar nav a{
  display:block;
  padding:12px;
  margin-bottom:10px;
  border-radius:10px;
  color:var(--muted);
}

.cs-artist-sidebar nav a:hover,
.cs-artist-sidebar nav a.active{
  background:rgba(245,179,1,.15);
  color:var(--accent);
}
