/* ============================================
   RESPOND MODAL - Prepare Your Strike
   ============================================ */

#respondModal .modal-content {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
}

#respondModal .modal-header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.9) 0%, rgba(17, 17, 17, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.75rem;
}

#respondModal .modal-title {
    font-family: var(--font-display, 'Clash Display', sans-serif);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#respondModal .modal-body {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Subtle radial glow in background */
#respondModal .modal-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

#respondModal .modal-footer {
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.5);
}

/* ============================================
   RECORD BUTTON - The Trigger
   ============================================ */

#recordResponseBtnContainer {
    text-align: center;
    position: relative;
    z-index: 1;
}

#recordResponseRecordBtnContainer,
#recordResponseStopBtnContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Record button - glowing orb effect */
#recordResponseRecordBtnContainer .fa-stack {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#recordResponseRecordBtnContainer .fa-stack:hover {
    transform: scale(1.15);
}

#recordResponseRecordBtnContainer .fa-stack .fa-circle.fa-stack-2x {
    color: rgba(26, 26, 26, 0.9);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

#recordResponseRecordBtnContainer .fa-stack .fa-circle.fa-stack-1x {
    color: #ef4444;
    animation: recordPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.5));
}

@keyframes recordPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* Stop button */
#recordResponseStopBtnContainer .fa-stack {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#recordResponseStopBtnContainer .fa-stack:hover {
    transform: scale(1.1);
}

#recordResponseStopBtnContainer .fa-stack .fa-circle.fa-stack-2x {
    color: rgba(26, 26, 26, 0.9);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

#recordResponseStopBtnContainer .fa-stack .fa-stop {
    color: #ffffff;
}

/* Recording text */
#recordResponseRecordBtnContainer p,
#recordResponseStopBtnContainer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ============================================
   PROCESSING SPINNER
   ============================================ */

#stopRecordingSpinner {
    text-align: center;
    padding: 2.5rem;
}

#stopRecordingSpinner i {
    color: #6366f1;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

#stopRecordingSpinner p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.25rem;
    font-weight: 500;
}

/* ============================================
   AUDIO PREVIEW
   ============================================ */

#recordResponseAudioPreviewContainer {
    width: 100%;
    padding: 1.5rem;
}

#recordResponseAudioPreviewContainer audio {
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 16px;
}

#recordResponseAudioPreviewContainer .btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Send Response Button */
#respondButton {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border: none;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

#respondButton:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* Cancel button */
#cancelResponseBtn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cancelResponseBtn:hover {
    background: rgba(38, 38, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Audio preview element */
#respondToDebateAudioPreview {
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.8);
}

/* ============================================
   CREATE DEBATE RECORDING BUTTONS
   ============================================ */

.recordButton {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 12px !important;
}

.recordButton:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.recordButton .fa-dot-circle-o {
    color: #ef4444 !important;
}

.stopButton {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.stopButton:not(:disabled) {
    animation: stopPulse 1.5s ease-in-out infinite;
}

.stopButton:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

@keyframes stopPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.6);
    }
}

/* Close button in modal */
#respondModal .close {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.2s ease;
}

#respondModal .close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}
