/* ==========================================================================
   Image Metadata Viewer - scoped styles (.pimv-*)
   Read-only inspector + privacy risk summary. Uses --pute-* design tokens.
   ========================================================================== */

.pimv-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 20px;
}

/* Preview + export card */
.pimv-preview-card {
    background: var(--pute-white, #ffffff);
    border: 1px solid var(--pute-border, #e5e7eb);
    border-radius: 16px;
    padding: 16px;
}

.pimv-preview-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    background: #111827;
    cursor: zoom-in;
    margin-bottom: 16px;
}

.pimv-export-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pimv-export-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pute-text, #2d2d3a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pimv-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pimv-btn-group .pute-btn {
    flex: 1;
    min-width: 70px;
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Privacy summary */
.pimv-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pimv-privacy-card,
.pimv-data-card {
    background: var(--pute-white, #ffffff);
    border: 1px solid var(--pute-border, #e5e7eb);
    border-radius: 16px;
    padding: 20px;
}

.pimv-privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pimv-privacy-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pute-secondary, #1a1a2e);
}

.pimv-privacy-title .pute-svg-icon {
    color: var(--pute-primary, #ff4d00);
}

.pimv-risk-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}

.pimv-risk-badge--pending {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--pute-border, #e5e7eb);
}

.pimv-risk-badge--high {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pimv-risk-badge--low {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pimv-privacy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pimv-privacy-item {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pimv-privacy-item strong {
    font-weight: 700;
}

.pimv-privacy-item.pimv-risk {
    color: #b91c1c;
}

.pimv-privacy-item.pimv-safe {
    color: #15803d;
}

/* Metadata data tables */
.pimv-data-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pute-border, #e5e7eb);
    color: var(--pute-primary, #ff4d00);
}

.pimv-data-card h3 .pute-svg-icon {
    color: var(--pute-primary, #ff4d00);
}

.pimv-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pimv-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pimv-meta-label {
    font-size: 12px;
    color: var(--pute-text, #2d2d3a);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pimv-meta-label::after {
    content: ":";
}

.pimv-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d00;
    word-break: break-word;
}

/* Print chrome (hidden on screen; the full @media print rules are in the
   section template so they can be generated with the site name/URL/logo). */
.pimv-print-header {
    display: none;
}

/* Responsive */
@media (max-width: 868px) {
    .pimv-workspace {
        grid-template-columns: 1fr;
    }

    .pimv-preview-card img {
        max-height: 350px;
    }
}
