/* Recording Overlay Styles - iOS Style */
#recording-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10000;
}

#recording-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Top bar - timer */
.recording-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(rgba(0,0,0,0.6), transparent);
    display: flex;
    justify-content: center;
    z-index: 1;
}

.recording-timer {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 20px;
}

.recording-timer.recording-active {
    background: rgba(255,59,48,0.9);
}

.recording-timer.recording-active::before {
    content: "●";
    margin-right: 8px;
    animation: blink 1s infinite;
}

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

/* Bottom bar - controls */
.recording-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 30px 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 1;
}

.recording-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

/* Cancel button - left side, subtle */
.btn-record-cancel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Main record button - iOS style big circle */
.btn-record-start,
.btn-record-stop {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-record-start {
    background: #ff3b30;
}

.btn-record-start:active {
    transform: scale(0.95);
}

/* Stop button - red square inside circle */
.btn-record-stop {
    background: transparent;
}

.btn-record-stop::before {
    content: "";
    width: 28px;
    height: 28px;
    background: #ff3b30;
    border-radius: 6px;
}

/* Placeholder for right side balance */
.btn-record-placeholder {
    width: 50px;
    height: 50px;
    visibility: hidden;
}

/* Size indicator - small, unobtrusive */
.recording-size {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.recording-size.size-warning {
    color: #ff9500;
}

/* Upload Progress Bar */
#upload-progress-container {
    margin: 16px 0;
}

.upload-progress-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Video processing indicator in feed */
.video-processing {
    background: #1a1a2e;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
}

.video-processing p {
    color: #888;
    margin: 0;
    animation: pulse-opacity 2s infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
