@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --piano-white-key-width: 40px;
  --piano-white-key-height: 150px;
  --piano-black-key-width: 24px;
  --piano-black-key-height: 90px;
}

.font-geist-mono {
  font-family: 'Inter', monospace;
  letter-spacing: -0.03em;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0a;
  color: #f9f9f9;
}

/* Album styles */
.albums-container {
  perspective: 1000px;
}

.album-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.album-item:hover {
  transform: translateY(-10px);
}

.album-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  perspective: 1000px;
}

.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.album-vinyl {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(
    circle at center,
    #000 10%,
    #333 20%,
    #111 30%,
    #333 40%,
    #111 50%,
    #333 60%,
    #111 70%,
    #333 80%,
    #111 90%,
    #000 100%
  );
  border-radius: 50%;
  transform: translateZ(-20px) scale(0.95);
  opacity: 0;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.album-item.active .album-cover {
  transform: translateX(30%) rotateY(-20deg);
}

.album-item.active .album-vinyl {
  transform: translateX(-30%) translateZ(-20px) rotateY(-20deg);
  opacity: 1;
}

/* Piano styles */
.piano-wrapper {
  overflow-x: auto;
  padding: 20px 0;
}

.piano {
  display: flex;
  justify-content: center;
  position: relative;
  height: var(--piano-white-key-height);
  min-width: min-content;
}

.piano-key {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.piano-key.white {
  width: var(--piano-white-key-width);
  height: var(--piano-white-key-height);
  background-color: #f0f0f0;
  z-index: 1;
}

.piano-key.black {
  width: var(--piano-black-key-width);
  height: var(--piano-black-key-height);
  background-color: #222;
  margin-left: calc(var(--piano-black-key-width) / -2);
  margin-right: calc(var(--piano-black-key-width) / -2);
  z-index: 2;
}

.piano-key.highlight {
  background-color: rgba(255, 217, 102, 0.9);
  box-shadow: 0 0 15px rgba(255, 217, 102, 0.7);
}

.piano-key.played {
  background-color: rgba(102, 217, 255, 0.9);
  box-shadow: 0 0 15px rgba(102, 217, 255, 0.7);
}

.piano-key.white.highlight,
.piano-key.white.played {
  border-color: rgba(0, 0, 0, 0.3);
}

.piano-key-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #333;
  font-weight: 500;
  pointer-events: none;
}

.piano-key.black .piano-key-label {
  color: #fff;
  bottom: 7px;
}

.notation-display {
  min-height: 60px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 22px;
}

.note.current {
  opacity: 1;
  transform: scale(1.2);
  color: #FFD966;
}

.note.completed {
  opacity: 0.8;
  color: #66D9FF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --piano-white-key-width: 30px;
    --piano-white-key-height: 120px;
    --piano-black-key-width: 18px;
    --piano-black-key-height: 75px;
  }
  
  .piano-key-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  :root {
    --piano-white-key-width: 24px;
    --piano-white-key-height: 100px;
    --piano-black-key-width: 15px;
    --piano-black-key-height: 60px;
  }
  
  .piano-key-label {
    font-size: 8px;
  }
}
