/* ============================================
   AI Background Remover - Stylesheet
   ============================================ */

/* Upload Section */
.upload-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
}

.upload-box {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 3px dashed #e2e8f0;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.upload-box:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.upload-box i {
    font-size: 5rem;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

.upload-box h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.upload-box p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.file-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Features List */
.features-list {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.features-list h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item i {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item strong {
    display: block;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.feature-item span {
    font-size: 0.9rem;
    color: #718096;
}

/* Editor Section */
.editor-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
}

.editor-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-section h3 i {
    color: #667eea;
}

/* Image Comparison */
.comparison-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.image-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.image-box {
    position: relative;
}

.image-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.image-wrapper {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), 
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #e2e8f0;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Processing Overlay */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.processing-overlay i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.processing-overlay p {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 600;
}

.image-wrapper.processing {
    opacity: 1;
}

/* Background Options */
.background-options {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.bg-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bg-option {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bg-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bg-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.bg-preview {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.transparent-bg {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), 
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.bg-option span {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.bg-option.custom {
    position: relative;
}

.bg-option.custom input[type="color"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.bg-option.custom i {
    font-size: 2rem;
    color: #667eea;
}

/* Download Options */
.download-options {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.format-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.format-option {
    cursor: pointer;
}

.format-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.format-card {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.format-option input[type="radio"]:checked ~ .format-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.format-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.format-card strong {
    display: block;
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.format-card span {
    font-size: 0.9rem;
    color: #718096;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    max-width: 300px;
    justify-content: center;
}

/* Use Cases */
.use-cases {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 60px;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 50px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.use-case-card i {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.use-case-card h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.use-case-card p {
    color: #718096;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .image-comparison {
        grid-template-columns: 1fr;
    }
    
    .bg-selector {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .upload-box {
        padding: 40px 20px;
    }
    
    .upload-box i {
        font-size: 3.5rem;
    }
    
    .upload-box h2 {
        font-size: 1.5rem;
    }
    
    .features-list {
        padding: 30px 20px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .comparison-container,
    .background-options,
    .download-options {
        padding: 20px;
    }
    
    .image-wrapper {
        min-height: 300px;
    }
}

/* Ad Section */
.ad-section {
    margin: 60px 0;
    padding: 30px;
    background: #f7fafc;
    border-radius: 15px;
    text-align: center;
}
/* ============================================
   AFFILIATE BANNERS
   ============================================ */

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}


.affiliate-banners {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* RECOMMENDED - BALANCED COLORFUL */

.affiliate-banner {
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid;
}

.hostinger-banner {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    border-color: #7b1fa2 !important;
}

.hostinger-banner:hover {
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.3);
}

.amazon-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border-color: #f57c00 !important;
}

.amazon-banner:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-icon {
    width: 50px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hostinger-banner .banner-icon {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
    color: white;
}

.amazon-banner .banner-icon {
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: white;
}

.banner-text {
    flex: 1;
    min-width: 200px;
}

.banner-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.banner-text p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.banner-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.banner-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.hostinger-banner .banner-btn {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
}

.amazon-banner .banner-btn {
    background: linear-gradient(135deg, #ff9900, #ff6600);
}

/* Responsive Design */
@media (max-width: 968px) {
    .banners-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-btn {
        width: 100%;
        justify-content: center;
    }
    
    .banner-text h4 {
        font-size: 0.95rem;
    }
}
