/* ==========================================================
   TransferIt
   Image Compressor
   Production CSS
========================================================== */

.ti-image-compressor-page {
    background: #f5f8fc;
    color: #172033;
}


/* ==========================================================
   HERO
========================================================== */

.ti-image-compressor-hero {
    padding: 65px 0 35px;
    text-align: center;
}

.ti-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    margin-bottom: 18px;

    border: 1px solid #d9e6fa;
    border-radius: 50px;

    background: #edf5ff;
    color: #1467d8;

    font-size: 14px;
    font-weight: 600;
}

.ti-image-compressor-hero h1 {
    margin: 0 0 15px;

    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;
    font-weight: 750;
}

.ti-hero-description {
    max-width: 760px;
    margin: 0 auto;

    color: #657084;

    font-size: 18px;
    line-height: 1.7;
}

.ti-privacy-note {
    display: inline-block;

    margin-top: 18px;
    padding: 9px 15px;

    border-radius: 8px;

    background: #eef9f2;
    color: #287845;

    font-size: 14px;
    font-weight: 500;
}


/* ==========================================================
   MAIN TOOL
========================================================== */

.ti-image-compressor-tool {
    padding: 25px 0 75px;
}

.ti-compressor-card {
    max-width: 1100px;
    margin: 0 auto;

    padding: 30px;

    border: 1px solid #e0e6ee;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 40px rgba(20, 35, 55, 0.07);
}


/* ==========================================================
   UPLOAD
========================================================== */

.ti-upload-area {
    padding: 60px 25px;

    border: 2px dashed #b9c7d8;
    border-radius: 16px;

    background: #fafcff;

    text-align: center;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.ti-upload-area:hover,
.ti-upload-area:focus,
.ti-upload-area.ti-dragover {
    border-color: #0d6efd;
    background: #f3f8ff;

    outline: none;

    box-shadow:
        0 0 0 4px rgba(13, 110, 253, .08);
}

.ti-upload-icon {
    margin-bottom: 15px;

    font-size: 48px;
}

.ti-upload-area h2 {
    margin-bottom: 8px;

    font-size: 24px;
    font-weight: 700;
}

.ti-upload-area p {
    margin-bottom: 20px;

    color: #6b7688;
}

.ti-upload-info {
    margin-top: 15px;

    color: #667085;

    font-size: 13px;
    font-weight: 500;
}

.ti-upload-limit {
    margin-top: 5px;

    color: #8a95a5;

    font-size: 12px;
}


/* ==========================================================
   QUEUE
========================================================== */

.ti-file-queue {
    margin-top: 28px;
}

.ti-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.ti-queue-header h2,
.ti-settings-header h2,
.ti-results-header h2 {
    margin: 0 0 4px;

    font-size: 21px;
    font-weight: 700;
}

.ti-queue-header span {
    color: #7a8596;
    font-size: 13px;
}

.ti-queue-list {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 12px;
}

.ti-queue-item {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 12px;

    border: 1px solid #e1e7ef;
    border-radius: 11px;

    background: #ffffff;
}

.ti-queue-preview {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    object-fit: cover;

    border-radius: 8px;

    background: #f0f2f5;
}

.ti-queue-info {
    min-width: 0;
    flex: 1;
}

.ti-queue-name {
    overflow: hidden;

    margin-bottom: 3px;

    color: #273142;

    font-size: 14px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ti-queue-size {
    color: #7b8493;
    font-size: 12px;
}

.ti-remove-file {
    flex: 0 0 auto;
}


/* ==========================================================
   SETTINGS
========================================================== */

.ti-settings {
    margin-top: 30px;
    padding-top: 30px;

    border-top: 1px solid #e6eaf0;
}

.ti-settings-header {
    margin-bottom: 25px;
}

.ti-settings-header p,
.ti-results-header p {
    margin: 0;

    color: #758094;

    font-size: 14px;
}

.ti-range-row {
    display: flex;
    align-items: center;

    gap: 15px;
}

.ti-range-row .form-range {
    flex: 1;
}

.ti-range-value {
    min-width: 52px;

    padding: 5px 8px;

    border: 1px solid #dce2ea;
    border-radius: 7px;

    background: #f8f9fb;

    text-align: center;

    font-size: 13px;
    font-weight: 700;
}

.ti-setting-help {
    margin-top: 7px;

    color: #7c8797;

    font-size: 12px;
}


/* ==========================================================
   ACTIONS
========================================================== */

.ti-compress-actions {
    display: flex;
    gap: 10px;

    margin-top: 30px;
}

.ti-compress-actions .btn {
    min-height: 44px;
}


/* ==========================================================
   PROGRESS
========================================================== */

.ti-progress-area {
    margin-top: 30px;
}

.ti-progress-top {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: #596579;

    font-size: 13px;
    font-weight: 600;
}

.ti-progress-area .progress {
    height: 8px;

    overflow: hidden;

    border-radius: 50px;

    background: #e9edf2;
}


/* ==========================================================
   RESULTS
========================================================== */

.ti-results {
    margin-top: 35px;
    padding-top: 30px;

    border-top: 1px solid #e6eaf0;
}

.ti-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.ti-results-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.ti-result-item {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 14px;

    border: 1px solid #e1e6ed;
    border-radius: 12px;

    background: #ffffff;
}

.ti-result-preview {
    width: 85px;
    height: 70px;

    flex: 0 0 85px;

    object-fit: contain;

    border-radius: 8px;

    background:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);

    background-size: 16px 16px;
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
}

.ti-result-info {
    min-width: 0;
    flex: 1;
}

.ti-result-name {
    overflow: hidden;

    margin-bottom: 5px;

    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ti-result-sizes {
    color: #687386;
    font-size: 13px;
}

.ti-result-saving {
    margin-top: 3px;

    color: #198754;

    font-size: 13px;
    font-weight: 700;
}

.ti-result-action {
    flex: 0 0 auto;
}


/* ==========================================================
   STATUS
========================================================== */

.ti-status {
    margin-top: 20px;

    padding: 12px 15px;

    border-radius: 9px;

    font-size: 14px;
}

.ti-status.ti-status-error {
    border: 1px solid #f2c5c5;

    background: #fff5f5;
    color: #a12a2a;
}

.ti-status.ti-status-info {
    border: 1px solid #c8def8;

    background: #f3f8ff;
    color: #18599f;
}


/* ==========================================================
   FEATURES
========================================================== */

.ti-compressor-features {
    padding: 75px 0;

    background: #ffffff;
}

.ti-section-heading {
    max-width: 760px;

    margin: 0 auto 40px;
}

.ti-section-heading h2 {
    margin-bottom: 12px;

    font-size: 32px;
    font-weight: 700;
}

.ti-section-heading p {
    margin: 0;

    color: #707b8c;
}

.ti-feature-card {
    height: 100%;

    padding: 30px;

    border: 1px solid #e2e7ee;
    border-radius: 14px;

    background: #ffffff;
}

.ti-feature-icon {
    margin-bottom: 15px;

    font-size: 30px;
}

.ti-feature-card h3 {
    margin-bottom: 10px;

    font-size: 20px;
}

.ti-feature-card p {
    margin: 0;

    color: #697587;

    line-height: 1.7;
}


/* ==========================================================
   HOW IT WORKS
========================================================== */

.ti-how-it-works {
    padding: 75px 0;

    background: #f5f8fc;
}

.ti-step-card {
    height: 100%;

    padding: 30px;

    border: 1px solid #e0e6ed;
    border-radius: 14px;

    background: #ffffff;
}

.ti-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 18px;

    border-radius: 50%;

    background: #0d6efd;
    color: #ffffff;

    font-weight: 700;
}

.ti-step-card h3 {
    margin-bottom: 10px;

    font-size: 20px;
}

.ti-step-card p {
    margin: 0;

    color: #6d7889;

    line-height: 1.7;
}


/* ==========================================================
   SEO CONTENT
========================================================== */

.ti-seo-content {
    padding: 75px 0;

    background: #ffffff;
}

.ti-content-card {
    max-width: 900px;

    margin: auto;
}

.ti-content-card h2 {
    margin-top: 35px;
    margin-bottom: 15px;

    font-size: 28px;
}

.ti-content-card h2:first-child {
    margin-top: 0;
}

.ti-content-card p,
.ti-content-card li {
    color: #5f6b7d;

    line-height: 1.8;
}

.ti-content-card ul {
    padding-left: 22px;
}


/* ==========================================================
   FAQ
========================================================== */

.ti-faq-section {
    padding: 75px 0;

    background: #f5f8fc;
}

.ti-faq {
    max-width: 900px;

    margin: auto;
}

.ti-faq .accordion-item {
    overflow: hidden;

    margin-bottom: 10px;

    border: 1px solid #e0e6ed;
    border-radius: 10px;

    background: #ffffff;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 767.98px) {

    .ti-image-compressor-hero {
        padding: 45px 0 25px;
    }

    .ti-hero-description {
        font-size: 16px;
    }

    .ti-compressor-card {
        padding: 18px;
        border-radius: 14px;
    }

    .ti-upload-area {
        padding: 42px 15px;
    }

    .ti-upload-area h2 {
        font-size: 21px;
    }

    .ti-queue-header,
    .ti-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ti-compress-actions {
        flex-direction: column;
    }

    .ti-compress-actions .btn,
    .ti-results-header .btn {
        width: 100%;
    }

    .ti-result-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ti-result-action {
        width: 100%;
    }

    .ti-result-action .btn {
        width: 100%;
    }

    .ti-section-heading h2 {
        font-size: 27px;
    }

}