﻿/* ==========================================================================
   EXIF Remover - scoped styles (.pxr-*)
   Browser-side metadata stripper built on window.PutImageMetadata.
   Shared base (.putm-* / .putic-* / .putcnv-*) is provided by
   merge-tool-styles.css + image-compress-styles.css + image-converter-styles.css
   enqueued in the Batch 3 block. This file only extends them for the EXIF UX.
   ========================================================================== */

.pxr-section .putic-workspace {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Mode segmented control
   -------------------------------------------------------------------------- */

#pxr-strip-options .pxr-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

#pxr-strip-options .pxr-mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    border: 1.5px solid var(--pute-border, #e5e7eb);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

#pxr-strip-options .pxr-mode-card:hover {
    border-color: var(--pute-primary, #ff4d00);
}

#pxr-strip-options .pxr-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

#pxr-strip-options .pxr-mode-card:has(input:checked),
#pxr-strip-options .pxr-mode-card.pxr-mode-card-active {
    border-color: var(--pute-primary, #ff4d00);
    background: linear-gradient(160deg, #fff5ed 0%, #ffecd8 100%);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

#pxr-strip-options .pxr-mode-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
    color: var(--pute-primary, #ff4d00);
    margin-bottom: 2px;
}

#pxr-strip-options .pxr-mode-icon .pute-svg-icon {
    width: 18px;
    height: 18px;
}

#pxr-strip-options .pxr-mode-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#pxr-strip-options .pxr-mode-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--pute-secondary, #1a1a2e);
}

#pxr-strip-options .pxr-mode-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #ff1744 0%, #ff4d00 100%);
}

#pxr-strip-options .pxr-mode-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--pute-text, #2d2d3a);
}

/* --------------------------------------------------------------------------
   What's removed / what's kept — live summary boxes
   -------------------------------------------------------------------------- */

#pxr-strip-options .pxr-transparency {
    margin-bottom: 16px;
}

#pxr-strip-options .pxr-trans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#pxr-strip-options .pxr-trans-col {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid;
}

#pxr-strip-options .pxr-trans-col h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

#pxr-strip-options .pxr-trans-col h4 .pute-svg-icon {
    width: 15px;
    height: 15px;
}

#pxr-strip-options .pxr-trans-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#pxr-strip-options .pxr-trans-col li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--pute-text, #2d2d3a);
}

#pxr-strip-options .pxr-trans-col li .pute-svg-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Removed — status/warning tint, not an error state */
#pxr-strip-options .pxr-trans-remove {
    border-color: #fecaca;
    background: #fef2f2;
}

#pxr-strip-options .pxr-trans-remove h4 {
    color: #b91c1c;
}

#pxr-strip-options .pxr-trans-remove li .pute-svg-icon {
    color: #dc2626;
}

/* Preserved — safe tint, not a success toast */
#pxr-strip-options .pxr-trans-keep {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

#pxr-strip-options .pxr-trans-keep h4 {
    color: #15803d;
}

#pxr-strip-options .pxr-trans-keep li .pute-svg-icon {
    color: #16a34a;
}

/* --------------------------------------------------------------------------
   Advanced grouped checkboxes — 2-column group cards
   -------------------------------------------------------------------------- */

#pxr-strip-options .pxr-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pute-border, #e5e7eb);
}

#pxr-strip-options .pxr-group {
    padding: 14px 16px;
    background: var(--pute-bg, #f8f9fc);
    border: 1px solid var(--pute-border, #e5e7eb);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#pxr-strip-options .pxr-group-icc {
    grid-column: 1 / -1;
    background: #fffaf0;
    border-color: #fde68a;
}

#pxr-strip-options .pxr-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--pute-secondary, #1a1a2e);
    margin: 0 0 2px;
}

#pxr-strip-options .pxr-group-title .pute-svg-icon {
    width: 15px;
    height: 15px;
    color: var(--pute-primary, #ff4d00);
}

#pxr-strip-options .putic-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pute-text, #2d2d3a);
    font-weight: 500;
}

#pxr-strip-options .putic-check-item input[type="checkbox"] {
    accent-color: var(--pute-primary, #ff4d00);
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

#pxr-strip-options .pxr-group-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
}

/* --------------------------------------------------------------------------
   Output options — compact panel
   -------------------------------------------------------------------------- */

#pxr-output-options .pxr-opt-section {
    margin-bottom: 16px;
}

#pxr-output-options .pxr-opt-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pute-secondary, #1a1a2e);
    margin-bottom: 8px;
}

/* Format cards (reuse .putcnv-format-*) — compacted for this panel */
#pxr-output-options .putcnv-format-cards {
    margin-bottom: 8px;
}

#pxr-output-options .putcnv-format-card {
    padding: 10px 12px;
    min-width: 82px;
    border-radius: 10px;
}

#pxr-output-options .putcnv-format-card .putcnv-format-icon {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

#pxr-output-options .putcnv-format-card .putcnv-format-name {
    font-size: 0.72rem;
}

#pxr-output-options .putcnv-format-card .putcnv-format-desc {
    font-size: 0.64rem;
}

/* Hidden select kept as the JS source of truth */
#pxr-output-options .pxr-format-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#pxr-output-options .pxr-opt-note {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    font-style: normal;
}

#pxr-output-options .putic-quality-row {
    margin-bottom: 16px;
}

#pxr-output-options .putic-dpi-row {
    margin-bottom: 0;
}

#pxr-output-options .pxr-dpi-input-wrap .putic-input {
    max-width: 140px;
}

#pxr-output-options .pxr-dpi-disabled-hint {
    color: #b45309;
}

#pxr-output-options .putic-dpi-row.disabled .putic-input {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Work grid — files list (left) + preview (right) on desktop
   -------------------------------------------------------------------------- */

.pxr-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.pxr-work-grid .putm-files-list {
    margin-bottom: 0;
    min-width: 0;
}

/* Preview card — aspect-fit image, click to zoom via lightbox */
.pxr-preview {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid var(--pute-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
}

.pxr-preview img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.pxr-preview img:hover {
    transform: scale(1.01);
}

/* Thumbnails in the list — click to zoom too */
.pxr-thumb {
    cursor: zoom-in;
}

/* --------------------------------------------------------------------------
   Batch status — queued / processing / completed / failed chips
   -------------------------------------------------------------------------- */

.pxr-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pxr-status-queued {
    background: #f1f5f9;
    color: #64748b;
}

.pxr-status-processing {
    background: #fff7ed;
    color: #c2410c;
}

.pxr-status-completed {
    background: #ecfdf5;
    color: #047857;
}

.pxr-status-failed {
    background: #fef2f2;
    color: #b91c1c;
}

.pxr-batch-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pxr-batch-status > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 50px;
    background: #f8f9fc;
    border: 1px solid var(--pute-border, #e5e7eb);
    font-size: 12px;
    color: #6b7280;
}

.pxr-batch-status b {
    color: var(--pute-secondary, #1a1a2e);
}

/* --------------------------------------------------------------------------
   Privacy completion report
   -------------------------------------------------------------------------- */

.pxr-completion {
    margin: 16px 0;
    padding: 18px 20px;
    background: linear-gradient(160deg, #fff5ed 0%, #ffecd8 100%);
    border: 1.5px solid #ffd9b3;
    border-radius: 14px;
}

.pxr-completion-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--pute-secondary, #1a1a2e);
    margin: 0 0 12px;
}

.pxr-completion-head .pute-svg-icon {
    width: 16px;
    height: 16px;
    color: var(--pute-primary, #ff4d00);
}

.pxr-completion-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.pxr-completion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #374151;
}

.pxr-completion-row b {
    color: var(--pute-secondary, #1a1a2e);
    white-space: nowrap;
}

.pxr-completion-row-block {
    flex-wrap: wrap;
}

.pxr-completion-row-block > span {
    font-weight: 600;
}

.pxr-chip {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid var(--pute-border, #e5e7eb);
    font-size: 12px;
    font-weight: 700;
    color: var(--pute-secondary, #1a1a2e);
}

.pxr-chip-muted {
    color: #9ca3af;
    background: transparent;
    border-style: dashed;
}

.pxr-client-side {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 77, 0, 0.18);
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
}

.pxr-client-side .pute-svg-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #16a34a;
}

/* --------------------------------------------------------------------------
   Verification badge + before/after comparison block
   -------------------------------------------------------------------------- */

.pxr-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.pxr-verify .pute-svg-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pxr-verify-ok {
    color: #047857;
}

.pxr-verify-warn {
    color: #b45309;
}

.pxr-verify-muted {
    color: #6b7280;
    font-weight: 600;
}

.pxr-comparison {
    padding: 14px 18px;
    background: #f8f9fc;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

/* Original / Cleaned rows — side-by-side on desktop, stacked on mobile */
.pxr-section .putm-file-detail-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.pxr-cmp-head {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 10px;
}

.pxr-cmp-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pxr-cmp-box {
    padding: 12px 14px;
    border: 1.5px solid;
    border-radius: 10px;
}

.pxr-cmp-box-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pxr-cmp-box-head .pute-svg-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.pxr-cmp-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pxr-cmp-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #374151;
}

.pxr-cmp-item .pute-svg-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.pxr-cmp-none {
    color: #9ca3af;
    font-style: italic;
}

/* Removed box — red border, light red background, red icon */
.pxr-cmp-box.pxr-cmp-removed {
    border-color: #fca5a5;
    background: #fef2f2;
}

.pxr-cmp-box.pxr-cmp-removed .pxr-cmp-box-head,
.pxr-cmp-box.pxr-cmp-removed .pxr-cmp-item .pute-svg-icon {
    color: #dc2626;
}

/* Preserved box — green border, light green background, green icon */
.pxr-cmp-box.pxr-cmp-preserved {
    border-color: #86efac;
    background: #f0fdf4;
}

.pxr-cmp-box.pxr-cmp-preserved .pxr-cmp-box-head,
.pxr-cmp-box.pxr-cmp-preserved .pxr-cmp-item .pute-svg-icon {
    color: #16a34a;
}

/* --------------------------------------------------------------------------
   Warning / confirmation modal — compact centered footer
   -------------------------------------------------------------------------- */

#pxr-warning-overlay .putic-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 22px 22px;
}

#pxr-warning-overlay .putic-modal-footer .pute-btn {
    padding: 10px 22px;
    min-height: 42px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .pxr-work-grid {
        grid-template-columns: 1fr;
    }

    .pxr-section .putm-file-detail-rows {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pxr-preview {
        position: static;
        min-height: 0;
    }

    #pxr-strip-options .pxr-trans-grid {
        grid-template-columns: 1fr;
    }

    #pxr-strip-options .pxr-checkboxes {
        grid-template-columns: 1fr;
    }

    #pxr-strip-options .pxr-group-icc {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    #pxr-strip-options .pxr-mode-grid {
        grid-template-columns: 1fr;
    }

    #pxr-output-options .putcnv-format-cards {
        flex-direction: column;
    }

    .pxr-cmp-boxes {
        grid-template-columns: 1fr;
    }
}
