/* =====================================================
   StreamCut Pro — style.css
   Supplemental styles for things Tailwind can't do
   easily inline or via config
   Theme: Fire Orange & Golden Amber (Matches Logo)
   ===================================================== */

/* Smooth scrolling */
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Selection ── */
::selection {
  background: rgba(249, 115, 22, 0.35);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #161b22; }
::-webkit-scrollbar-thumb { background: #3d444d; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* ── Format card radio toggle ── */
.format-option input[type="radio"]:checked + .format-card {
  border-color: #f97316;
  background-color: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4),
              inset 0 0 20px rgba(249, 115, 22, 0.06);
}

.format-card:hover {
  border-color: #fb923c;
  transform: translateY(-1px);
}

/* ── Timestamp input auto-formatting cursor ── */
#startTime, #endTime {
  caret-color: #f97316;
  letter-spacing: 0.15em;
}

/* ── URL input focus glow ── */
#urlInput:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25),
              0 0 20px rgba(249, 115, 22, 0.1);
}

/* ── Progress bar shimmer ── */
#progressBar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}

#progressBar { position: relative; overflow: hidden; }

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ── Embed container responsive ── */
#embedContainer iframe {
  border: none;
}

/* ── Button press ripple ── */
#createBtn:active,
#previewBtn:active {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

/* ── Platform badge icons ── */
.platform-yt   { color: #ff0000; }
.platform-tw   { color: #9146ff; }
.platform-x    { color: #e7e9ea; }

/* ── URL badge states ── */
.badge-ok  { color: #4ade80; }
.badge-err { color: #f87171; }

/* ── Card hover elevation ── */
.bg-surface-800 {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.bg-surface-800:hover {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12),
              0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Fade helpers ── */
.fade-hidden { opacity: 0; pointer-events: none; }
.fade-visible { opacity: 1; pointer-events: auto; }


/* =====================================================
   StreamCut Pro — Extended Styles (SEO / Ad / Legal)
   ===================================================== */

/* ── Ad Unit Container (Only visible when active ads are served) ── */
.ad-unit {
  display: block;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

/* Hide empty or placeholder ad units completely so no blank space appears */
.ad-unit:empty,
.ad-unit:not(:has(ins.adsbygoogle iframe)),
.ad-unit:has(ins.adsbygoogle[data-ad-client*="XXXXX"]),
.ad-unit:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

/* ── FAQ (Direct display) ── */
.faq-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.faq-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.5rem 0;
}

.breadcrumb a {
  color: #fb923c;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #4b5563;
  margin: 0 0.1rem;
}

/* ── Content Sections ── */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid #3d444d;  /* surface-700 */
}

.content-section:first-of-type {
  border-top: none;
}

/* ── Legal Page Content ── */
.legal-content,
.prose-legal {
  max-width: 68ch;      /* ~prose width */
  line-height: 1.75;    /* relaxed */
  color: #d1d5db;       /* text-gray-300 */
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-content h2,
.prose-legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3,
.prose-legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e6edf3;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.prose-legal p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.legal-content ul,
.prose-legal ul,
.legal-content ol,
.prose-legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li,
.prose-legal li {
  margin-bottom: 0.4rem;
}

.legal-content a,
.prose-legal a {
  color: #fb923c;
  text-decoration: underline;
}

.legal-content a:hover,
.prose-legal a:hover {
  color: #f59e0b;
}
