/* Image Compressor — Tools Joyboy */

.image-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--color-border, #e2e8f0);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--color-bg-subtle, #f8fafc);
}

.image-drop-zone.is-dragover {
    border-color: var(--color-primary, #2563eb);
    background: #eff6ff;
}

.image-drop-zone i {
    font-size: 2.5rem;
    color: var(--color-text-muted, #94a3b8);
}

.image-drop-zone p { margin: 0; color: var(--color-text-muted, #64748b); }
.drop-zone-hint { font-size: .85rem; }
.drop-zone-formats { font-size: .78rem; color: var(--color-text-muted, #94a3b8); }

/* Options */
.compress-options {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
}

.option-row .label { margin-bottom: .4rem; }

.quality-slider {
    width: 100%;
    accent-color: var(--color-primary, #2563eb);
    height: 6px;
    cursor: pointer;
}

.quality-hints {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--color-text-muted, #94a3b8);
    margin-top: .25rem;
}

.resize-inputs {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.resize-inputs .input { width: 120px; }
.resize-inputs span { color: var(--color-text-muted, #64748b); }
.resize-inputs .checkbox { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }

/* Comparison */
.compare-section {
    margin-top: 1.5rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compare-panel {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: center;
}

.compare-panel img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: #f8fafc;
}

.compare-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}

.compare-size {
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
}

.compare-size.is-success { color: #16a34a; }

.compare-dims {
    font-size: .8rem;
    color: var(--color-text-muted, #64748b);
    margin: 0;
}

.compare-savings {
    text-align: center;
    margin-bottom: 1rem;
}

.savings-badge {
    display: inline-block;
    padding: .4rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: .95rem;
}

.savings-badge.is-success { background: #dcfce7; color: #16a34a; }
.savings-badge.is-warning { background: #fef9c3; color: #ca8a04; }

.tool-faq { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.tool-faq h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-text); margin-bottom: 1.25rem; }
.faq-item { margin-bottom: 1.25rem; padding: 1rem 1.25rem; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.faq-item h3 { font-size: 1rem; font-weight: 600; color: var(--color-text); margin: 0 0 0.5rem; }
.faq-item p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.7; margin: 0; }

.local-badge { font-size: .8rem; color: var(--color-text-muted, #64748b); }

@media (max-width: 600px) {
    .compare-grid { grid-template-columns: 1fr; }
    .resize-inputs .input { width: 100px; }
}
