/* ── YT Chapters tool-specific styles ───────────────────────────────────── */

/* Hero accent */
.ytc-hero-icon {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

/* Card glow override — YouTube red */
.ytc-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 60, 60, 0.18) 0%, transparent 70%) !important;
}

/* Upload icon */
.ytc-upload-icon { background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%); }

/* Select button */
.ytc-select-btn { background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important; }
.ytc-select-btn:hover { background: linear-gradient(135deg, #ff5555 0%, #dd1111 100%) !important; }

/* File icon */
.ytc-file-icon { background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%); }

/* Analyze button */
.ytc-analyze-btn {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important;
}
.ytc-analyze-btn:hover {
  background: linear-gradient(135deg, #ff5555 0%, #dd1111 100%) !important;
}

/* Progress bar — red */
.cv-progress-fill { background: linear-gradient(90deg, #ff4444, #cc0000) !important; }

/* Step numbers */
.ytc-num { background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important; }

/* ── Result header ────────────────────────────────────────────────────── */
.ytc-result-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ytc-result-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.ytc-result-meta-wrap { flex: 1; min-width: 160px; }
.ytc-result-title { font-weight: 700; color: #fff; margin: 0 0 3px; font-size: 1rem; }
.ytc-result-meta  { font-size: .82rem; color: #aaa; margin: 0; }

.ytc-result-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

.ytc-btn-copy, .ytc-btn-dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.ytc-btn-copy {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: #fff;
}
.ytc-btn-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,60,60,.35); }
.ytc-btn-copy.copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.ytc-btn-dl {
  background: rgba(255,255,255,.08);
  color: #ddd;
  border: 1px solid rgba(255,255,255,.12);
}
.ytc-btn-dl:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Hint ─────────────────────────────────────────────────────────────── */
.ytc-hint {
  font-size: .83rem;
  color: #888;
  margin: 0 0 20px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  border-left: 3px solid rgba(255,60,60,.4);
}

/* ── Chapter list ─────────────────────────────────────────────────────── */
.ytc-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.ytc-chapter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .2s, background .2s;
}
.ytc-chapter-row:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,60,60,.3);
}
.ytc-chapter-row.dragging { opacity: .4; }

.ytc-chapter-num {
  font-size: .75rem;
  color: #666;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

.ytc-chapter-time {
  font-family: monospace;
  font-size: .88rem;
  color: #ff6666;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 44px;
}

.ytc-chapter-title {
  flex: 1;
  font-size: .95rem;
  color: #eee;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: text;
  transition: background .15s;
  min-width: 0;
}
.ytc-chapter-title:focus {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.ytc-chapter-del {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: #888;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ytc-chapter-del:hover {
  background: rgba(255,60,60,.15);
  border-color: rgba(255,60,60,.4);
  color: #ff6666;
}

/* ── Output box ───────────────────────────────────────────────────────── */
.ytc-output-wrap {
  margin-bottom: 20px;
}

.ytc-output-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #888;
  margin-bottom: 8px;
}

.ytc-output-box {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #ddd;
  font-family: monospace;
  font-size: .9rem;
  line-height: 1.9;
  padding: 16px 18px;
  resize: vertical;
  min-height: 160px;
  outline: none;
  transition: border-color .2s;
}
.ytc-output-box:focus { border-color: rgba(255,60,60,.4); }

/* ── Result footer ────────────────────────────────────────────────────── */
.ytc-result-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Guide section ────────────────────────────────────────────────────── */
.ytc-guide-section {
  padding: 64px 0;
  background: rgba(255,255,255,.015);
}
.ytc-guide-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.ytc-guide-section h2 {
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  margin: 0 0 36px;
}
.ytc-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.ytc-guide-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px 20px;
}
.ytc-guide-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ff4444;
  margin-bottom: 10px;
}
.ytc-guide-card h3 { font-size: .95rem; color: #fff; margin: 0 0 8px; }
.ytc-guide-card p  { font-size: .84rem; color: #aaa; margin: 0; line-height: 1.65; }
.ytc-guide-card code {
  background: rgba(255,255,255,.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .83em;
  color: #ff9999;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ytc-result-header  { flex-direction: column; }
  .ytc-result-actions { width: 100%; }
  .ytc-btn-copy, .ytc-btn-dl { flex: 1; justify-content: center; }
  .ytc-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .ytc-guide-grid { grid-template-columns: 1fr; }
}
