/*
 * recorder.css
 * 
 * Styles for the recording functionality of ImageFX.
 */

/* Recording section styles */
.recording-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(40, 40, 40, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recording-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

/* Recording button styles */
.record-button,
.stop-button,
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Circular buttons */
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: white;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin: 0 5px;
}

.record-button {
  background-color: var(--color-accent);
}

.record-button::before {
  content: '⏺️'; /* Record icon */
  font-size: 24px;
  display: inline-block;
}

.record-button:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

.record-button:disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.stop-button {
  background-color: #555555; /* Grey color for stop */
}

.stop-button::before {
  content: '⏹️'; /* Stop icon */
  font-size: 24px;
  display: inline-block;
}

.stop-button:hover {
  background-color: #444444; /* Darker grey on hover */
  transform: translateY(-2px);
}

.stop-button:disabled {
  background-color: #777;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.download-button {
  background-color: var(--color-secondary);
}

.download-button::before {
  content: '⬇️'; /* Download icon */
  font-size: 24px;
  display: inline-block;
}

.download-button:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.download-button:disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* Recording indicators */
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  margin-top: 10px;
}

.recording-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #555;
}

.recording-status.active {
  background-color: var(--color-accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* Timer display */
.recording-timer {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin-top: 5px;
  text-align: center;
}

/* Recording icons */
.recording-icon {
  font-size: 18px;
}

/* Countdown overlay */
.countdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.countdown-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.countdown-number {
  font-size: 120px;
  color: white;
  font-weight: bold;
  animation: zoom-in-out 1s ease-in-out;
}

@keyframes zoom-in-out {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
