/* Screen Recorder — AllOmnitools */
/* Extends Bulma and /style.css with recorder-specific styles */

/* ===== Theme Variables (Light/Dark) ===== */
:root {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #ef4444;
  --primary-light: #fef2f2;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary-light: #2d0a0a;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

/* ===== Hero Section ===== */
.tool-hero {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tool-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* ===== Main Layout ===== */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ===== Calculator Card ===== */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

/* Recording options */
.rec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.rec-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.rec-checkbox:hover {
  background: var(--primary-light);
}
.rec-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ef4444;
}

/* Buttons */
.rec-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc-btn {
  flex: 1;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.calc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.calc-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}
.stop-btn {
  background: #334155;
  background: linear-gradient(135deg, #475569, #1e293b);
}
.stop-btn:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Recording status */
.rec-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: #fee2e2;
  padding: 0.75rem 1rem;
  border-radius: 40px;
  margin-top: 0.8rem;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
}
html[data-theme="dark"] .rec-status {
  background: #2d0a0a;
  color: #fca5a5;
}
.rec-dot {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
.rec-error {
  display: none;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Preview card */
.preview-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: none;
}
.preview-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#previewVideo {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin-bottom: 1rem;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.download-btn:hover {
  background: #dc2626;
  color: white;
}

/* Feature pills */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-pill {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.feature-pill i {
  font-size: 1.4rem;
  color: var(--primary);
}
.feature-pill div strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.feature-pill div span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Content Section (FAQ, steps, etc.) */
.content-section {
  margin-top: 2rem;
}
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #ef4444;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}
.related-list {
  list-style: none;
  padding: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.related-list a:hover { color: var(--primary); }
.related-list a::before {
  content: "→";
  color: #ef4444;
  font-weight: 700;
}

/* Not supported warning */
.not-supported {
  display: none;
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.5rem;
}