/* Override Jekyll layout constraints */
body, html {
  background: #121212 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  position: relative !important;
  overflow-x: hidden !important;
}

/* Hide all Jekyll elements */
.page, .page__inner-wrap, .page__content, .page__main, .article, .article__content, .wrapper, .main, .content, .inner, .container {
  background: #121212 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  position: relative !important;
}

/* Hide navigation and footer */
.masthead, .site-nav, .navigation, .navbar, .nav, .header, .site-header, .page-header, .site-title, .site-logo, .breadcrumbs, .page__meta, .page__date, .page__taxonomy, .sidebar, .sidebar__right, .sidebar__left, .toc, .page__toc {
  display: none !important;
}

footer, .page__footer, .site-footer, .footer, .sitemap {
  display: none !important;
}

/* Universal box sizing */
* {
  box-sizing: border-box !important;
}

/* Remove any default margins/padding from all elements */
*:not(.experiences-container):not(.spotify-sidebar):not(.main-content):not(.controls-section):not(.experiences-header):not(.experiences-album-cover):not(.playlist-info):not(.song-list):not(.song-item) {
  margin: 0 !important;
  padding: 0 !important;
}

/* Spotify playlist-inspired experiences styling */
.experiences-container {
  background: #121212;
  color: white;
  font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 0;
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
}

/* Sidebar for Spotify playlists */
.spotify-sidebar {
  width: 280px;
  background: #000000;
  padding: 2rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1001;
}

.sidebar-header {
  margin-bottom: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.sidebar-subtitle {
  font-size: 1.1rem;
  color: #b3b3b3;
}

.playlist-section {
  margin-bottom: 8rem;
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b3b3b3;
  margin-bottom: 6rem;
  margin-top: 2rem;
  font-weight: 600;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  min-height: 70px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.sidebar-item.active {
  background: rgba(29, 185, 84, 0.2);
  border-left: 3px solid #1db954;
}

.sidebar-item.active:hover {
  background: rgba(29, 185, 84, 0.3);
}

.playlist-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.playlist-icon.liked {
  background: linear-gradient(135deg, #1db954, #1ed760);
}

.playlist-icon.workout {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.playlist-icon.chill {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.playlist-icon.roadtrip {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.playlist-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.playlist-count {
  font-size: 0.75rem;
  color: #b3b3b3;
  margin-left: auto;
}

/* Main content area */
.main-content {
  margin-left: 280px;
  padding: 0.5rem 0.5rem 0.5rem 1.3rem;
  flex: 1;
  background: #121212;
  width: calc(100vw - 280px);
  max-width: none;
  min-height: 100vh;
  overflow-y: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Header section - like Spotify playlist header */
.experiences-header {
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.3) 0%, rgba(18, 18, 18, 0.8) 100%);
  padding: 2rem 0 1.5rem 1.3rem !important;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  min-height: 280px;
  opacity: 1;
  transform: none;
  animation: none;
  width: 100%;
  flex-direction: row;
  border-radius: 50%;
}

.experiences-album-cover {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #1db954, #1ed760, #1db954);
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 10;
}

.playlist-info h1 {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #1db954, #1ed760);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  transform: translateY(0);
  animation: titleSlideIn 0.6s ease-out 0.6s forwards;
}

.playlist-info .playlist-type {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b3b3b3;
  margin-bottom: 1rem;
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.5s ease-out 0.8s forwards;
}

.playlist-info .playlist-description {
  font-size: 1.3rem;
  color: #b3b3b3;
  line-height: 1.5;
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.5s ease-out 1s forwards;
}

/* Controls section */
.controls-section {
  background: rgba(18, 18, 18, 0.8);
  padding: 3rem 0 1.5rem 1.3rem !important;
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 1;
  transform: none;
  animation: none;
  width: 100%;
}

.play-button {
  width: 56px;
  height: 56px;
  background: #1db954;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.control-button {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.control-button:hover {
  color: white;
}

/* Song list section */
.song-list {
  background: #121212;
  padding: 0 0 2rem 0;
  width: 100%;
}

.list-header {
  display: grid;
  grid-template-columns: 40px 2fr 0.8fr 0.8fr 0.8fr;
  gap: 0.25rem;
  padding: 1rem 0 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease-out 1.2s forwards;
}

.list-header > div:first-child {
  text-align: center;
}

.list-header > div:nth-child(3),
.list-header > div:nth-child(4),
.list-header > div:nth-child(5) {
  text-align: center;
}

.song-item {
  display: grid;
  grid-template-columns: 40px 2fr 0.8fr 0.8fr 0.8fr;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInRight 0.5s ease-out forwards;
  min-height: 60px;
}

.song-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.song-item:nth-child(2) { animation-delay: 1.4s; }
.song-item:nth-child(3) { animation-delay: 1.6s; }
.song-item:nth-child(4) { animation-delay: 1.8s; }
.song-item:nth-child(5) { animation-delay: 2.0s; }

.song-number {
  color: #b3b3b3;
  font-size: 0.875rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.song-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.album-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1db954, #1ed760);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.song-details h4 {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.song-details p {
  color: #b3b3b3;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.3;
}

.song-company {
  color: white;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
}

.song-date {
  color: white;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
}

.song-duration {
  color: white;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatParticles {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Floating background particles */
.experiences-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(29, 185, 84, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(30, 215, 96, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(29, 185, 84, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: floatParticles 20s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  .experiences-container {
    padding: 0 !important;
    flex-direction: column !important;
  }
  
  .spotify-sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .main-content {
    margin-left: 0 !important;
    padding: 0 50px !important;
  }
  
  .experiences-header {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
  }
  
  .playlist-cover {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
  
  .playlist-info h1 {
    font-size: 2.5rem;
  }
  
  .list-header,
  .song-item {
    grid-template-columns: 30px 1fr 1fr 50px;
    gap: 0.5rem;
  }
  
  .song-company {
    display: none;
  }
}
