/* css/bg-remover.css - Enhanced with SEO Section Styles */

/* Main Layout */
.bg-remover-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.tool-presentation-area.bg-remover-tool-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height, 60px));
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-header-main {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-page-title {
    font-family: var(--font-headings);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.tool-page-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Upload Interface */
.bg-remover-interface {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
    border: 2px solid var(--border-main);
    border-radius: 16px;
    box-shadow: var(--shadow-main-large);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 0;
}

.tool-step {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    gap: 2rem;
    flex-grow: 1;
}

.tool-step.active {
    display: flex;
}

/* Upload Components */
.upload-main-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    flex-grow: 1;
    max-width: 500px;
}

.file-dropzone {
    width: 100%;
    min-height: 300px;
    border: 3px dashed var(--border-subtle);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-dropzone:hover,
.file-dropzone.dragover {
    border-color: var(--accent-main);
    background: linear-gradient(135deg, rgba(var(--accent-main-rgb), 0.05) 0%, rgba(var(--accent-secondary-rgb, 111, 66, 193), 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(var(--accent-main-rgb), 0.15);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.dropzone-visual-icon {
    width: 64px;
    height: 64px;
    stroke: var(--accent-main);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.file-dropzone:hover .dropzone-visual-icon {
    transform: scale(1.1) translateY(-4px);
    opacity: 1;
}

.dropzone-instruction-primary {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.dropzone-instruction-secondary {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-text-link {
    color: var(--accent-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.upload-text-link:hover {
    color: var(--accent-secondary);
}

.dropzone-formats-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 500;
}

/* URL Input */
.upload-alternative-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.url-toggle-button {
    background: var(--bg-surface);
    border: 2px solid var(--border-main);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.url-toggle-button:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
    transform: translateY(-2px);
}

.url-input-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-main);
    border: 2px solid var(--border-main);
    border-radius: 16px;
}

.tool-input {
    background: var(--bg-main);
    border: 2px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.tool-input:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 0 4px rgba(var(--accent-main-rgb), 0.2);
}

.url-action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Error Message */
.error-message-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

/* Content Sections */
.page-content-below-tool {
    flex-shrink: 0;
    background-color: var(--bg-main);
}

.how-to-use-bg-remover {
    background: linear-gradient(135deg, rgba(var(--accent-main-rgb), 0.03) 0%, rgba(var(--accent-secondary-rgb), 0.02) 100%);
    border-top: 1px solid var(--border-subtle);
}

.features-section.bg-remover-features {
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.features-section.bg-remover-features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--accent-main-rgb), 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.features-section.bg-remover-features .container {
    position: relative;
    z-index: 1;
}

/* SEO Content Section Styles */
.ecommerce-background-remover {
    background-color: var(--bg-wash);
    border-left: 4px solid #10B981;
}

.headshot-background-remover {
    background-color: var(--bg-surface);
    position: relative;
}

.headshot-background-remover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-main), var(--accent-secondary));
    border-radius: 2px;
}

.social-media-background-remover {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-surface) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.ai-technology-section {
    background-color: var(--bg-surface);
    position: relative;
}

.ai-technology-section::before {
    content: '🤖';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    opacity: 0.1;
    z-index: 0;
}

.comparison-section {
    background: linear-gradient(135deg, var(--bg-wash) 0%, var(--bg-surface) 100%);
}

.comparison-grid > div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-main-medium);
}

.tips-section {
    background-color: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin: 2rem auto;
    max-width: calc(100% - 2rem);
}

.faq-section.bg-remover-faq {
    background: linear-gradient(135deg, var(--bg-wash) 0%, var(--bg-surface) 100%);
}

.faq-section.bg-remover-faq .faq-item {
    transition: all 0.2s ease;
}

.faq-section.bg-remover-faq .faq-item:hover {
    background-color: rgba(var(--accent-main-rgb), 0.02);
    transform: translateX(4px);
}

.faq-section.bg-remover-faq .faq-question:hover {
    color: var(--accent-main);
}

/* Enhanced feature items for new sections */
.ecommerce-background-remover .feature-item,
.headshot-background-remover .feature-item,
.social-media-background-remover .feature-item {
    background: var(--bg-main);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-main-soft);
    transition: all 0.3s ease;
}

.ecommerce-background-remover .feature-item:hover,
.headshot-background-remover .feature-item:hover,
.social-media-background-remover .feature-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-main-large);
    border-color: var(--accent-main);
}

/* Section spacing and alternating backgrounds */
.content-section:nth-child(even) {
    background-color: var(--bg-surface);
}

.content-section + .content-section {
    border-top: 1px solid rgba(var(--border-main-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-presentation-area.bg-remover-tool-area {
        height: auto;
        min-height: calc(100vh - var(--header-height, 50px));
        padding: 1rem;
        padding-top: calc(var(--header-height, 50px) + 1rem);
    }

    .tool-header-main {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .bg-remover-interface {
        padding: 1.5rem;
        max-width: min(500px, calc(100vw - 2rem));
        margin: 0 auto;
        border-radius: 12px;
    }

    .tool-step {
        padding: 1rem;
        gap: 1rem;
    }

    .file-dropzone {
        min-height: 200px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .dropzone-visual-icon {
        width: 48px;
        height: 48px;
    }

    .upload-alternative-options {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }

    .url-toggle-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .url-input-field {
        padding: 1.25rem;
    }

    .tool-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    /* Mobile optimizations for new sections */
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .tips-section {
        margin: 1rem;
        max-width: calc(100% - 1rem);
    }

    .ai-technology-section::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .bg-remover-interface {
        max-width: calc(100vw - 1.5rem);
        padding: 1rem;
    }

    .file-dropzone {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }

    .dropzone-visual-icon {
        width: 40px;
        height: 40px;
    }

    .url-toggle-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .ecommerce-background-remover,
    .headshot-background-remover,
    .social-media-background-remover {
        border-left: none;
        border-top: 3px solid #10B981;
    }

    .headshot-background-remover::after {
        width: 40px;
        height: 2px;
    }
}

/* Print styles */
@media print {
    .bg-remover-interface,
    .tool-presentation-area {
        display: none;
    }
    
    .page-content-below-tool {
        margin-top: 0;
    }
}