/* AI Redesign Page Styles */

/* Page Title Section */
.page-title-section {
    background-color: #2e7d32;
    padding: 60px 0;
    text-align: center;
}

.page-title-content h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-title-content p {
    color: #fff;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Container Styles */
.ai-redesign-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .ai-redesign-container {
        grid-template-columns: 1fr;
    }
}

/* Upload Container Styles */
.upload-container {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.upload-box {
    border: 2px dashed #2e7d32;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background-color: rgba(46, 125, 50, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.upload-box h3 {
    margin-bottom: 10px;
    color: #333;
}

.upload-box p {
    color: #666;
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.file-upload-info {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Style Selection */
.style-selection {
    margin-bottom: 30px;
}

.style-selection h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.style-option {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-option:hover {
    border-color: #2e7d32;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.style-option.selected {
    background-color: rgba(46, 125, 50, 0.1);
    border-color: #2e7d32;
}

.style-icon {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 8px;
}

#generate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 18px;
}

/* Preview Container Styles */
.preview-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.placeholder-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px dashed #ddd;
}

.placeholder-image i {
    font-size: 48px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.placeholder-image p {
    color: #666;
    font-style: italic;
}

.image-container h3 {
    margin-bottom: 5px;
    color: #2e7d32;
}

.image-container p {
    color: #666;
    font-size: 14px;
}

/* Loading and Alert Styles */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #2e7d32;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success-alert {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ai-prompt-display {
    background-color: #e2f3f5;
    border: 1px solid #90e0ef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.ai-prompt-display h4 {
    color: #0077b6;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.ai-prompt-display p {
    color: #023e8a;
    margin: 0;
    line-height: 1.5;
}

.prompt-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #90e0ef;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #023e8a;
    line-height: 1.5;
    resize: vertical;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 36px;
    color: #2e7d32;
}

.step-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.step-content p {
    color: #666;
    font-size: 15px;
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.faq-item h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

.cta-container {
    margin-top: 40px;
}

.cta-container p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

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

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .before-after {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        margin-bottom: 20px;
    }
    
    .form-submit button {
        width: 100%;
    }
}

/* Section Styling */
.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro h2 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 32px;
}

.section-intro p {
    color: #666;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Section Padding */
.content-section {
    padding: 80px 0;
}
