/* Web Metronome - Custom Styles (works alongside Tailwind) */

/* Prevent double-tap zoom on interactive elements (iOS Safari) */
button, input[type="range"], .tempo-btn, .accentBeatLink, .regularBeatLink {
    touch-action: manipulation;
}

/* ---- Beat Display ---- */
.beat-display {
    height: 280px;
    background-color: #111827;
    color: white;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.05s ease;
}

.beat-display--ready {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
}

.beat-display--running {
    font-size: 220px;
    line-height: 280px;
}

@media (max-width: 480px) {
    .beat-display {
        height: 220px;
    }
    .beat-display--running {
        font-size: 170px;
        line-height: 220px;
    }
}

/* ---- Tempo Buttons ---- */
.tempo-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    background: white;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.tempo-btn:hover {
    background: #f3f4f6;
}

.tempo-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

/* ---- Range Slider ---- */
.metronome-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
}

.metronome-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #E8871E;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(232, 135, 30, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metronome-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(232, 135, 30, 0.5);
}

.metronome-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.metronome-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #E8871E;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(232, 135, 30, 0.4);
}

.metronome-slider::-moz-range-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    border: none;
}

/* ---- Accent Beats ---- */
.accentBeatLink,
.regularBeatLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.accentBeatLink {
    background-color: #E8871E;
}

.accentBeatLink:hover {
    background-color: #d07518;
}

.regularBeatLink {
    background-color: #374151;
}

.regularBeatLink:hover {
    background-color: #4b5563;
}

.accentBeatLink a,
.regularBeatLink a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}
