/* ===============================
   HEIC TOOL PAGE CSS
   Fast + clean + no overflow
================================ */

/* helpers */
.hide { display:none !important; }

/* hero center tweak */
.hero-center { text-align:center; max-width:760px; margin:0 auto; }

/* tool card */
.tool-wrap {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
}

/* top controls */
.top-controls {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.left-actions { display:flex; gap:10px; }
.file-count { color:#475569; }

/* drop zone */
.drop-zone {
  margin-top: 10px;
  padding: 28px 18px;
  border-radius: 16px;
  border: 2px dashed rgba(11,118,255,0.20);
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  text-align:center;
  cursor:pointer;
}
.drop-zone:focus { outline: 2px solid rgba(11,118,255,0.25); outline-offset: 4px; }
.dz-title { margin:0 0 6px; font-size:16px; }
.dz-sub { margin:0; }

/* bottom controls */
.bottom-controls {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin-top:18px;
  align-items:end;
}
.control-group label {
  display:block;
  font-size:13px;
  font-weight:700;
  color:#334155;
  margin:0 0 6px;
}
.select-lg {
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #dbe4ff;
  background:#fff;
  font-size:14px;
}

/* convert button */
.convert-btn { height: 44px; }

/* zip row */
.zip-row {
  display:flex;
  justify-content:flex-end;
  margin-top: 14px;
}

/* progress */
.progress-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.progress-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:700;
  margin-bottom:10px;
}
.progress-right { display:flex; align-items:center; gap:10px; }
.progress-bar {
  width:100%;
  height: 14px;
  border-radius: 999px;
  background:#e5edff;
  overflow:hidden;
}
#progressFill {
  width:0%;
  height:100%;
  background: linear-gradient(90deg, #0b76ff, #2563eb);
  transition: width .28s ease;
}
.spinner {
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(37,99,235,.25);
  border-top-color:#2563eb;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* results */
.results { margin-top: 18px; }
.results-title { margin: 0 0 10px; }
.results-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width:900px){
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:560px){
  .results-grid { grid-template-columns: 1fr; }
}

/* result card */
.result-card {
  background:#fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.result-card img {
  width:100%;
  height:160px;
  object-fit:contain;
  border-radius: 12px;
  background:#f3f7ff;
}
.result-name { font-weight:800; font-size:13px; word-break:break-word; }
.result-meta { font-size:13px; color:#475569; }
.result-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* SEO section */
.seo-section { margin-top: 42px; }
.seo-grid {
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width:900px){
  .seo-grid { grid-template-columns: 1fr; }
}
.seo-content h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}
.seo-content ul,
.seo-content ol {
  margin: 0 0 8px;
  padding-left: 18px;
}
.seo-content li {
  margin-bottom: 8px;
  color:#334155;
}

/* compare box */
.compare {
  margin-top: 12px;
  border: 1px solid #e6eefb;
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}
.compare-row {
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #eef4ff;
}
.compare-row:first-child { border-top:none; }
.compare-left { color:#475569; }
.compare-right { color:#0f172a; }

/* right visual card */
.visual-card {
  background:#fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  position: sticky;
  top: 92px;
}
@media (max-width:900px){
  .visual-card { position: static; }
}
.visual-card h3 { margin: 0 0 10px; }
.visual-card ul { margin:0; padding-left:18px; }
.visual-card li { margin-bottom: 8px; color:#334155; }

.mini-cta { margin-top: 14px; }
.mini-cta .btn { width:100%; }
.mini-cta .small { margin-top: 8px; text-align:center; }
