/**
 * JCOGS Image Pro - Preset Create Styles
 * =======================================
 * CSS styles for enhanced preset creation workflow interface
 * 
 * @category   ExpressionEngine Add-on
 * @package    JCOGS Image Pro
 * @author     JCOGS Design <contact@jcogs.net>
 * @copyright  Copyright (c) 2021 - 2025 JCOGS Design
 * @license    https://jcogs.net/add-ons/license/jcogs_img_pro
 * @version    2.0.6
 * @link       https://JCOGS.net/
 * @since      Enhanced Preset Creation Workflow Implementation
 */

/* Workflow Progress Styles */
.preset-creation-workflow {
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-progress {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #e1e7ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e1e7ed;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e7ed;
    color: #8892a4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #1f7dc4;
    color: #fff;
}

.step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.step-label {
    font-size: 0.875rem;
    color: #5d6975;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #1f7dc4;
    font-weight: 600;
}

/* Workflow Steps */
.workflow-step {
    display: none;
}

.workflow-step.active {
    display: block;
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h4 {
    margin: 0 0 0.5rem 0;
    color: #384551;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-header p {
    margin: 0;
    color: #8892a4;
    font-size: 1rem;
    line-height: 1.5;
}

.step-content {
    margin-bottom: 3rem;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #f0f2f5;
}

/* Info Cards */
.preset-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: #f7f9fc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e7ed;
    display: flex;
    gap: 1rem;
}

.card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #1f7dc4;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-content h5 {
    margin: 0 0 0.5rem 0;
    color: #384551;
    font-weight: 600;
}

.card-content p {
    margin: 0;
    color: #5d6975;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.template-card {
    background: #fff;
    border: 2px solid #e1e7ed;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    border-color: #1f7dc4;
    box-shadow: 0 4px 12px rgba(31, 125, 196, 0.15);
}

.template-card.selected {
    border-color: #1f7dc4;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(31, 125, 196, 0.15);
}

.template-preview {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #8892a4;
}

.template-card.selected .template-preview {
    background: #1f7dc4;
    color: #fff;
}

.template-info h5 {
    margin: 0 0 0.5rem 0;
    color: #384551;
    font-weight: 600;
}

.template-info p {
    margin: 0 0 0.75rem 0;
    color: #5d6975;
    font-size: 0.875rem;
    line-height: 1.4;
}

.parameter-count {
    display: inline-block;
    background: #e8f4ff;
    color: #1f7dc4;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .preset-info-cards {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
