/**
 * Recorder Interface Styles
 *
 * @package SFR_Talk_Recorder
 * @since 0.1.0
 */

.sfrtr-recorder-interface {
	margin-top: 30px;
}

.sfrtr-recorder-controls {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.sfrtr-recorder-settings {
	display: flex;
	gap: 30px;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.sfrtr-recorder-settings label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.sfrtr-recorder-settings input[type="checkbox"] {
	margin: 0;
}

.sfrtr-recorder-settings select {
	margin-left: 8px;
}

.sfrtr-recorder-status {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
	z-index: 999999;
}

.sfrtr-recording-indicator {
	display: none;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: #d63638;
	position: relative;
	z-index: 999999;
}

.sfrtr-recording-indicator.show {
	display: flex !important;
}

.sfrtr-red-dot {
	width: 12px;
	height: 12px;
	background: #d63638;
	border-radius: 50%;
	animation: sfrtr-pulse 2s infinite;
}

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

.sfrtr-recording-time {
	font-family: monospace;
	font-size: 18px;
}

.sfrtr-preview-container {
	background: #000;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
}

.sfrtr-preview-container video {
	border-radius: 4px;
	max-width: 100%;
	height: auto;
	background: #000;
}

.sfrtr-preview-actions {
	margin-top: 20px;
	display: flex;
	gap: 15px;
	justify-content: center;
}

.sfrtr-preview-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sfrtr-preview-actions .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Countdown overlay - full screen, blocking */
.sfrtr-countdown-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(0, 0, 0, 0.85) !important;
	z-index: 999998 !important;
	display: none;
	align-items: center !important;
	justify-content: center !important;
	/* Allow pointer events to pass through to stop button */
	pointer-events: none !important;
}

/* Show countdown overlay when active */
.sfrtr-countdown-overlay.active {
	display: flex !important;
}

.sfrtr-countdown-box {
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	/* Re-enable pointer events for the countdown box itself */
	pointer-events: auto !important;
}

.sfrtr-countdown-number {
	font-size: 72px;
	font-weight: bold;
	color: #2271b1;
	line-height: 1;
	margin-bottom: 20px;
	animation: sfrtr-countdown-pulse 1s ease-in-out;
}

@keyframes sfrtr-countdown-pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}
}

.sfrtr-countdown-text {
	font-size: 18px;
	color: #1d2327;
	margin: 0 0 10px 0;
	font-weight: 500;
}

.sfrtr-countdown-hint {
	font-size: 14px;
	color: #646970;
	margin: 0;
	font-style: italic;
}

.sfrtr-start-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 999999;
}

.sfrtr-stop-btn {
	position: relative !important;
	z-index: 1000000 !important;
}

.sfrtr-start-frontend-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sfrtr-start-frontend-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Responsive */
@media (max-width: 782px) {
	.sfrtr-recorder-settings {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.sfrtr-recorder-status {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.sfrtr-start-buttons {
		flex-direction: column;
		width: 100%;
	}
	
	.sfrtr-start-buttons .button {
		width: 100%;
	}
}

