/* VRD Maker Styles */

:root {
    --primary-orange: #FF6B35;
    --primary-dark: #1a1a1a;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background: var(--bg-light);
    padding: 20px 0;
    z-index: 100;
}

.logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c42);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Main Content */
.app-main {
    flex: 1;
    margin-bottom: 40px;
}

.hidden {
    display: none !important;
}

/* Question Card */
.question-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.question-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.question-purpose {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Suggestions */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.suggestion-chip {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.suggestion-chip:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.suggestion-chip.selected {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

/* Custom Input */
.custom-input-section {
    margin-bottom: 30px;
}

.custom-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.custom-answer {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.custom-answer:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.custom-answer::placeholder {
    color: #999;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn.success {
    background: var(--success-green);
}

/* VRD Output */
.vrd-output {
    animation: fadeIn 0.4s ease;
}

.output-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.output-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.output-box {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.output-box pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

.output-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.next-steps {
    background: rgba(255, 107, 53, 0.05);
    border-left: 4px solid var(--primary-orange);
    padding: 24px;
    border-radius: 8px;
}

.next-steps h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.next-steps ol {
    margin-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .question-card {
        padding: 24px;
    }

    .question-title {
        font-size: 24px;
    }

    .logo-img {
        max-width: 220px;
    }

    .navigation {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .output-actions {
        flex-direction: column;
    }

    .suggestion-chip {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Scrollbar Styling */
.output-box::-webkit-scrollbar {
    width: 8px;
}

.output-box::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.output-box::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.output-box::-webkit-scrollbar-thumb:hover {
    background: #ff5722;
}
