/* shared.css — MergePDFOnlineFree.com */
:root {
  --bg: #0D0F0E;
  --surface: #141716;
  --surface2: #1C1F1D;
  --border: #272B28;
  --green: #4AE68A;
  --green-dim: #2A8C52;
  --text: #E8EDE9;
  --muted: #6B7568;
  --muted2: #4A5047;
  --white: #F0F5F1;
  --red: #E85D4A;
  --amber: #E8A84A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}

.nav-logo .dot { color: var(--green); }

.nav-tools { display: flex; gap: 4px; }

.nav-link {
  font-size: 0.8rem; font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.18s;
}

.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--green); background: rgba(74,230,138,0.07); }

/* TOOL HERO */
.tool-hero {
  padding: 56px 40px 40px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.tool-hero-text h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.tool-hero-text p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
}

.privacy-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  background: rgba(74,230,138,0.06);
  padding: 5px 14px;
  border-radius: 100px;
  margin-top: 16px;
}

/* WORKSPACE */
.workspace {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* DROP ZONE */
.drop-zone {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--surface2);
}

.drop-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.drop-zone h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}

.drop-zone p { font-size: 0.83rem; color: var(--muted); }

.btn-primary {
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

/* FILE LIST */
.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.file-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.22s ease forwards;
  cursor: grab;
  user-select: none;
  transition: border-color 0.2s;
}

.file-item:hover { border-color: #3A3F3C; }
.file-item.dragging { opacity: 0.35; border-style: dashed; }
.file-item.drag-target { border-color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-thumb {
  width: 34px; height: 42px;
  background: var(--surface2);
  border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 5px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--border);
}

.file-thumb::before {
  content: '';
  position: absolute; top: 0; right: 0;
  border: 6px solid transparent;
  border-top-color: var(--bg);
  border-right-color: var(--bg);
}

.file-thumb span { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.05em; }

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.file-meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.drag-handle { color: var(--muted2); padding: 4px; cursor: grab; }

.btn-icon {
  background: none; border: none;
  cursor: pointer; color: var(--muted2);
  transition: color 0.18s; padding: 4px;
  line-height: 0;
  border-radius: 4px;
}

.btn-icon:hover { color: var(--red); }

/* ACTION BAR */
.action-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.action-info strong { font-size: 1rem; font-weight: 700; color: var(--white); display: block; }
.action-info span { font-size: 0.78rem; color: var(--muted); }

/* PROGRESS */
.progress-wrap { margin-top: 14px; display: none; }
.progress-wrap.visible { display: block; }
.progress-track { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s ease; }
.progress-text { font-size: 0.78rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* SUCCESS */
.success-card {
  background: var(--surface);
  border: 1px solid var(--green-dim);
  border-radius: 12px;
  padding: 24px 28px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  animation: fadeUp 0.3s ease forwards;
}
.success-card.visible { display: flex; }

.success-icon {
  width: 40px; height: 40px;
  border-radius: 50%; background: rgba(74,230,138,0.15);
  border: 1px solid var(--green-dim);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.success-body { display: flex; align-items: center; gap: 16px; }
.success-text strong { font-size: 0.95rem; font-weight: 700; color: var(--white); display: block; }
.success-text span { font-size: 0.78rem; color: var(--muted); }

.success-actions { display: flex; gap: 10px; }

.btn-download {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  transition: filter 0.18s;
  white-space: nowrap;
}

.btn-download:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ADD MORE */
.btn-add-more {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 13px 20px;
  background: transparent;
  color: var(--muted);
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem; font-weight: 400;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.18s;
  text-align: left;
}
.btn-add-more:hover { border-color: var(--accent); color: var(--accent); }

/* AD SLOT */
.ad-slot {
  margin: 0 auto 40px;
  max-width: 960px;
  padding: 0 40px;
}

.ad-inner {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 24px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-tools { display: none; }
  .tool-hero { flex-direction: column; padding: 40px 24px 24px; }
  .workspace { padding: 0 24px 60px; }
  .action-bar { flex-direction: column; text-align: center; }
  .success-card { flex-direction: column; }
  .success-body { flex-direction: column; text-align: center; }
  .success-actions { justify-content: center; flex-wrap: wrap; }
  .ad-slot { padding: 0 24px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
</style>
