/* ========================================
   9DA - SIMPEL DEMO STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Sections */
section {
    padding: 40px 30px;
    border-bottom: 1px solid #f0f0f0;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

/* Analogy Section */
.analogy-box {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.expert-list {
    list-style: none;
    margin: 20px 0;
}

.expert-list li {
    padding: 8px 0;
    font-size: 1.05rem;
}

.analogy-result {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    font-weight: 600;
}

/* How It Works - Steps */
.steps {
    display: grid;
    gap: 30px;
}

.step {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-example,
.step-result,
.step-solution {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid #ddd;
}

.step-result {
    border-left-color: #ff9800;
}

.step-solution {
    border-left-color: #4CAF50;
}

/* Demo Section */
.demo {
    background: #fafafa;
}

.demo-intro {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.btn-preset {
    padding: 15px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: left;
}

.btn-preset:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.input-section {
    margin-bottom: 25px;
}

#constraints {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.05rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

#constraints:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    padding: 15px 30px;
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear:hover {
    background: #eee;
    border-color: #bbb;
}

/* Output Section */
.output-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.output-section h4 {
    margin-bottom: 20px;
    color: #333;
}

.summary-compatible,
.summary-issues {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.summary-compatible {
    background: #e8f5e9;
    color: #2e7d32;
}

.summary-issues {
    background: #fff3e0;
    color: #e65100;
}

.status-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Issues List */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.issue-item {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #ddd;
}

.issue-item.high {
    border-left-color: #f44336;
}

.issue-item.medium {
    border-left-color: #ff9800;
}

.issue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.issue-icon {
    font-size: 1.5rem;
}

.issue-type {
    font-weight: 600;
    color: #666;
}

.issue-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.issue-suggestion {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.no-issues {
    text-align: center;
    padding: 30px;
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Examples Section */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.example-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.example-card h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.example-contradiction {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
}

.example-fix {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

/* FAQ Section */
.faq-item {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.faq-answer {
    color: #555;
    padding-left: 0;
}

/* Footer */
.footer {
    background: #f5f5f5;
    padding: 30px;
    text-align: center;
    color: #666;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 30px 20px;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-clear {
        width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }
}