/**
 * AICT Business Idea Validator - Styles
 *
 * @package AICT_Core
 * @since 1.3.0
 */

.aict-business-validator {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aict-tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.aict-tool-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.aict-tool-description {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Form Styles */
.aict-validator-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1rem;
}

.form-group .required {
    color: #e53e3e;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Buttons */
.aict-btn-primary,
.aict-btn-secondary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.aict-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    width: 100%;
}

.aict-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.aict-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aict-btn-secondary {
    background: #fff;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.aict-btn-secondary:hover {
    background: #f7f9fc;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Section */
.aict-validator-results {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.results-header h3 {
    font-size: 1.75rem;
    color: #1a202c;
    margin: 0;
}

/* Viability Score Card */
.viability-score-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #fff;
}

.score-circle {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.score-max {
    font-size: 2rem;
    opacity: 0.8;
}

.score-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Analysis Sections */
.analysis-sections {
    display: grid;
    gap: 1.5rem;
}

.analysis-section {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.analysis-section h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.section-content {
    color: #4a5568;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.section-content strong {
    color: #2d3748;
}

/* Usage Info */
.usage-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    color: #718096;
}

.upgrade-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
}

.upgrade-link:hover {
    text-decoration: underline;
}

/* Error Section */
.aict-validator-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-message {
    color: #856404;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .aict-business-validator {
        padding: 1rem;
    }

    .aict-tool-header h2 {
        font-size: 2rem;
    }

    .aict-validator-form,
    .aict-validator-results {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .score-circle {
        font-size: 3rem;
    }
}
