/* Experience Track Table Component Styles */
/* Clean XECHO track table for landing page demonstration */

/* 🔵 Neon Blue Glow Effect for the Current Playing Track Row */
.currently-playing-track {
  border: 1px solid #008CFF;
  animation: pulseBlueTrack 2.5s infinite ease-in-out;
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, rgba(2, 113, 252, 0.08), rgba(74, 144, 226, 0.05)) !important;
  border-left: 3px solid var(--primary-color);
}

@keyframes pulseBlueTrack {
  0% {
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 140, 255, 0.6);
  }
}

.currently-playing-track .track-song-name {
  color: var(--primary-color);
  font-weight: 600;
}

.currently-playing-track .track-play-icon {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(2, 113, 252, 0.3);
}

/* Track Table Container */
.track-table-container {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  padding: 0 1rem;
}

/* Loading State */
.track-table-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(41, 55, 80, 0.2));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--text-accent, #0271FC);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-table-loading p {
  color: var(--text-secondary, #b3b3b3);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

/* Filter/Search Section */
.track-filter-section {
  margin: 1rem 0 2rem 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(41, 55, 80, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.track-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.9), rgba(30, 35, 45, 0.8));
  border-radius: 8px;
  margin: 0.1rem;
  gap: 1rem;
}

/* Search Container */
.track-search-container {
  flex: 1;
  max-width: 300px;
}

.track-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(28, 28, 28, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-search-input::placeholder {
  color: #999;
}

.track-search-input:focus {
  outline: none;
  border-color: var(--highlight-color, #017afe);
  box-shadow: 0 0 0 3px rgba(1, 122, 254, 0.2);
  background: linear-gradient(145deg, rgba(51, 51, 51, 0.9), rgba(37, 37, 37, 0.9));
}

/* Sort Container */
.track-sort-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.track-sort-label {
  font-size: 0.875rem;
  color: #b3b3b3;
  font-weight: 500;
  white-space: nowrap;
}

.track-sort-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.track-sort-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(28, 28, 28, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b3b3b3;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
}

.track-sort-button:hover {
  color: white;
  border-color: rgba(2, 113, 252, 0.3);
  background: linear-gradient(145deg, rgba(51, 51, 51, 0.9), rgba(37, 37, 37, 0.9));
}

.track-sort-button.active-track-sort-button {
  background: linear-gradient(145deg, var(--highlight-color, #017afe), #0156c7);
  border-color: var(--highlight-color, #017afe);
  color: white;
  box-shadow: 0 6px 16px rgba(1, 122, 254, 0.4);
}

/* Track Table Wrapper */
.track-table-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

.experience-track-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-primary, 'Inter', sans-serif);
  animation: fadeInUp 0.6s ease-out;
  table-layout: fixed;
}

/* Table Headers */
.experience-track-table th {
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  background: rgba(30, 41, 59, 0.2);
  backdrop-filter: blur(10px);
  color: var(--color-text-primary, #ffffff);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Column widths */
.track-number-header {
  width: 50px;
  text-align: center;
}

.track-title-header {
  width: 30%;
  text-align: left;
  padding-left: 1rem;
}

.track-actions-header {
  width: 180px;
  text-align: center;
}

.track-album-header {
  width: 18%;
  text-align: left;
  padding-left: 1rem;
}

.track-artist-header {
  width: 18%;
  text-align: left;
  padding-left: 1rem;
}

.track-date-header {
  width: 80px;
  text-align: center;
}

.track-duration-header {
  width: 60px;
  text-align: center;
}

/* Table Rows */
.track-row {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.track-row:nth-child(odd) {
  background: var(--table-row-odd-bg, rgba(30, 40, 60, 0.2));
  border-radius: 0.25rem;
}

.track-row:nth-child(even) {
  background: var(--table-row-even-bg, rgba(25, 35, 55, 0.15));
  border-radius: 0.25rem;
}

.track-row:hover {
  background-color: rgba(88, 88, 88, 0.2) !important;
  box-shadow: 0 0 20px rgba(97, 97, 97, 0.5);
  backdrop-filter: blur(8px);
}

/* Table Cells */
.track-number-result {
  width: 50px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-title-result {
  width: 30%;
  text-align: left;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-controls-result {
  width: 180px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

.track-album-result {
  width: 18%;
  text-align: left;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-artist-result {
  width: 18%;
  text-align: left;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-date-result {
  width: 80px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.track-duration-result {
  width: 60px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Track Content */
.track-inline-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-inline-container-left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.track-audio-image {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  overflow: hidden;
}

.track-audio-image:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(2, 113, 252, 0.6);
}

.track-text-container {
  display: flex;
  flex-direction: column;
}

.track-song-name {
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text-primary, #ffffff);
  transition: all 0.3s ease;
}

.track-song-name:hover {
  color: var(--highlight-color, #017afe);
}

.track-song-artist {
  font-size: 0.9em;
  color: var(--color-text-secondary, #b3b3b3);
  cursor: pointer;
  transition: color 0.3s ease;
}

.track-song-artist:hover {
  color: var(--color-text-primary, #ffffff);
}

/* Action Icons */
.track-modal-icons-box {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.track-modal-icon {
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(28, 28, 28, 0.9));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.track-modal-icon:hover {
  color: var(--highlight-color, #017afe);
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(2, 113, 252, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.track-modal-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.track-modal-icon:hover svg {
  transform: scale(1.1);
}

/* Liked state */
.track-modal-icon.liked {
  color: #ff4444 !important;
}

.track-modal-icon.liked:hover {
  color: #ff6666 !important;
}

/* Animation for table appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-row {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.track-row:nth-child(1) { animation-delay: 0.1s; }
.track-row:nth-child(2) { animation-delay: 0.2s; }
.track-row:nth-child(3) { animation-delay: 0.3s; }
.track-row:nth-child(4) { animation-delay: 0.4s; }
.track-row:nth-child(5) { animation-delay: 0.5s; }

/* Mobile Styles */
@media (max-width: 768px) {
  .track-filter-section {
    margin: 1rem 0 1.5rem 0;
  }

  .track-filter-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .track-search-container {
    max-width: 100%;
  }

  .track-sort-container {
    width: 100%;
    justify-content: center;
  }

  .track-sort-buttons {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .track-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .experience-track-table {
    min-width: 700px;
  }

  .track-modal-icon {
    min-width: 36px;
    min-height: 36px;
    padding: 0.5rem;
    margin: 0 0.25rem;
  }

  .track-modal-icons-box {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .track-filter-bar {
    padding: 0.75rem;
  }

  .track-sort-buttons {
    gap: 0.25rem;
  }

  .track-sort-button {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }

  .track-search-input {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }

  .experience-track-table {
    min-width: 600px;
  }

  .track-modal-icon {
    min-width: 32px;
    min-height: 32px;
    padding: 0.4rem;
    margin: 0 0.2rem;
  }

  .track-modal-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Audio loading states */
.track-loading {
  opacity: 0.6;
  pointer-events: none;
}

.track-play-icon {
  transition: all 0.2s ease;
}

.track-play-icon:hover {
  transform: scale(1.1);
  background: rgba(2, 113, 252, 0.1);
}

.track-play-icon:active {
  transform: scale(0.95);
}

/* Pulse animation for currently playing track */
@keyframes pulse-playing {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.currently-playing-track .track-audio-image {
  animation: pulse-playing 2s ease-in-out infinite;
} 