/**
 * Upload Layout — shared "select / drop an image" screen
 * ─────────────────────────────────────────────────────────────────────
 * Used by every image tool EXCEPT Compress Image (which keeps its own
 * homepage hero design — see hero.css). This is the exact drop-page look
 * Crop Image and Image Size Increaser already had; it now lives in one
 * file so a new tool only ever needs one <link> to match, no per-tool
 * copy/paste CSS.
 *
 * Scoped entirely by the .upload-layout / .upload-layout__* classes —
 * it does not depend on any per-tool #app-id, so it can be dropped into
 * any tool page as-is.
 *
 * Include once per tool page, after includes/head.php:
 *   <link rel="stylesheet" href="/assets/css/upload-layout.css?v=<?php echo filemtime($_SERVER['DOCUMENT_ROOT'].'/assets/css/upload-layout.css'); ?>">
 */

.upload-layout,
.upload-layout__empty-state{
  font-family:'DM Sans',sans-serif;
}
.upload-layout *,
.upload-layout *::before,
.upload-layout *::after{box-sizing:border-box}
.upload-layout button,
.upload-layout input{font-family:inherit}

/* ── Noscript fallback ── */
.upload-layout__empty-state{
  min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:60px 20px;text-align:center;color:#343a40;
}
.upload-layout__empty-state .hero-icon{
  width:72px;height:72px;background:#e8294f;border-radius:20px;
  display:flex;align-items:center;justify-content:center;margin-bottom:20px;
  box-shadow:0 8px 24px rgba(232,41,79,.25)
}
.upload-layout__empty-state .hero-icon i{font-size:36px;color:#fff}
.upload-layout__empty-state h1{font-size:clamp(1.8rem,5vw,2.8rem);font-weight:900;margin-bottom:10px}
.upload-layout__empty-state p{font-size:1rem;color:#6c757d}

/* ── Breadcrumb ── */
.upload-layout__breadcrumb{
  display:flex;gap:8px;align-items:center;justify-content:center;
  margin-bottom:20px;font-size:.82rem;color:#6c757d;
}
.upload-layout__breadcrumb a{color:#4338ca;font-weight:700;text-decoration:none}
.upload-layout__breadcrumb a:hover{text-decoration:underline}

/* ══════════════════════════════════════
   DROP PAGE — iLoveIMG-style layout
══════════════════════════════════════ */
.upload-layout{
  min-height:calc(100vh - 60px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:20px 24px 50px;
  background:#f3f4f8;
  text-align:center;
  color:#343a40;
}

.upload-layout h1{
  font-size:clamp(2.1rem,5vw,3.25rem);
  font-weight:800;
  letter-spacing:-.03em;
  color:#2d3142;
  margin:0 0 18px;
  line-height:1.15;
}

/* Description with blue format links */
.upload-layout .drop-desc{
  font-size:clamp(1rem,2.2vw,1.2rem);
  color:#4a4f63;
  line-height:1.55;
  max-width:640px;
  margin:0 auto;
  font-weight:500;
}
.upload-layout .drop-desc a{
  color:#4a7dff;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1.5px;
}
.upload-layout .drop-desc a:hover{color:#2f5fe0}
.upload-layout .drop-desc-sub{
  font-size:clamp(.95rem,2vw,1.15rem);
  color:#4a4f63;
  margin:6px auto 42px;
  max-width:640px;
  line-height:1.5;
  font-weight:500;
}

/* Drop zone = transparent hit area only (no box, no border) */
.upload-layout .drop-zone{
  position:relative;
  width:auto;
  max-width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  cursor:pointer;
  border:none;
  background:transparent;
  padding:0;
  border-radius:0;
  box-shadow:none;
}
.upload-layout .drop-zone input[type=file]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  z-index:5;
}

/* CTA row + main blue button — like iLoveIMG */
.upload-layout .cta-row{
  display:flex;
  align-items:center;
  justify-content:center;
}
.upload-layout .btn-select{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:340px;
  height:68px;
  padding:0 56px;
  background:#466fff;
  color:#fff;
  border-radius:16px;
  font-weight:700;
  font-size:1.35rem;
  letter-spacing:.01em;
  border:none;
  margin:0;
  box-shadow:0 10px 28px rgba(108,140,255,.35);
  transition:background .15s,box-shadow .15s,transform .15s;
}
.upload-layout .drop-zone:hover .btn-select,
.upload-layout .drop-zone.dragover .btn-select{
  background:#1e56e8;
  box-shadow:0 12px 32px rgba(90,122,240,.4);
  transform:translateY(-1px);
}

/* "or drop image here" */
.upload-layout .drop-hint{
  margin:18px 0 0;
  font-size:.95rem;
  color:#6b7085;
  font-weight:500;
  pointer-events:none;
}

@media(max-width:768px){
  .upload-layout{
    min-height:calc(100vh - 60px);
    justify-content:flex-start;
    padding:10px 16px 40px;
  }
  .upload-layout .btn-select{
    width:92vw;
    max-width:380px;
    min-width:0;
  }
}
@media(max-width:480px){
  .upload-layout h1{font-size:1.85rem}
  .upload-layout .btn-select{width:100%;min-width:0;border-radius:14px}
  .upload-layout__breadcrumb{margin-bottom:4px}
}
