/* Document Converter Suite */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

.cv-page {
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}
.cv-hero { text-align: center; margin-bottom: 1.75rem; }
.cv-hero-sm { margin-bottom: 1.25rem; }
.cv-kicker {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 3px 10px; border-radius: 999px; margin-bottom: .55rem;
}
.cv-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; color: #0f172a; line-height: 1.15;
}
.cv-hero p {
  margin: .55rem auto 0; max-width: 560px;
  color: #64748b; font-size: .98rem; font-weight: 500;
}
.cv-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: #94a3b8; margin-bottom: 1rem;
}
.cv-breadcrumb a { color: #047857; text-decoration: none; font-weight: 700; }

.cv-section { margin-bottom: 2rem; }
.cv-section-head h2 {
  margin: 0 0 .85rem;
  font-size: 1.15rem; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: .45rem;
}
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cv-grid-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cv-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 24px -18px rgba(15,23,42,.28);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 128px;
}
.cv-card:hover {
  transform: translateY(-2px);
  border-color: #6ee7b7;
  box-shadow: 0 1px 0 #fff inset, 0 16px 30px -18px rgba(5,150,105,.35);
}
.cv-card h3 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 800; color: #064e3b; }
.cv-card p { margin: 0; flex: 1; font-size: 12px; color: #64748b; line-height: 1.45; }
.cv-card-cta { margin-top: .7rem; font-size: 12px; font-weight: 700; color: #059669; }

.cv-uploader {
  border: 1.5px dashed #a7f3d0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  position: relative;
}
.cv-uploader.is-drag {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.cv-uploader-inner h2 { margin: .35rem 0; font-size: 1.1rem; font-weight: 800; color: #064e3b; }
.cv-uploader-inner p { margin: 0 0 .85rem; font-size: 13px; color: #64748b; }
.cv-upload-icon {
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: #d1fae5; color: #047857; font-size: 1.2rem; font-weight: 800;
}
.cv-file-input { display: none; }

.cv-options {
  display: flex; align-items: center; gap: 10px;
  margin: 1rem 0 0; justify-content: center;
}
.cv-options label { font-size: 12px; font-weight: 700; color: #475569; }
.cv-options select {
  border: 1px solid #cbd5e1; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; background: #fff;
}

.cv-file-list {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 8px;
}
.cv-file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 8px 12px; font-size: 12px;
  box-shadow: 0 4px 12px -10px rgba(15,23,42,.3);
}
.cv-file-row.is-reorderable { cursor: grab; }
.cv-file-row.is-dragging { opacity: .55; }
.cv-file-row.is-drag-over { border-color: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.2); }
.cv-file-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv-drag-handle {
  color: #94a3b8; font-size: 14px; letter-spacing: -2px; user-select: none; flex-shrink: 0;
}
.cv-file-row strong { color: #0f172a; font-weight: 700; }
.cv-file-row span { color: #94a3b8; }
.cv-file-row button {
  border: none; background: #fef2f2; color: #b91c1c;
  border-radius: 999px; width: 24px; height: 24px; cursor: pointer; font-weight: 800;
}
.cv-stats-row { background: #f0fdf4; border-color: #bbf7d0 !important; }
.cv-stats-row em { color: #047857; font-style: normal; font-weight: 600; }

.cv-actions {
  display: flex; gap: 10px; justify-content: center; margin-top: 1.1rem;
}
.cv-btn-primary, .cv-btn-secondary, .cv-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.cv-btn-primary {
  padding: 10px 20px; color: #fff;
  background: linear-gradient(180deg, #10b981, #059669);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -12px rgba(5,150,105,.55);
}
.cv-btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cv-btn-primary:not(:disabled):hover { transform: translateY(-1px); }
.cv-btn-secondary {
  padding: 8px 14px; color: #047857; background: #fff;
  border: 1px solid #a7f3d0;
}
.cv-btn-ghost {
  padding: 10px 16px; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0;
}

.cv-progress { margin-top: 1.25rem; text-align: center; }
.cv-progress-bar {
  height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; max-width: 360px; margin: 0 auto .5rem;
}
.cv-progress-bar span {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, #10b981, #059669, #10b981);
  background-size: 200% 100%;
  animation: cvLoad 1.1s ease-in-out infinite;
  border-radius: 999px;
}
@keyframes cvLoad {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(280%); }
}
.cv-progress p { margin: 0; font-size: 12px; color: #64748b; font-weight: 600; }

.cv-results {
  margin-top: 1.5rem;
  background: linear-gradient(180deg, #fff, #f0fdf4);
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px -20px rgba(5,150,105,.4);
}
.cv-results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.cv-results-head h2 { margin: 0; font-size: 1rem; font-weight: 800; color: #064e3b; }
.cv-output-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cv-output-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px;
}
.cv-output-list a.cv-dl {
  padding: 6px 12px; border-radius: 999px; background: #059669; color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.cv-preview {
  margin-bottom: .85rem; border-radius: 12px; overflow: hidden;
  border: 1px solid #d1fae5; background: #fff; max-height: 360px;
}
.cv-preview img, .cv-preview iframe {
  display: block; width: 100%; max-height: 360px; object-fit: contain; border: 0;
}
.cv-preview pre {
  margin: 0; padding: 12px; font-size: 12px; max-height: 280px; overflow: auto; white-space: pre-wrap;
}
.cv-related { margin-top: 2.5rem; }
.cv-related h2 { margin: 0 0 .85rem; font-size: 1.05rem; font-weight: 800; color: #0f172a; }

@media (max-width: 900px) {
  .cv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cv-page {
    max-width: 100vw;
    overflow-x: hidden;
  }
  /* ──── Converter cards → horizontal carousel ──── */
  .cv-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 0.75rem 0.75rem;
    scrollbar-width: none;
  }
  .cv-grid::-webkit-scrollbar { display: none; }
  .cv-card {
    flex: 0 0 78%;
    min-width: 78%;
    scroll-snap-align: start;
  }
  .cv-grid-sm {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 0 0.75rem 0.5rem;
    scrollbar-width: none;
  }
  .cv-grid-sm::-webkit-scrollbar { display: none; }
  .cv-grid-sm > * {
    flex: 0 0 70%;
    min-width: 70%;
    scroll-snap-align: start;
  }
}

html.dark .cv-hero h1, html.dark .cv-section-head h2, html.dark .cv-related h2 { color: #f8fafc; }
html.dark .cv-card, html.dark .cv-results, html.dark .cv-file-row, html.dark .cv-output-list li {
  background: #1e293b; border-color: #334155;
}
html.dark .cv-card h3, html.dark .cv-results-head h2 { color: #ecfdf5; }
html.dark .cv-uploader { background: #0f172a; border-color: #334155; }

