/* ------------------------------------------------------------------
   INTERACTIVE BEAT PAD SECTION
   ------------------------------------------------------------------ */

.beatpad-section {
  padding: 4rem 2rem;
  background: transparent;
  position: relative;
  z-index: 10;
}

.beatpad-container {
  max-width: 800px;
  margin: 0 auto;
}

.beatpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pad {
  aspect-ratio: 1;
  border: none;
  border-radius: 15px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pad::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.pad:active::before {
  width: 100%;
  height: 100%;
}

.pad-1 { background: linear-gradient(135deg, #ff0080, #ff006e); }
.pad-2 { background: linear-gradient(135deg, #00f5ff, #00d4ff); }
.pad-3 { background: linear-gradient(135deg, #ffdd00, #ffa500); }
.pad-4 { background: linear-gradient(135deg, #00ff88, #00cc66); }
.pad-5 { background: linear-gradient(135deg, #8000ff, #6000cc); }
.pad-6 { background: linear-gradient(135deg, #ff0055, #cc0044); }
.pad-7 { background: linear-gradient(135deg, #00ffff, #00cccc); }
.pad-8 { background: linear-gradient(135deg, #ff8800, #ff6600); }

.pad:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(119, 0, 255, 0.6);
}

.pad:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.click-counter {
  text-align: center;
  margin-top: 2rem;
  font-family: 'Share Tech Mono', monospace;
}

.click-counter p {
  color: #fff;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

#beat-count {
  color: rgba(119, 0, 255, 1);
  font-size: 1.5rem;
  font-weight: bold;
}

#achievement {
  color: rgba(255, 215, 0, 0.9);
  font-size: 1rem;
  min-height: 1.5rem;
  font-style: italic;
}

.reset-btn {
  background: linear-gradient(135deg, rgba(119, 0, 255, 0.8), rgba(255, 0, 255, 0.6));
  color: #fff;
  border: 2px solid rgba(119, 0, 255, 0.5);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.reset-btn:hover {
  background: linear-gradient(135deg, rgba(119, 0, 255, 1), rgba(255, 0, 255, 0.8));
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(119, 0, 255, 0.6);
}

.reset-btn:active {
  transform: scale(0.95);
}

/* Mobile */
@media (max-width: 640px) {
  .beatpad-section {
    padding: 2rem 1rem;
  }
  
  .beatpad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .pad {
    font-size: 0.85rem;
  }
}
