/* Background Remover Specific Styles */

/* Mode Selection */
.mode-selection {
    margin-bottom: 30px;
    text-align: center;
}

.mode-selection h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.mode-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mode-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.mode-btn.active strong,
.mode-btn.active small {
    color: white;
}

.mode-icon {
    font-size: 2rem;
    display: block;
}

.mode-btn strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.mode-btn small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-zone {
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    opacity: 0.1;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-zone h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-info {
    margin-top: 20px;
}

.upload-info small {
    color: var(--text-secondary);
    display: block;
}

.mobile-info,
.mobile-warning {
    display: none;
}

@media (max-width: 768px) {
    .desktop-info {
        display: none;
    }

    .mobile-info,
    .mobile-warning {
        display: block;
    }

    .mobile-warning {
        color: #f59e0b;
        margin-top: 5px;
        font-weight: 600;
    }
}

/* Processing Section */
.processing-section {
    text-align: center;
    padding: 60px 40px;
}

.loading-container {
    max-width: 400px;
    margin: 0 auto;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.processing-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

#processing-time {
    color: var(--text-secondary);
}

/* Image Comparison */
.image-comparison {
    margin: 30px 0;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.image-box {
    text-align: center;
}

.image-box h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.image-wrapper {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

/* Checkered background for transparent images */
.image-wrapper.checkered {
    background-image:
        linear-gradient(45deg, #808080 25%, transparent 25%),
        linear-gradient(-45deg, #808080 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #808080 75%),
        linear-gradient(-45deg, transparent 75%, #808080 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

[data-theme="dark"] .image-wrapper.checkered {
    background-image:
        linear-gradient(45deg, #404040 25%, transparent 25%),
        linear-gradient(-45deg, #404040 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #404040 75%),
        linear-gradient(-45deg, transparent 75%, #404040 75%);
}

.arrow {
    font-size: 2rem;
    color: var(--text-secondary);
}

.image-info {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Privacy Section */
.tips-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.privacy-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tip-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.privacy-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.privacy-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .upload-zone {
        padding: 40px 20px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .upload-zone h3 {
        font-size: 1.1rem;
    }

    .upload-zone p {
        font-size: 0.9rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        min-height: 200px;
    }

    .image-wrapper img {
        max-height: 300px;
    }
}
