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

/* --- Page Size Selection Cards --- */
.putjpd-page-row {
    margin-bottom: 16px;
}

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

.putjpd-page-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.putjpd-page-card:hover {
    border-color: #ff4d00;
    background: #fff5f0;
}

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

.putjpd-page-card .putjpd-page-icon {
    width: 40px;
    height: 52px;
    margin: 0 auto 8px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease;
}

.putjpd-page-card.active .putjpd-page-icon {
    border-color: #ff4d00;
}

.putjpd-page-card .putjpd-page-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
}

.putjpd-page-card .putjpd-page-dims {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 2px;
}

/* --- Orientation Selection --- */
.putjpd-orient-row {
    margin-bottom: 16px;
}

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

.putjpd-orient-cards {
    display: flex;
    gap: 10px;
}

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

.putjpd-orient-card:hover {
    border-color: #ff4d00;
    background: #fff5f0;
}

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

.putjpd-orient-card .putjpd-orient-icon {
    margin: 0 auto 6px;
}

.putjpd-orient-card .putjpd-orient-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a2e;
}

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

.putjpd-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;
}

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

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

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

/* --- Preview Card (shared styles now handled by image-compress-styles.css attribute selectors) --- */

/* --- PDF Icon in Preview --- */
.putjpd-preview-pdf-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.putjpd-preview-pdf-icon .putjpd-preview-icon-svg {
    width: 48px;
    height: 48px;
    color: #dc2626;
}

.putjpd-preview-pdf-ext {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.05em;
}

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

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

/* --- Thumb --- */
.putjpd-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) {
    .putjpd-actions {
        flex-direction: column;
    }

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

    .putjpd-page-cards {
        flex-direction: column;
    }

    .putjpd-orient-cards {
        flex-direction: column;
    }
}
