/* Recording Interface Styles */

#recording-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.recording-content {
    text-align: center;
    z-index: 20;
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

#recording-message {
    font-family: var(--font-scary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--scary-color);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8),
                 0 0 20px rgba(139, 0, 0, 0.6),
                 0 0 30px rgba(139, 0, 0, 0.4);
    letter-spacing: 2px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(139, 0, 0, 0.8),
                     0 0 20px rgba(139, 0, 0, 0.6),
                     0 0 30px rgba(139, 0, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(139, 0, 0, 1),
                     0 0 40px rgba(139, 0, 0, 0.8),
                     0 0 60px rgba(139, 0, 0, 0.6);
    }
}

.recording-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.record-btn {
    background: var(--scary-color);
    color: var(--text-color);
    border: 3px solid var(--accent-color);
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-family: var(--font-scary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
}

.record-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(139, 0, 0, 1);
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn.recording {
    background: #ff0000;
    animation: recordPulse 1s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 0, 0, 1);
    }
}

.record-icon {
    font-size: 2rem;
    line-height: 1;
}

.record-text {
    font-size: 1.2rem;
}

.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.recording-indicator.hidden {
    display: none;
}

.pulse {
    width: 20px;
    height: 20px;
    background: var(--scary-color);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
}

.recording-time {
    font-family: var(--font-scary);
    font-size: 2rem;
    color: var(--scary-color);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

.back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(139, 0, 0, 0.9);
    color: var(--text-color);
    border: 2px solid var(--scary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-scary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    z-index: 1000;
}

.back-button:hover {
    background: var(--scary-color);
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #recording-message {
        font-size: 2rem;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    .recording-indicator {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    #recording-message {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .pulse {
        width: 15px;
        height: 15px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #recording-message {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .recording-indicator {
        margin-top: 1rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    #recording-message {
        font-size: 1.2rem;
    }
}
