/* audio-help.css - Styling for the audio help component */

.audio-help-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.15;
    box-sizing: border-box;
}

/* Help button styling */
.audio-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.audio-help-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.audio-help-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.audio-help-btn svg {
    width: 24px;
    height: 24px;
}

/* Audio player styling */
.audio-help-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.audio-help-player audio {
    width: 100%;
    max-width: 250px;
    margin-top: 8px;
}

/* Close button styling */
.audio-help-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-help-close svg {
    width: 14px;
    height: 14px;
}

.audio-help-close:hover {
    background-color: #dc2626;
}

/* Mobile-specific styling */
.audio-help-container.mobile .audio-help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
}

.audio-help-container.mobile .audio-help-player {
    bottom: 70px;
    right: 10px;
    max-width: calc(100% - 20px);
    width: 280px;
}

/* Topbar integration */
.topbar .topbar-audio-help {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
}

/* Ensure audio controls work well on iOS */
@supports (-webkit-touch-callout: none) {
    .audio-help-player audio {
        min-width: 200px;
    }
}

/* Accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}