/* artistaDesktop.module.css - Diseño premium para versión PC */

/* Modal overlay y contenedor */
.artistModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.90);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.artistModal {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: #080808;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenido principal */
.artistModalContent {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: calc(90vh - 80px);
}

/* Panel de información del artista */
.artistInfoPanel {
  width: 320px;
  padding: 30px;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #222222;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.artistImage {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid #333333;
  transform: translateZ(0);
}

.artistImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.artistImage:hover img {
  transform: scale(1.05);
}

.artistImage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.artistDetails {
  padding: 5px 0 20px;
}

.artistName {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.artistMeta {
  display: flex;
  margin-bottom: 25px;
  color: #b3b3b3;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.metaItem {
  display: flex;
  align-items: center;
  background-color: #181818;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #262626;
}

.metaItem ion-icon {
  margin-right: 8px;
  font-size: 16px;
  color: #1ed760;
}

/* Navegación */
.artistNav {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border-top: 1px solid #222222;
  padding-top: 20px;
}

.navButton {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.navButton:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.navButton.active {
  background-color: rgba(30, 215, 96, 0.1);
  color: #1ed760;
  font-weight: 500;
  border-left: 3px solid #1ed760;
  padding-left: 13px;
}

.navButton ion-icon {
  margin-right: 12px;
  font-size: 20px;
}

/* Panel de contenido */
.contentPanel {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  background-color: #0a0a0a;
  min-height: 300px;
  scrollbar-width: thin;
}

.contentPanel::-webkit-scrollbar {
  width: 8px;
}

.contentPanel::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 4px;
}

.contentPanel::-webkit-scrollbar-thumb {
  background-color: #333333;
  border-radius: 4px;
  border: 2px solid #0a0a0a;
}

.contentPanel::-webkit-scrollbar-thumb:hover {
  background-color: #444444;
}

/* Títulos de secciones */
.sectionTitle {
  display: flex;
  align-items: center;
  font-size: 22px;
  margin: 0 0 25px 0;
  color: #ffffff;
  padding-bottom: 15px;
  border-bottom: 1px solid #222222;
}

.sectionTitle ion-icon {
  margin-right: 12px;
  font-size: 24px;
  color: #1ed760;
}

/* Lista de pistas */
.tracksList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trackItem {
  display: grid;
  grid-template-columns: 40px 60px 1fr 100px auto;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  color: #e0e0e0;
  background-color: #181818;
  border: 1px solid #222222;
}

.trackItem:hover {
  cursor: pointer;
  background-color: #202020;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.trackItem.playing {
  background-color: rgba(30, 215, 96, 0.1);
  border-left: 3px solid #1ed760;
  padding-left: 12px;
  position: relative;
}

.trackItem.playing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.05) 0%, rgba(30, 215, 96, 0) 100%);
  pointer-events: none;
  border-radius: 8px;
}

.trackNumber {
  font-size: 14px;
  color: #b3b3b3;
  text-align: center;
}

.trackImageContainer {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
  transform: translateZ(0);
}

.trackImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trackItem:hover .trackImage {
  transform: scale(1.08);
}

.trackImageOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trackItem:hover .trackImageOverlay,
.trackItem.playing .trackImageOverlay {
  opacity: 1;
}

.trackPlayButton {
  background-color: #1ed760;
  border: none;
  color: #000000;
  font-size: 22px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
  transform: scale(0.9);
}

.trackPlayButton:hover {
  transform: scale(1);
  background-color: #1fdf64;
}

.trackInfo {
  padding: 0 10px;
  overflow: hidden;
}

.trackTitle {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.trackAlbum {
  font-size: 14px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trackDuration {
  font-size: 14px;
  color: #b3b3b3;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.trackActions {
  display: flex;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.trackItem:hover .trackActions {
  opacity: 1;
}

.trackActionButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 34px;
  height: 34px;
}

.trackActionButton:hover {
  color: #1ed760;
  background-color: rgba(30, 215, 96, 0.1);
}

.trackActionButton ion-icon[name="heart"] {
  color: #1ed760;
}

/* Sección de biografía */
.bioSection {
  padding: 10px 0;
}

.biographyContent {
  color: #b3b3b3;
  line-height: 1.7;
  font-size: 15px;
  background-color: #181818;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222222;
}

.biographyContent p {
  margin-bottom: 15px;
}

.biographyContent p:last-child {
  margin-bottom: 0;
}

/* Grid de álbumes */
.albumsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.albumCard {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #181818;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  border: 1px solid #222222;
}

.albumCard:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background-color: #202020;
  border-color: #333333;
}

.albumImageContainer {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

.albumImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.albumCard:hover .albumImage {
  transform: scale(1.08);
}

.albumImageOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.albumCard:hover .albumImageOverlay {
  opacity: 1;
}

.albumActionButton {
  width: 50px;
  height: 50px;
  background-color: #1ed760;
  color: #000000;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.albumCard:hover .albumActionButton {
  transform: translateY(0);
}

.albumInfo {
  padding: 15px;
}

.albumTitle {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.albumYear {
  color: #b3b3b3;
  font-size: 14px;
}

/* Reproductor */
.playerBar {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  align-items: center;
  padding: 16px 30px;
  background-color: #050505;
  border-top: 1px solid #222222;
  height: 80px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.playerTrackInfo {
  display: flex;
  align-items: center;
}

.playerTrackImage {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

.playerTrackImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playerTrackText {
  overflow: hidden;
}

.playerTrackTitle {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.playerTrackArtist {
  font-size: 13px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.playerPrevButton,
.playerNextButton {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.playerPrevButton:hover,
.playerNextButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.playerPlayButton {
  background: linear-gradient(145deg, #1ed760, #19b050);
  border: none;
  color: #000000;
  font-size: 26px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
}

.playerPlayButton:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(30, 215, 96, 0.4);
}

.playerPlayButton:active {
  transform: scale(0.95);
}

.playerActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.playerActionButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.playerActionButton:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.playerActionButton ion-icon[name="heart"] {
  color: #1ed760;
}

.playerCloseButton {
  background-color: #333333;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.playerCloseButton:hover {
  background-color: #444444;
  transform: scale(1.05);
}

/* Botón de cerrar */
.closeButton {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.closeButton:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

/* Media queries */
@media (max-width: 1200px) {
  .artistModal {
    width: 95%;
  }
  
  .albumsGrid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 1024px) {
  .artistInfoPanel {
    width: 280px;
    padding: 25px;
  }
  
  .contentPanel {
    padding: 25px;
  }
  
  .trackItem {
    grid-template-columns: 40px 50px 1fr 80px auto;
  }
  
  .playerBar {
    grid-template-columns: 250px 1fr 180px;
  }
}

@media (max-width: 900px) {
  .artistModalContent {
    flex-direction: column;
    height: auto;
    max-height: calc(90vh - 80px);
  }
  
  .artistInfoPanel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #222222;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  
  .artistImage {
    margin-bottom: 0;
    width: 140px;
    height: 140px;
  }
  
  .artistDetails {
    padding: 0;
  }
  
  .artistNav {
    grid-column: 1 / span 2;
    margin-top: 15px;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-top: 15px;
  }
  
  .navButton {
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .albumsGrid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .artistModal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .playerBar {
    grid-template-columns: auto 1fr auto;
    padding: 15px;
  }
  
  .playerTrackTitle {
    max-width: 120px;
  }
}


/* Tema claro para artistaDesktop.module.css */

/* Modal overlay y contenedor en tema claro */
:global(.light-theme) .artistModalOverlay {
  background-color: rgba(245, 245, 247, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:global(.light-theme) .artistModal {
  background-color: #f5f5f7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Panel de información del artista en tema claro */
:global(.light-theme) .artistInfoPanel {
  background-color: #eaeaef;
  border-right: 1px solid #dddddd;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .artistImage {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #cccccc;
}

:global(.light-theme) .artistName {
  color: #111111;
}

:global(.light-theme) .artistMeta {
  color: #555555;
}

:global(.light-theme) .metaItem {
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

:global(.light-theme) .metaItem ion-icon {
  color: #1DB954; /* Mantener el color de Spotify */
}

/* Navegación en tema claro */
:global(.light-theme) .artistNav {
  border-top: 1px solid #dddddd;
}

:global(.light-theme) .navButton {
  color: #555555;
}

:global(.light-theme) .navButton:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #111111;
}

:global(.light-theme) .navButton.active {
  background-color: rgba(30, 215, 96, 0.1);
  color: #1DB954;
  border-left: 3px solid #1DB954;
}

/* Panel de contenido en tema claro */
:global(.light-theme) .contentPanel {
  background-color: #f0f0f5;
}

:global(.light-theme) .contentPanel::-webkit-scrollbar-track {
  background: #f0f0f5;
}

:global(.light-theme) .contentPanel::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border: 2px solid #f0f0f5;
}

:global(.light-theme) .contentPanel::-webkit-scrollbar-thumb:hover {
  background-color: #bbbbbb;
}

/* Títulos de secciones en tema claro */
:global(.light-theme) .sectionTitle {
  color: #111111;
  border-bottom: 1px solid #dddddd;
}

:global(.light-theme) .sectionTitle ion-icon {
  color: #1DB954;
}

/* Lista de pistas en tema claro */
:global(.light-theme) .tracksList {
  gap: 8px;
}

:global(.light-theme) .trackItem {
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

:global(.light-theme) .trackItem:hover {
  background-color: #f9f9f9;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .trackItem.playing {
  background-color: rgba(30, 215, 96, 0.1);
  border-left: 3px solid #1DB954;
}

:global(.light-theme) .trackItem.playing::before {
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.05) 0%, rgba(30, 215, 96, 0) 100%);
}

:global(.light-theme) .trackNumber {
  color: #666666;
}

:global(.light-theme) .trackImageContainer {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #dddddd;
}

:global(.light-theme) .trackTitle {
  color: #111111;
}

:global(.light-theme) .trackAlbum {
  color: #666666;
}

:global(.light-theme) .trackDuration {
  color: #666666;
}

:global(.light-theme) .trackActionButton {
  color: #666666;
}

:global(.light-theme) .trackActionButton:hover {
  color: #1DB954;
  background-color: rgba(30, 215, 96, 0.1);
}

:global(.light-theme) .trackActionButton ion-icon[name="heart"] {
  color: #1DB954;
}

/* Sección de biografía en tema claro */
:global(.light-theme) .biographyContent {
  color: #444444;
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

/* Grid de álbumes en tema claro */
:global(.light-theme) .albumCard {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #dddddd;
}

:global(.light-theme) .albumCard:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  border-color: #cccccc;
}

:global(.light-theme) .albumTitle {
  color: #111111;
}

:global(.light-theme) .albumYear {
  color: #666666;
}

/* Reproductor en tema claro */
:global(.light-theme) .playerBar {
  background-color: #eaeaef;
  border-top: 1px solid #dddddd;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .playerTrackImage {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #dddddd;
}

:global(.light-theme) .playerTrackTitle {
  color: #111111;
}

:global(.light-theme) .playerTrackArtist {
  color: #666666;
}

:global(.light-theme) .playerPrevButton,
:global(.light-theme) .playerNextButton {
  color: #333333;
}

:global(.light-theme) .playerPrevButton:hover,
:global(.light-theme) .playerNextButton:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .playerPlayButton {
  background: linear-gradient(145deg, #1ed760, #19b050);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
}

:global(.light-theme) .playerPlayButton:hover {
  box-shadow: 0 6px 15px rgba(30, 215, 96, 0.4);
}

:global(.light-theme) .playerActionButton {
  color: #666666;
}

:global(.light-theme) .playerActionButton:hover {
  color: #111111;
  background-color: rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .playerCloseButton {
  background-color: #dddddd;
  color: #333333;
}

:global(.light-theme) .playerCloseButton:hover {
  background-color: #cccccc;
}

/* Botón de cerrar en tema claro */
:global(.light-theme) .closeButton {
  background: rgba(255, 255, 255, 0.8);
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .closeButton:hover {
  background-color: rgba(0, 0, 0, 0.1);
}