/* app/assets/stylesheets/conversion.css */

/* ── Page wrapper ─────────────────────────────── */
.cv-page {
  background: #000000;
  border: 2px solid gold;
  border-radius: 20px;
  padding: 30px;
  color: #ffffff;
}

.cv-page h1 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  color: #ffffff;
  border: none;
}

/* ── Table ────────────────────────────────────── */
.cv-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 4px;
}

.cv-table th {
  text-align: left;
  padding: 10px;
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid gold;
}

.cv-table td {
  padding: 10px;
  vertical-align: middle;
}

.cv-table tbody tr {
  border-bottom: 1px solid #222;
  transition: background 0.1s ease;
}

.cv-table tbody tr:hover {
  background: #0a0a0a;
}

/* ── Inline code ──────────────────────────────── */
.cv-code {
  background: #1a1a1a;
  padding: 3px 7px;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 11px;
  font-family: monospace;
  border: 1px solid #333;
}

/* ── Pills ────────────────────────────────────── */
.cv-tag-pill {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cv-trigger-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 1px;
}

.cv-status-pill {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Matched-by text ──────────────────────────── */
.cv-matched {
  font-weight: 700;
  font-size: 13px;
}
.cv-matched--promo { color: #25d366; }
.cv-matched--other { color: #666; }

/* ── Muted / timestamp ────────────────────────── */
.cv-muted { color: #444; }
.cv-timestamp { font-size: 12px; color: #888; }

/* ── Source URL cell ──────────────────────────── */
.cv-source {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-source a {
  color: gold;
  text-decoration: none;
  font-size: 12px;
}
.cv-source a:hover { text-decoration: underline; }

/* ── Links ────────────────────────────────────── */
.cv-link {
  color: gold;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.cv-link:hover { text-decoration: underline; }

.cv-link--danger {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.cv-link--danger:hover { text-decoration: underline; }

.cv-link--back {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  margin-top: 20px;
}
.cv-link--back:hover { color: gold; }

/* ── Gold button ──────────────────────────────── */
.cv-btn {
  display: inline-block;
  padding: 9px 20px;
  background: gold;
  color: #000000;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 16px;
}
.cv-btn:hover { opacity: 0.88; }

/* ── Detail table (show pages) ────────────────── */
.cv-detail {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
}
.cv-detail th {
  background: #111;
  text-align: left;
  padding: 10px 14px;
  width: 160px;
  color: gold;
  font-size: 13px;
  border: 1px solid #222;
}
.cv-detail td {
  padding: 10px 14px;
  border: 1px solid #222;
  color: #e2e8f0;
  font-size: 13px;
}

/* ── Script box ───────────────────────────────── */
.cv-script-box {
  background: #000;
  border: 2px solid gold;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}

.cv-script-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cv-script-title {
  color: gold;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.cv-copy-btn {
  background: gold;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: opacity 0.15s ease;
}
.cv-copy-btn:hover { opacity: 0.88; }

.cv-script-pre {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 18px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ── Click card ───────────────────────────────── */
.cv-card {
  background: #000;
  border: 2px solid gold;
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.cv-card p { margin: 6px 0; font-size: 14px; }
.cv-card strong { color: gold; }

.cv-card-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #222;
}

/* ── Reported status indicator ─────────────────── */
.cv-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}
.cv-report--ok      { background: rgba(37, 211, 102, 0.15); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.4); }
.cv-report--pending { background: rgba(239, 68, 68, 0.15);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); font-size: 8px; }
.cv-report--na      { background: transparent; color: #444; border: 1px solid #333; }
