/**
 * PicDriver Frames to Timecode Calculator - Studio Stylesheet
 */

.timecode-display-card {
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(99, 102, 241, 0.12);
  margin-bottom: 28px;
}

.timecode-display-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
}

.tc-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tc-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.tc-status-pill.drop-frame {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.main-timecode-readout {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(99, 102, 241, 0.4), 0 0 50px rgba(99, 102, 241, 0.15);
  margin: 12px 0;
  user-select: all;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.tc-sep {
  color: var(--brand-primary);
  opacity: 0.85;
  margin: 0 2px;
}

.tc-sep.drop {
  color: #fbbf24;
}

.tc-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-secondary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tc-sec-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tc-sec-value {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

/* Tab Navigation for Modules */
.calc-nav-pills {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.calc-pill-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.calc-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.calc-pill-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Interactive Timeline Scrubber Card */
.timeline-scrubber-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.timeline-track-wrap {
  position: relative;
  width: 100%;
  margin: 16px 0;
}

.timeline-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: grab;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  border: 2px solid #ffffff;
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.step-btns-group {
  display: flex;
  gap: 6px;
}

.step-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Math Calculator Grid */
.tc-math-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .tc-math-row {
    grid-template-columns: 1fr;
  }
}

.math-operator-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
  width: 32px;
}

/* Presets & Quick Chips */
.duration-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.duration-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.duration-chip:hover {
  border-color: var(--brand-primary);
  color: #ffffff;
  background: rgba(99, 102, 241, 0.1);
}

/* EDL / Batch Table */
.edl-list-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: #a5b4fc;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}
