/* spotify.css - Estilos para Spotify Suite & Widget Overlay para OBS */

/* =======================================================
   1. CONFIGURADOR SPOTIFY (PANEL DE CONTROL)
   ======================================================= */
.spotify-card-panel {
  background: var(--spotify-card);
  border: 1px solid var(--border-spotify);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(29, 185, 84, 0.15);
  backdrop-filter: blur(20px);
}

.spotify-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-panel-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.spotify-panel-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.spotify-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.spotify-tab-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.spotify-tab-btn.active {
  background: var(--spotify-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(29, 185, 84, 0.4);
}

.config-section {
  margin-bottom: 1.5rem;
}

.config-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--spotify-green-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.theme-choice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.theme-choice-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--spotify-green);
}

.theme-choice-card.active {
  background: rgba(29, 185, 84, 0.15);
  border-color: var(--spotify-green-light);
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.theme-choice-card .theme-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.theme-choice-card .theme-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Caja de Enlace OBS */
.obs-link-box {
  background: rgba(10, 10, 18, 0.85);
  border: 1px solid var(--border-spotify);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.obs-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--spotify-green-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* =======================================================
   2. CONTENEDOR DE VISTA PREVIA DEL WIDGET EN VIVO
   ======================================================= */
.spotify-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(29, 185, 84, 0.08) 0%, rgba(10, 10, 15, 0.95) 75%),
              repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 16px);
  border: 2px dashed rgba(29, 185, 84, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  position: relative;
}

.preview-badge-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* =======================================================
   3. ESTILOS DEL WIDGET DE SPOTIFY (MODOS DE DISEÑO)
   ======================================================= */

/* --- TEMA 1: MODERN GLASS CARD --- */
.spotify-widget-glass {
  width: 100%;
  max-width: 480px;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(29, 185, 84, 0.25);
  transition: all var(--transition-normal);
}

.widget-main-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.widget-album-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.widget-track-info {
  flex: 1;
  min-width: 0;
}

.widget-track-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.widget-track-artist {
  font-size: 0.9rem;
  color: var(--spotify-green-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.widget-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.widget-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.widget-progress-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, var(--spotify-green), var(--spotify-green-light));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--spotify-green);
  transition: width 0.3s ease;
}

/* --- TEMA 2: VINILO RETRO GIRATORIO --- */
.spotify-widget-vinyl {
  width: 100%;
  max-width: 490px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: visible;
}

.vinyl-assembly {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.vinyl-disc {
  position: absolute;
  top: 0;
  left: 20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 18%, #111 20%, #1c1c1c 45%, #0d0d0d 60%, #1a1a1a 80%, #000 100%);
  border: 2px solid #333;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 6s linear infinite;
}

.vinyl-disc.paused {
  animation-play-state: paused;
}

.vinyl-center-art {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.vinyl-sleeve {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vinyl-info-col {
  flex: 1;
  min-width: 0;
  padding-left: 1.5rem;
}

/* --- TEMA 3: CYBER BAR --- */
.spotify-widget-cyber {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(90deg, rgba(10, 10, 20, 0.95), rgba(15, 30, 25, 0.9));
  border-left: 4px solid var(--spotify-green);
  border-top: 1px solid rgba(29, 185, 84, 0.3);
  border-right: 1px solid rgba(29, 185, 84, 0.2);
  border-bottom: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 25px rgba(29, 185, 84, 0.2);
}

.cyber-status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  text-transform: uppercase;
}

/* --- TEMA 4: COMPACT PILL --- */
.spotify-widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid var(--border-spotify);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.25rem 0.45rem 0.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(29, 185, 84, 0.25);
  max-width: 380px;
}

.pill-art {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-artist {
  color: var(--spotify-green-light);
  font-weight: 500;
  margin-left: 0.35rem;
}

/* =======================================================
   4. ESTILO TRANSPARENTE OBS STANDALONE
   ======================================================= */
body.obs-transparent-mode {
  background: transparent !important;
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
