/* ═══════════════════════════════════════
   PDF MERGER — Page-specific styles
   Inherits variables from filecraftyhub.css
   ═══════════════════════════════════════ */

/* ── PAGE HERO ── */
.tool-hero {
  background: linear-gradient(160deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
  padding: 36px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -100px; right: -80px;
  pointer-events: none;
}

.tool-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tool-hero-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}

.tool-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
  text-align: left;
}

.tool-hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  margin-top: 4px;
}

/* reuse trust-pills from global */
.tool-hero .trust-pills { justify-content: center; }
.tool-hero .trust-pills span {
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22);
}

/* ── MERGER WRAPPER ── */
.merger-container {
  padding-top: 28px;
  padding-bottom: 48px;
}

/* ── MAIN CARD ── */
.merger-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  padding: 28px 24px;
  border: 1.5px solid #e2e8f0;
}

/* ── DROP ZONE ── */
.drop-zone {
  border: 2.5px dashed #94a3b8;
  border-radius: 16px;
  padding: 40px 20px 32px;
  text-align: center;
  background: #f8fafc;
  transition: border-color .25s, background .25s, transform .2s;
  cursor: pointer;
  margin-bottom: 20px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: scale(1.01);
}

.drop-icon {
  font-size: 2.8rem;
  color: #2563eb;
  opacity: .7;
  margin-bottom: 10px;
  line-height: 1;
}

.drop-zone h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.drop-zone p {
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}

.browse-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── FILE COUNT BADGE ── */
.file-count-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* ── FILE LIST ── */
.file-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
  padding-right: 2px;
}

.file-list::-webkit-scrollbar { width: 5px; }
.file-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ── FILE ITEM ── */
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: grab;
  transition: box-shadow .2s, border-color .2s, background .2s;
  user-select: none;
}

.file-item:active { cursor: grabbing; }

.file-item.dragging {
  opacity: .5;
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 20px rgba(37,99,235,.15);
}

.file-item.drag-over {
  border-color: #2563eb;
  background: #eff6ff;
}

.drag-handle {
  color: #94a3b8;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* file-info override — fix global display:none conflict */
.file-list .file-info {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}

.file-info strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.file-size {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

.file-item .remove-btn {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  padding: 0;
}

.file-item .remove-btn:hover { background: #ef4444; color: #fff; }

/* ── ACTIONS ── */
.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 4px;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.btn-secondary:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

/* ── STATUS ── */
.status {
  padding: 14px 18px;
  border-radius: 12px;
  margin: 14px 0;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.status.success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.status.error   { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.status.info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ── DOWNLOAD SECTION ── */
.download-section {
  display: none;
  margin-top: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 18px;
  animation: fadeUp .3s ease;
}

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

.download-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.download-icon {
  font-size: 2rem;
  color: #16a34a;
  flex-shrink: 0;
}

.download-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #14532d;
  margin-bottom: 3px;
}

.auto-download-text {
  font-size: 0.78rem;
  color: #16a34a;
}

.download-btn {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s;
}

.download-btn:hover { background: #15803d; }

/* ── HOW IT WORKS ── */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 80px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.how-step span {
  font-size: 0.72rem;
  color: #64748b;
}

.how-arrow {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ── NAV: ALL TOOLS BUTTON ── */
.nav-all {
  background: rgba(255,255,255,.2) !important;
  font-weight: 700 !important;
}

/* ── MOBILE TWEAKS ── */
@media (max-width: 480px) {
  .merger-card { padding: 20px 16px; }
  .tool-hero-inner { flex-direction: column; gap: 10px; }
  .tool-hero-title { text-align: center; }
  .tool-hero-sub   { text-align: center; }
  .actions { grid-template-columns: 1fr 1fr; }
  .how-arrow { display: none; }
  .how-it-works { gap: 20px; }
}