/**
 * Frontend CSS for Writers EI Assessments
 * 
 * Styles for assessment forms, results, and UI components
 * 
 * @package Writers_EI_Assessments
 * @since 1.0.0
 */

/* Reset and base styles */
.wea-assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wea-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.wea-header h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 300;
}

.wea-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Form styles */
.wea-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.wea-question {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
}

.wea-question h3,
.wea-question h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.wea-options {
    display: grid;
    gap: 10px;
}

.wea-options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wea-options label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.wea-options label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.wea-options label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

.wea-options label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Slider styles */
.wea-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.wea-slider-label {
    font-size: 0.9em;
    color: #666;
    min-width: 80px;
    text-align: center;
}

.wea-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
}

.wea-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wea-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form footer */
.wea-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.wea-email-section {
    margin-bottom: 20px;
}

.wea-email-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.wea-email-section input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.wea-email-section input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.wea-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wea-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wea-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results styles */
.wea-results {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.wea-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.wea-results-header h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 300;
}

.wea-archetype {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wea-archetype h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.wea-archetype p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

/* Score bars */
.wea-scores {
    margin-bottom: 30px;
}

.wea-scores h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.wea-score-bars {
    display: grid;
    gap: 15px;
}

.wea-score-bar {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 15px;
}

.wea-score-bar label {
    font-weight: 600;
    color: #2c3e50;
}

.wea-bar-container {
    height: 20px;
    background: #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
}

.wea-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.wea-score-value {
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* Dimension scores */
.wea-dimensions {
    margin-bottom: 30px;
}

.wea-dimensions h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.wea-dimension-scores {
    display: grid;
    gap: 15px;
}

.wea-dimension-score {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: center;
    gap: 15px;
}

.wea-dimension-score label {
    font-weight: 600;
    color: #2c3e50;
}

.wea-score-container {
    height: 20px;
    background: #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
}

/* Actions */
.wea-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.wea-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.wea-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wea-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wea-btn-secondary {
    background: #6c757d;
    color: white;
}

.wea-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Dimension sections */
.wea-dimension-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.wea-dimension-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
}

/* Loading states */
.wea-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .wea-assessment-container {
        padding: 10px;
    }
    
    .wea-header h2 {
        font-size: 1.5em;
    }
    
    .wea-form {
        padding: 20px;
    }
    
    .wea-score-bar,
    .wea-dimension-score {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .wea-actions {
        flex-direction: column;
    }
    
    .wea-slider-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .wea-slider-label {
        min-width: auto;
    }
}

/* Print styles */
@media print {
    .wea-actions {
        display: none;
    }
    
    .wea-assessment-container {
        max-width: none;
        padding: 0;
    }
    
    .wea-form,
    .wea-results {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

