/* Main styles for itsyourradio placeholder page */

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

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
  position: relative;
}

/* Animated Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #0c164d 0%, #090c2b 50%, #000000 100%);
  overflow: hidden;
}

/* Stars layer */
.background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(2px, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 100%),
    radial-gradient(1px, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  background-position: 0 0, 0 0, 0 0;
  background-size: 700px 700px, 1100px 1100px, 900px 900px;
  background-repeat: repeat;
  opacity: 1;
  animation: starsAnimation 150s linear infinite;
}

/* Nebula and galaxy effects */
.background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(186, 78, 247, 0.2) 0%, rgba(186, 78, 247, 0) 70%),
    radial-gradient(ellipse at 80% 40%, rgba(33, 150, 243, 0.18) 0%, rgba(33, 150, 243, 0) 70%),
    radial-gradient(ellipse at 10% 80%, rgba(91, 55, 183, 0.2) 0%, rgba(91, 55, 183, 0) 70%),
    radial-gradient(ellipse at 60% 70%, rgba(219, 78, 216, 0.18) 0%, rgba(219, 78, 216, 0) 70%),
    radial-gradient(ellipse at 30% 60%, rgba(0, 183, 255, 0.18) 0%, rgba(0, 183, 255, 0) 70%);
  background-blend-mode: screen;
  transform: scale(1.2);
  filter: blur(30px);
  opacity: 0.6;
  animation: nebulaAnimation 50s ease infinite alternate;
}

/* Create a div with cosmic dust */
.cosmic-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><defs><radialGradient id="dust" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.2"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect x="0" y="0" width="200" height="200" fill="none"/><g fill="url(%23dust)"><circle cx="50" cy="50" r="1"/><circle cx="100" cy="25" r="1.5"/><circle cx="150" cy="90" r="1"/><circle cx="70" cy="150" r="1.2"/><circle cx="180" cy="30" r="0.8"/><circle cx="20" cy="120" r="1.3"/><circle cx="130" cy="160" r="1.1"/></g></svg>');
  opacity: 0.8;
  animation: dustAnimation 200s linear infinite;
}

/* Galaxy spiral effect */
.galaxy-spiral {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    repeating-conic-gradient(from 0deg, 
      rgba(0,0,0,0) 0deg 30deg, 
      rgba(100,100,255,0.03) 40deg 50deg, 
      rgba(0,0,0,0) 50deg 220deg, 
      rgba(250,180,250,0.03) 230deg 240deg, 
      rgba(0,0,0,0) 250deg 360deg);
  opacity: 0.5;
  transform-origin: center;
  animation: spiralRotation 300s linear infinite;
  filter: blur(10px);
  mix-blend-mode: screen;
}

@keyframes spiralRotation {
  0% {
    transform: rotate(0deg) scale(1.5);
  }
  100% {
    transform: rotate(360deg) scale(1.5);
  }
}

@keyframes dustAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 1000px;
  }
}

@keyframes starsAnimation {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-100px, -100px) rotate(5deg);
  }
}

@keyframes nebulaAnimation {
  0% {
    transform: scale(1.2) translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3) translate(30px, -10px);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2) translate(10px, 20px);
    opacity: 0.5;
  }
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px); /* Adjusted for player height */
  width: 100%;
  text-align: center;
  padding: 20px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.logo {
  max-width: 80%;
  max-height: 50vh;
  height: auto;
  display: block;
}

.main-message {
  font-size: 28px;
  font-weight: 600;
  color: #f2f2f2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.sub-message {
  font-size: 18px;
  color: #e6e6e6;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.thank-you {
  font-size: 16px;
  color: #e0e0e0;
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Player styles */
#player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(24, 32, 42, 0.95);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  transition: background-color 1.5s ease;
}

#player-container.active {
  background: linear-gradient(to right, rgba(18, 24, 32, 0.95), rgba(28, 35, 45, 0.95), rgba(18, 24, 32, 0.95));
  background-size: 200% 100%;
  animation: playerBackgroundAnimation 15s ease infinite;
}

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

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

#player-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px; /* Thicker border for better glow effect */
  background: linear-gradient(90deg, #c3deeb, #8a6389, #2e4e7e, #8a6389, #c3deeb);
  background-size: 300% 100%;
  box-shadow: 0 0 20px 5px rgba(138, 99, 137, 0.8); /* Strong glow */
  transition: background 1.5s ease, box-shadow 1.5s ease;
  opacity: 0.8;
}

#player-container.active::before {
  animation: borderAnimation 3s linear infinite;
  opacity: 1;
}

.jp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;
  margin-right: 20px;
}

.jp-controls button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  width: 45px;
  height: 45px;
  margin: 0 5px;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp-controls button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.jp-controls button:active {
  transform: scale(0.95);
}

.jp-controls button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Disabled button styles */
.jp-controls button.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.jp-controls button.disabled:hover {
  background-color: transparent;
  transform: none;
}

.album-art {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.album-art.has-art {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.album-art img.visible {
  opacity: 1;
}

.album-art .placeholder {
  width: 40px;
  height: 40px;
  fill: rgba(255, 255, 255, 0.5);
}

.track-info {
  flex-grow: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 20px;
  overflow: hidden;
}

.track-title, .track-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.5s ease;
}

.track-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.track-artist {
  font-size: 16px;
  opacity: 0.8;
}

.track-title.scrolling, .track-artist.scrolling {
  animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
  0%, 10% {
    transform: translateX(0%);
  }
  90%, 100% {
    transform: translateX(calc(-100% + 250px));
  }
}

.volume-control {
  display: flex;
  align-items: center;
  width: 150px;
  margin-left: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 25px;
}

.volume-icon {
  margin-right: 15px;
  color: white;
}

.volume-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.jp-volume-bar {
  width: 80px;
  height: 8px;
  background: rgba(15, 20, 27, 0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.jp-volume-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c3deeb40, #8a638940, #2e4e7e40, #8a638940, #c3deeb40);
  background-size: 300% 100%;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

#player-container.active .jp-volume-bar::before {
  animation: borderAnimation 4s linear infinite;
  opacity: 1;
}

.jp-volume-bar-value {
  height: 100%;
  background: linear-gradient(90deg, #c3deeb, #8a6389, #2e4e7e, #8a6389, #c3deeb);
  background-size: 300% 100%;
  border-radius: 4px;
  transition: width 0.2s ease;
}

#player-container.active .jp-volume-bar-value {
  animation: borderAnimation 3s linear infinite;
}

/* Loading indicator */
.loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.loading-indicator.visible {
  opacity: 1;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Message overlay */
.message-overlay {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1000;
}

.message-overlay.visible {
  opacity: 1;
}

.message-overlay.error {
  background-color: rgba(220, 53, 69, 0.8);
}

.message-overlay.success {
  background-color: rgba(40, 167, 69, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    height: calc(100vh - 90px);
  }
  
  #player-container {
    height: 90px;
    padding: 0 15px;
  }
  
  .album-art {
    width: 65px;
    height: 65px;
    min-width: 65px;
    margin-right: 15px;
  }
  
  .track-title {
    font-size: 16px;
  }
  
  .track-artist {
    font-size: 14px;
  }
  
  .volume-control {
    width: 40px;
    padding: 8px;
  }
  
  .jp-volume-bar {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    height: calc(100vh - 80px);
  }
  
  #player-container {
    height: 80px;
    padding: 0 10px;
  }
  
  .jp-controls {
    width: 90px;
    margin-right: 10px;
  }
  
  .jp-controls button {
    width: 40px;
    height: 40px;
  }
  
  .album-art {
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-right: 10px;
  }
  
  .album-art .placeholder {
    width: 30px;
    height: 30px;
  }
  
  .track-title {
    font-size: 14px;
  }
  
  .track-artist {
    font-size: 12px;
  }
}