/* =============================================
   Strictly Canvas Uploader — Styles
   ============================================= */

.scu-wrap {
    margin: 24px 0;
    font-family: inherit;
}

/* ── Header ── */
.scu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.scu-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.scu-size-badge {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* ── Drop Zone ── */
.scu-dropzone {
    position: relative;
    border: 2px dashed #bbb;
    border-radius: 10px;
    background: #fafafa;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.scu-dropzone:hover,
.scu-dropzone.scu-drag-over {
    border-color: #7a3e8e;
    background: #f7f0fb;
}
.scu-dropzone-inner { pointer-events: none; }
.scu-upload-icon {
    width: 44px;
    height: 44px;
    color: #aaa;
    margin-bottom: 10px;
    transition: color .2s;
}
.scu-dropzone:hover .scu-upload-icon,
.scu-dropzone.scu-drag-over .scu-upload-icon { color: #7a3e8e; }
.scu-drop-text  { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: #444; }
.scu-drop-sub   { margin: 0; font-size: 12px; color: #999; }
.scu-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }

/* ── Progress ── */
.scu-progress { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.scu-progress-bar { flex: 1; height: 6px; border-radius: 99px; background: #e5e5e5; overflow: hidden; }
.scu-progress-fill { height: 100%; width: 0%; background: #7a3e8e; border-radius: 99px; transition: width .2s; }
#scu-progress-text { font-size: 13px; color: #666; white-space: nowrap; }

/* ── DPI Status ── */
.scu-dpi-status { margin-top: 10px; padding: 10px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.scu-dpi-ok   { background: #edfaf1; border: 1px solid #b2dfcc; color: #1d6b3b; }
.scu-dpi-warn { background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00; }

/* ── Preview Wrap ── */
.scu-preview-wrap { margin-top: 20px; }
.scu-preview-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin: 0 0 8px;
}

/* ── Editor Hint ── */
.scu-editor-hint {
    display: none;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.scu-editor-hint svg { flex-shrink: 0; }

/* ── Zoom Controls ── */
.scu-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.scu-zoom-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #444;
    transition: border-color .15s, color .15s, background .15s;
    padding: 0;
}
.scu-zoom-btn:hover { border-color: #7a3e8e; color: #7a3e8e; background: #f7f0fb; }
.scu-zoom-label { font-size: 12px; color: #888; margin-left: 4px; }

/* ── Canvas Frame — Single ── */
.scu-single-frame {
    display: inline-block;
    max-width: 100%;
}
.scu-canvas-wrapper {
    display: block;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 0 0 7px #e8dfd0,
        0 0 0 9px #c0a882,
        0 8px 28px rgba(0,0,0,.32);
    line-height: 0;
    user-select: none;
}
.scu-canvas-wrapper canvas {
    display: block;
    touch-action: none;
}

/* ── Canvas Frame — Triple ── */
.scu-triple-frame {
    display: flex;
    gap: 12px;
    max-width: 100%;
    align-items: flex-start;
}
.scu-panel-wrapper {
    flex: 1;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 0 0 6px #e8dfd0,
        0 0 0 8px #c0a882,
        0 6px 20px rgba(0,0,0,.28);
    line-height: 0;
    user-select: none;
}
.scu-panel-wrapper canvas {
    display: block;
    width: 100%;
    touch-action: none;
}
.scu-triple-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #777;
    font-style: italic;
}

/* ── Preview Actions ── */
.scu-preview-actions { margin-top: 16px; }
.scu-btn-secondary {
    background: none;
    border: 1px solid #bbb;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    transition: border-color .15s, color .15s;
}
.scu-btn-secondary:hover { border-color: #7a3e8e; color: #7a3e8e; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .scu-triple-frame { gap: 7px; }
    .scu-zoom-controls { flex-wrap: wrap; }
}
