/* ====================================================
   MIDNIGHT AUDIO - SUBTLE RGB ACCENT EFFECTS
   ====================================================
   Optional RGB effects that enhance the existing theme
   without modifying core gradients or color palette.
   Professional and commercial-ready.
   ==================================================== */

/* RGB Accent Variables */
:root {
  --rgb-accent: linear-gradient(90deg, 
    rgba(255, 0, 150, 0.6), 
    rgba(0, 204, 255, 0.6), 
    rgba(150, 0, 255, 0.6)
  );
  --rgb-glow: 0 0 20px rgba(255, 0, 150, 0.3),
              0 0 30px rgba(0, 204, 255, 0.2),
              0 0 40px rgba(150, 0, 255, 0.1);
  --rgb-border: linear-gradient(90deg,
    rgba(255, 0, 150, 0.4),
    rgba(0, 204, 255, 0.4),
    rgba(150, 0, 255, 0.4)
  );
}

/* ====================================================
   HEADER RGB ACCENT BAR
   ==================================================== */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rgb-accent);
  opacity: 0.5;
  animation: rgb-pulse 3s ease-in-out infinite;
}

@keyframes rgb-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ====================================================
   NAVIGATION RGB EFFECTS
   ==================================================== */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

/* Active navigation item RGB underline */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rgb-accent);
  animation: rgb-slide 2s ease-in-out infinite;
}

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

/* Hover RGB glow on navigation */
.nav-link:hover {
  text-shadow: var(--rgb-glow);
}

/* ====================================================
   CARD RGB HOVER EFFECTS
   ==================================================== */
.card {
  position: relative;
  transition: all 0.3s ease;
}

/* Subtle RGB border glow on hover */
.card:hover {
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.2),
              0 0 30px rgba(0, 204, 255, 0.15),
              0 0 40px rgba(150, 0, 255, 0.1);
}

/* RGB accent on card-glow variant */
.card-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--rgb-border);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card-glow:hover::before {
  opacity: 0.3;
}

/* ====================================================
   SECTION HEADER RGB EFFECTS
   ==================================================== */
.section-title {
  position: relative;
  display: inline-block;
}

/* Optional RGB underline for section titles */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--rgb-accent);
  border-radius: 2px;
  animation: rgb-pulse 3s ease-in-out infinite;
}

/* ====================================================
   BUTTON RGB HOVER EFFECTS
   ==================================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Subtle RGB glow on primary button hover */
.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(255, 0, 150, 0.3),
              0 4px 20px rgba(0, 204, 255, 0.2),
              0 4px 25px rgba(150, 0, 255, 0.1);
}

/* RGB shimmer effect on button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* ====================================================
   PAGE HERO RGB ACCENT
   ==================================================== */
.page-hero {
  position: relative;
}

/* Optional RGB gradient accent bar */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: var(--rgb-accent);
  border-radius: 2px;
  opacity: 0.6;
}

/* ====================================================
   LOGO RGB ACCENT
   ==================================================== */
.logo-accent {
  position: relative;
  display: inline-block;
  animation: rgb-glow 2s ease-in-out infinite;
}

@keyframes rgb-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 0, 150, 0.5),
                 0 0 20px rgba(0, 204, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 0, 150, 0.7),
                 0 0 30px rgba(0, 204, 255, 0.5),
                 0 0 40px rgba(150, 0, 255, 0.3);
  }
}

/* ====================================================
   ADMIN CONSOLE RGB ACCENTS
   ==================================================== */
.admin-badge {
  position: relative;
  animation: rgb-pulse 2s ease-in-out infinite;
}

/* Role badge RGB effects */
.role-badge-owner {
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

.role-badge-admin {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* ====================================================
   FORM INPUT RGB FOCUS
   ==================================================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 0, 150, 0.2),
              0 0 0 4px rgba(0, 204, 255, 0.1);
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */
@media (max-width: 768px) {
  /* Reduce RGB effects on mobile for performance */
  .card:hover {
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.15);
  }
  
  .btn-primary:hover {
    box-shadow: 0 2px 10px rgba(255, 0, 150, 0.2);
  }
  
  /* Disable animations on mobile */
  .logo-accent {
    animation: none;
  }
}

/* ====================================================
   ACCESSIBILITY - REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================================================
   OPTIONAL: DISABLE RGB EFFECTS
   ==================================================== */
/* Uncomment to disable all RGB effects:
.site-header::after,
.nav-link.active::after,
.card-glow::before,
.section-title::after,
.page-hero::after,
.btn-primary::before {
  display: none !important;
}

.nav-link:hover,
.card:hover,
.btn-primary:hover,
.logo-accent {
  text-shadow: none !important;
  box-shadow: none !important;
  animation: none !important;
}
*/
