/* =========================================
   IMAGE COMPRESSOR TOOL STYLES
   ========================================= */

/* Base Wrapper Reset */
.tpe-ic-wrapper {
    position: relative;
    width: 100%;
    background-color: #FFFFFF; /* Pure crisp white */
    overflow: hidden;
    padding-bottom: 80px;
}

/* Background Blobs */
.tpe-ic-bg-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(140px);
}

.tpe-ic-blob-navy {
    width: 500px;
    height: 500px;
    background: rgba(13, 31, 60, 0.03); /* Opacity 0.03 */
    bottom: 0;
    left: -200px;
}

.tpe-ic-blob-gold {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 67, 0.04); /* Opacity 0.04 */
    top: 50px;
    right: -100px;
}

/* Hero Section */
.tpe-ic-hero {
    text-align: center;
    padding-top: 130px; /* Increased to 130px */
    position: relative;
    z-index: 2;
    margin-bottom: 48px;
}

.tpe-ic-eyebrow {
    display: inline-block;
    border: 1.5px solid #D4A843;
    color: #D4A843;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.tpe-ic-hero h1 {
    color: #0D1F3C;
    font-weight: 800;
    font-size: 56px; /* Increased to 56px */
    line-height: 1.1;
    margin: 0 0 16px 0;
}

.tpe-ic-hero p {
    color: #5A6A7E; /* Changed to slate */
    font-size: 17px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Main Tool Card */
.tpe-ic-panel {
    max-width: 860px;
    margin: 0 auto;
    background: #FFFFFF; /* Pure white */
    border: 1px solid rgba(13, 31, 60, 0.08);
    box-shadow: 0 4px 16px rgba(13, 31, 60, 0.06), 0 16px 48px rgba(13, 31, 60, 0.08);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

/* Upload Zone */
.tpe-ic-upload-area {
    border: 2px dashed rgba(212, 168, 67, 0.35); /* Reduced opacity to 0.35 */
    border-radius: 20px;
    padding: 60px 40px;
    background: rgba(212, 168, 67, 0.03); /* Subtle gold tint */
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tpe-ic-upload-area:hover,
.tpe-ic-upload-area.drag-over {
    border-color: #D4A843;
    background: rgba(212, 168, 67, 0.06);
}

.tpe-ic-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tpe-ic-upload-icon {
    background: rgba(13, 31, 60, 0.06);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tpe-ic-upload-icon svg {
    color: #0D1F3C;
    width: 28px;
    height: 28px;
}

.tpe-ic-upload-content h3 {
    color: #0D1F3C;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.tpe-ic-upload-content p {
    color: #5A6A7E;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
}

.tpe-ic-btn-browse {
    background: #D4A843;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    padding: 12px 28px;
    border: none;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.25);
    transition: all 0.25s ease;
    margin-top: 20px;
    cursor: pointer;
    display: inline-block;
}

.tpe-ic-btn-browse:hover {
    background: #B8860B;
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
    transform: translateY(-1px);
}

/* Workspace / Preview State */
.tpe-ic-workspace {
    display: block;
}

/* Slider Section */
.tpe-ic-slider-section {
    margin-bottom: 32px;
}

.tpe-ic-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpe-ic-slider-header label {
    color: #0D1F3C;
    font-weight: 700;
    font-size: 13px; /* 13px uppercase */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#qualityValue {
    color: #D4A843;
    font-weight: 700;
    font-size: 16px; /* 16px gold bold */
}

.tpe-ic-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(13, 31, 60, 0.10);
    outline: none;
    cursor: pointer;
    margin: 12px 0 24px; /* Margin required */
    accent-color: #D4A843;
}

.tpe-ic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D4A843;
    border: 3px solid #FFFFFF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.40);
    transition: transform 0.1s ease;
}

/* Fallback for moz/ms thumb */
.tpe-ic-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D4A843;
    border: 3px solid #FFFFFF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.40);
}

/* Preview Grid */
.tpe-ic-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.tpe-ic-preview-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tpe-ic-pill {
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
}

.tpe-ic-pill-navy {
    background: #0D1F3C;
    color: #FFFFFF;
}

.tpe-ic-pill-gold {
    background: #D4A843;
    color: #FFFFFF;
}

.tpe-ic-image-container {
    width: 100%;
    margin-bottom: 0; /* Removing bottom margin to tightly control spacing */
}

.tpe-ic-image-container img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 16px;
    background: #F4F6FA;
    border: 1px solid rgba(13, 31, 60, 0.08);
    display: block; /* Remove baseline gap */
}

.tpe-ic-file-meta {
    width: 100%;
}

#originalSize, #compressedSize {
    color: #5A6A7E;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.tpe-ic-meta-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tpe-ic-savings-text {
    color: #D4A843;
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
    display: block;
}

/* Action Buttons */
.tpe-ic-action-group {
    display: flex;
    flex-direction: column;
}

.tpe-ic-btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #D4A843;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    border-radius: 14px;
    padding: 16px;
    margin-top: 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tpe-ic-btn-download:hover {
    background: #B8860B;
    box-shadow: 0 8px 28px rgba(212, 168, 67, 0.35);
    transform: translateY(-1px);
}

.tpe-ic-btn-reset {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid rgba(13, 31, 60, 0.15);
    color: #0D1F3C;
    font-weight: 600;
    font-size: 15px; /* Added matching size */
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tpe-ic-btn-reset:hover {
    border-color: #D4A843;
    color: #D4A843;
}

/* Trust Strip */
.tpe-ic-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.tpe-ic-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpe-ic-trust-item span {
    color: #5A6A7E;
    font-size: 14px;
    font-weight: 500;
}

.tpe-ic-trust-item svg {
    width: 16px;
    height: 16px;
}

.tpe-ic-dot {
    color: #D4A843;
    font-size: 18px;
    line-height: 1;
}

/* CTA Banner */
.tpe-ic-cta {
    margin-top: 100px;
    background-color: #0D1F3C;
    border-radius: 0;
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tpe-ic-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 67, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tpe-ic-cta-content h2 {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 44px;
    margin: 0 0 16px 0;
}

.tpe-ic-cta-content p {
    color: #E2E8F0;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.tpe-ic-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #FFFFFF;
    color: #0D1F3C;
}

/* Responsive */
@media (max-width: 768px) {
    .tpe-ic-hero {
        padding-top: 100px;
    }

    .tpe-ic-hero h1 {
        font-size: 38px;
    }

    .tpe-ic-hero p {
        font-size: 15px;
        padding: 0 20px;
    }
    
    .tpe-ic-panel {
        margin: 0 16px;
        padding: 24px;
        border-radius: 20px;
    }

    .tpe-ic-upload-area {
        padding: 40px 20px;
    }

    .tpe-ic-upload-content h3 {
        font-size: 18px;
    }

    .tpe-ic-btn-browse {
        width: 100%;
        padding: 14px;
    }
    
    .tpe-ic-preview-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tpe-ic-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    .tpe-ic-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .tpe-ic-btn-download {
        padding: 18px;
        font-size: 16px;
    }
    
    .tpe-ic-trust-strip {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .tpe-ic-dot {
        display: none;
    }
    
    .tpe-ic-cta {
        padding: 60px 20px;
    }

    .tpe-ic-cta-content h2 {
        font-size: 32px;
    }

    .tpe-ic-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .tpe-ic-cta-actions .btn {
        width: 100%;
    }
}