/* ============================================
   Acelero.ai — Voice Recorder Styles
   ============================================ */

/* Tab switcher */
.acelero-tab {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #F0EDE4;
    color: #2C2C2A;
}

.acelero-tab:first-child {
    border-radius: 12px 0 0 12px;
}

.acelero-tab:last-child {
    border-radius: 0 12px 12px 0;
}

.acelero-tab-active {
    background: #E85D24 !important;
    color: #fff !important;
}

/* Recording panel */
.acelero-voice-panel {
    background: #F0EDE4;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mic button */
.acelero-mic-btn {
    width: 72px;
    height: 72px;
    background: #E85D24;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(232, 93, 36, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    color: #fff;
    font-size: 28px;
}

.acelero-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 93, 36, 0.4);
}

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

/* Pulsating ring during recording */
.acelero-mic-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: rgba(232, 93, 36, 0.15);
    animation: acelero-pulse 1.5s ease-out infinite;
}

@keyframes acelero-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Timer */
.acelero-timer {
    font-size: 28px;
    font-weight: 600;
    color: #E85D24;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 16px;
}

/* Waveform canvas */
.acelero-waveform {
    width: 100%;
    max-width: 300px;
    height: 48px;
    margin-top: 16px;
}

/* Recording indicator */
.acelero-rec-indicator {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #E85D24;
    margin-top: 12px;
}

.acelero-rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #E85D24;
    border-radius: 50%;
    margin-right: 6px;
    animation: acelero-blink 1s ease-in-out infinite;
}

@keyframes acelero-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Audio player (complete state) */
.acelero-player {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.acelero-play-btn {
    width: 44px;
    height: 44px;
    background: #E85D24;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.acelero-play-btn:hover {
    transform: scale(1.05);
}

.acelero-progress-track {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.acelero-progress-fill {
    height: 100%;
    background: #E85D24;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.acelero-duration {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

/* Action buttons */
.acelero-voice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.acelero-btn-secondary {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.acelero-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.acelero-btn-primary {
    padding: 10px 28px;
    background: #E85D24;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.acelero-btn-primary:hover {
    background: #d15420;
    transform: scale(1.02);
}

/* Upload progress */
.acelero-upload-bar-track {
    width: 200px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 16px auto 0;
    overflow: hidden;
}

.acelero-upload-bar-fill {
    height: 100%;
    background: #E85D24;
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease;
}

/* Error/Warning messages */
.acelero-voice-error {
    font-family: var(--font-body);
    font-size: 13px;
    color: #ba1a1a;
    background: #ffdad6;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 12px;
    display: none;
}

.acelero-voice-warning {
    font-family: var(--font-body);
    font-size: 12px;
    color: #E85D24;
    background: rgba(232, 93, 36, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
}

/* Hint text */
.acelero-voice-hint {
    font-family: 'Noto Serif', serif;
    font-size: 14px;
    color: #2C2C2A;
    margin-top: 16px;
}

.acelero-voice-subhint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Honeypot — must be invisible but not display:none (bots detect that) */
.acelero-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    tab-index: -1;
}

/* Consent checkbox */
.acelero-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}

.acelero-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #E85D24;
}

.acelero-consent label {
    font-family: 'Noto Serif', serif;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
    .acelero-mic-pulse,
    .acelero-rec-dot {
        animation: none;
    }
}
