/* Hero + tool – centered card on soft blue background */

.hero {
  padding: 48px 0 40px;
  min-height: calc(100vh - 130px); /* header + footer approx */
  display: flex;
  align-items: flex-start;
}

.hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Main card */

.hero__tool {
  width: 100%;
  max-width: 720px;              /* wide card like PDFGO */
  display: flex;
  justify-content: center;
}

.tool-card {
  width: 100%;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.tool-card__body {
  padding: 32px 32px 24px;
}

/* Title + subtitle */

.hero__title {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.hero__subtitle {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* Small text under card */

.hero__small-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Info row under the tool */

.hero__info-row {
  width: 100%;
  max-width: 880px;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero__info-block {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  padding: 14px 16px;
  font-size: 0.86rem;
}

.hero__info-block h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.hero__info-block p,
.hero__info-block li {
  color: var(--text-muted);
}

.hero__info-block ol,
.hero__info-block ul {
  margin: 0;
  padding-left: 18px;
}

.hero__info-block li + li {
  margin-top: 2px;
}

/* Dropzone */

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  margin-bottom: 18px;
  margin-top: 4px;
  border-radius: 22px;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  background: #f9fbff;
  padding: 40px 24px;
  cursor: pointer;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal),
    background var(--transition-normal);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

/* “Illustration feel” just with icon + shapes */
.dropzone__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
}

.dropzone__text strong {
  font-size: 1rem;
}

.dropzone__text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dropzone:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  background: #f1f5ff;
}

.dropzone--dragover {
  border-style: solid;
  border-color: var(--accent);
  background: #e0ecff;
}

/* Tool content */

.tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

/* Preview list */

.preview-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 4px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.preview-list::-webkit-scrollbar {
  width: 6px;
}

.preview-list::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.15);
}

.preview-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

.preview-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.preview-list__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.preview-list__thumb {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.preview-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-list__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-list__name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text);
}

.preview-list__size {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.preview-list__remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.preview-list__remove:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #111827;
}

/* Status & result */

.status {
  margin-top: 12px;
  font-size: 0.8rem;
}

.status__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.status__bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(229, 231, 235, 0.9);
  overflow: hidden;
}

.status__bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  transition: width 0.14s linear;
}

.result {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.error {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: #991b1b;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 800px) {
  .tool-card__body {
    padding: 24px 18px 18px;
  }

  .hero__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
    min-height: calc(100vh - 110px);
  }

  .tool-card__body {
    padding-inline: 16px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__info-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
