/* AIAuto Post Generator Styles */

.aiauto-post-generator-container {
    max-width: 1200px;
    margin: 20px 0;
}

.aiauto-settings-panel {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.aiauto-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.aiauto-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.aiauto-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.aiauto-form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.aiauto-form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}

.aiauto-form-row input,
.aiauto-form-row select {
    max-width: 400px;
}

.aiauto-form-row textarea {
    max-width: 400px;
    min-height: 80px;
    resize: vertical;
}

/* CTA and About Company content styling */
.post-cta,
.post-about-company {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.post-cta h2,
.post-about-company h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
}

.cta-content,
.about-company-content {
    line-height: 1.6;
    color: #333;
}

.post-cta {
    border-left-color: #0073aa;
}

.post-about-company {
    border-left-color: #46b450;
}

.post-about-company h2 {
    color: #46b450;
}

/* Subchapter content styling - same as chapter content */
.subchapter-content {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    border-radius: 4px;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

.subchapter-content h3,
.subchapter-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
}

.subchapter-content p {
    margin-bottom: 8px;
}

.subchapter-content ul,
.subchapter-content ol {
    margin: 8px 0;
    padding-left: 16px;
}

.subchapter-content li {
    margin-bottom: 4px;
}

.subchapter-content blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    background: #e9ecef;
    border-left: 3px solid #6c757d;
    font-style: italic;
    color: #495057;
    font-size: 13px;
}

.subchapter-content code {
    background: #f1f3f4;
    padding: 1px 3px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.subchapter-content pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.subchapter-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Chapter content styling - reduced size */
.chapter-content {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

.chapter-content h2,
.chapter-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.chapter-content p {
    margin-bottom: 8px;
}

.chapter-content ul,
.chapter-content ol {
    margin: 8px 0;
    padding-left: 16px;
}

.chapter-content li {
    margin-bottom: 4px;
}

.chapter-content blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    background: #e9ecef;
    border-left: 3px solid #0073aa;
    font-style: italic;
    color: #495057;
    font-size: 13px;
}

.chapter-content code {
    background: #f1f3f4;
    padding: 1px 3px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.chapter-content pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.chapter-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.aiauto-form-row .description {
    margin-top: 5px;
    color: #646970;
    font-style: italic;
    font-size: 13px;
}

.aiauto-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

.aiauto-form-actions .spinner {
    display: none;
    margin-left: 10px;
}

.aiauto-form-actions .spinner.is-active {
    display: inline-block;
}

.aiauto-preview-panel {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.aiauto-preview-panel h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
}

#generated-content {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.aiauto-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 782px) {
    .aiauto-form-row input,
    .aiauto-form-row select {
        max-width: 100%;
    }
    
    .aiauto-preview-actions {
        flex-direction: column;
    }
    
    .aiauto-preview-actions .button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading States */
.aiauto-loading {
    opacity: 0.6;
    pointer-events: none;
}

.aiauto-loading .spinner {
    display: inline-block !important;
}

/* Success/Error Messages */
.aiauto-notice {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.aiauto-notice-success {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.aiauto-notice-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.aiauto-notice-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Progress UI Styles */
.aiauto-progress-panel {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
}

.aiauto-progress-panel h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #1d2327;
    font-size: 24px;
}

.aiauto-progress-container {
    margin-bottom: 40px;
}

.aiauto-progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.aiauto-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.aiauto-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.aiauto-progress-text {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.aiauto-progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.aiauto-step {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.aiauto-step.current {
    border-color: #0073aa;
    background: #f0f7ff;
}

.aiauto-step.completed {
    border-color: #46b450;
    background: #f7fff7;
}

.aiauto-step.error {
    border-color: #dc3232;
    background: #fff7f7;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.aiauto-step.completed .step-number {
    background: #46b450;
}

.aiauto-step.error .step-number {
    background: #dc3232;
}

.step-text {
    flex: 1;
    font-weight: 500;
    color: #1d2327;
}

.step-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.step-status.pending {
    background: #f0f0f1;
    color: #646970;
}

.step-status.active {
    background: #0073aa;
    color: white;
}

.step-status.completed {
    background: #46b450;
    color: white;
}

.step-status.error {
    background: #dc3232;
    color: white;
}

.aiauto-progress-actions {
    margin-top: 30px;
}

/* Responsive Design for Progress UI */
@media (max-width: 768px) {
    .aiauto-progress-steps {
        grid-template-columns: 1fr;
    }
    
    .aiauto-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .aiauto-progress-panel {
        padding: 20px;
    }
    
    .aiauto-progress-panel h2 {
        font-size: 20px;
    }
} 

/* Enhanced Notice Styles */
.aiauto-success-message,
.aiauto-notice-info,
.aiauto-notice-warning,
.aiauto-notice-error {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aiauto-success-message {
    border-left: 4px solid #46b450;
    background: #f7fcf7;
}

.aiauto-notice-info {
    border-left: 4px solid #0073aa;
    background: #f7fcff;
}

.aiauto-notice-warning {
    border-left: 4px solid #ffb900;
    background: #fffbf0;
}

.aiauto-notice-error {
    border-left: 4px solid #dc3232;
    background: #fef7f1;
}

/* Button Loading State */
#generate-post-btn:disabled {
    background: #0073aa !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form Actions Enhancement */
.aiauto-form-actions {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.aiauto-form-actions button {
    margin-right: 15px;
} 