/* Spotify Now Playing Widget */
.spotify-now-playing-widget {
  border-left: 3px solid #1DB954 !important;
}

.spotify-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotify-cover-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: rgba(255,255,255,0.05);
}

.spotify-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotify-cover-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1DB954;
}

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

.spotify-track-info h4 {
  font-size: 0.85rem;
  margin: 0 0 2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-track-info p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spotify Progress Bar */
#spotify-progress-block {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
}

#spotify-progress-block .spotify-bar-bg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

#spotify-progress-block .spotify-bar-fill {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  transition: width 1s linear;
}

#spotify-fallback-msg {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 4px;
  color: var(--muted);
}

/* Photo Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.2);
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Polaroid style variant */
.gallery-polaroid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
}

@media (max-width: 600px) {
  .gallery-polaroid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.gallery-polaroid-item {
  background: white;
  padding: 8px 8px 30px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: rotate(var(--rot, 0deg));
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-polaroid-item:nth-child(odd) {
  --rot: -2deg;
}

.gallery-polaroid-item:nth-child(even) {
  --rot: 2deg;
}

.gallery-polaroid-item:nth-child(3) {
  --rot: 1deg;
}

.gallery-polaroid-item:hover {
  transform: rotate(0deg) scale(1.05) translateY(-6px);
  box-shadow: 0 12px 28px rgba(255, 105, 180, 0.25);
}

.gallery-polaroid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.gallery-polaroid-item .polaroid-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* Light mode adjustments */
body.light .gallery-polaroid-item {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.light .gallery-polaroid-item .polaroid-label {
  color: #333;
}

body.light .gallery-item {
  border-color: rgba(0,0,0,0.08);
}