/* ============================================================
   PUTE Image Converter Shared Styles
   Used by all image conversion tools in Batch 5.
   Extends image-compress-styles.css design system.
   ============================================================ */

/* --- Format Selection Cards --- */
.putcnv-format-row {
    margin-bottom: 16px;
}

.putcnv-format-row label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.putcnv-format-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.putcnv-format-card {
    flex: 1;
    min-width: 90px;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.putcnv-format-card:hover {
    border-color: #ff4d00;
    background: #fff5f0;
}

.putcnv-format-card.active {
    border-color: #ff4d00;
    background: linear-gradient(135deg, #fff5f0 0%, #ffecd8 100%);
    box-shadow: 0 4px 16px rgba(255, 77, 0, 0.15);
}

.putcnv-format-card .putcnv-format-icon {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff4d00;
    margin-bottom: 4px;
}

.putcnv-format-card .putcnv-format-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
}

.putcnv-format-card .putcnv-format-desc {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 2px;
}

/* --- Quality Row (reuse putic prefix from compress styles) --- */
.putic-quality-row {
    margin-bottom: 16px;
}

.putic-quality-row label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.putic-quality-row label strong {
    color: #ff4d00;
    font-size: 1.1rem;
}

.putic-quality-row .putic-quality-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.putic-quality-row .putic-slider-wrap {
    flex: 1;
    min-width: 0;
}

.putic-quality-row .putic-quality-estimate {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.85rem;
    min-width: 140px;
}

.putic-quality-estimate .putic-est-size {
    color: #ff4d00;
    font-weight: 500;
}

.putic-quality-estimate .putic-est-dim {
    color: #000;
    font-weight: 500;
}

.putic-quality-estimate .dashicons {
    color: #6b7280;
}

/* --- Convert Button --- */
.putcnv-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.putcnv-convert-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff1744 0%, #ff4d00 40%, #ff8c00 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 77, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.putcnv-convert-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 77, 0, 0.45);
}

.putcnv-convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.putcnv-convert-btn .dashicons {
    font-size: 1.1rem;
    width: 22px;
    height: 22px;
}

/* --- Preview Card (now handled by image-compress-styles.css attribute selectors) --- */
    color: #6b7280;
}

/* --- Result Reduction Badge --- */
.putcnv-result-reduction {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

.putcnv-result-reduction.positive {
    background: #d1fae5;
    color: #059669;
}

.putcnv-result-reduction.negative {
    background: #fef3c7;
    color: #d97706;
}

.putcnv-result-reduction.neutral {
    background: #e5e7eb;
    color: #6b7280;
}

/* --- Thumb --- */
.putcnv-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .putcnv-actions {
        flex-direction: column;
    }

    .putcnv-convert-btn {
        width: 100%;
    }

    .putcnv-format-cards {
        flex-direction: column;
    }
}

/* --- New Option Rows --- */
.putic-resize-row,
.putic-metadata-row,
.putic-filename-row,
.putic-dpi-row,
.putic-transparency-row {
    margin-bottom: 16px;
}

.putic-resize-row label,
.putic-metadata-row label,
.putic-filename-row label,
.putic-dpi-row label,
.putic-transparency-row label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.putic-resize-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.putic-resize-input {
    flex: 1;
    min-width: 120px;
}

.putic-resize-input label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.putic-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1a1a2e;
    min-width: 220px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.putic-input:focus {
    outline: none;
    border-color: var(--st-primary, #ff4d00);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.08);
}

.putic-input::placeholder {
    color: #9ca3af;
}

.putic-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1a1a2e;
    min-width: 220px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.putic-select:focus {
    outline: none;
    border-color: var(--st-primary, #ff4d00);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.08);
}

.putic-color-input {
    width: 48px;
    height: 38px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.putic-color-input:focus {
    outline: none;
    border-color: var(--st-primary, #ff4d00);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.08);
}

.putic-aspect-row {
    margin-top: 8px;
}

.putic-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.putic-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff4d00;
    cursor: pointer;
}

.putic-filename-row .putic-input {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.85rem;
}

.putic-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
}

.putic-dpi-row .putic-input {
    width: auto;
}

.putic-transparency-row .putic-checkbox-label {
    font-weight: 500;
}

/* --- Options Row (DPI + Filename side by side) --- */
.putic-options-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.putic-options-row .putic-dpi-row,
.putic-options-row .putic-filename-row {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.putic-input-sm {
    max-width: 120px;
}

/* --- File Info Input --- */
.putic-inputs .putic-input,
.putic-dpi-row .putic-input {
    max-width: 140px;
}
