1367 lines
22 KiB
CSS
1367 lines
22 KiB
CSS
.wizard-page {
|
|
min-height: calc(100vh - 60px);
|
|
padding: 2rem 1rem;
|
|
background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
|
|
}
|
|
|
|
/* Progress indicator */
|
|
.wizard-progress {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
padding: 0 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.progress-step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
opacity: 0.5;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.progress-step.active,
|
|
.progress-step.completed {
|
|
opacity: 1;
|
|
}
|
|
|
|
.step-number {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: #e2e8f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.progress-step.active .step-number {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
|
color: white;
|
|
}
|
|
|
|
.progress-step.completed .step-number {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.step-label {
|
|
font-size: 0.8rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* Wizard sections */
|
|
.wizard-section {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.wizard-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.back-btn {
|
|
background: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.5rem;
|
|
color: #6366f1;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.back-btn:hover {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.wizard-section h1 {
|
|
margin: 0;
|
|
color: #1e293b;
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.wizard-subtitle {
|
|
color: #64748b;
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
|
|
/* Style selection */
|
|
.style-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.style-card {
|
|
background: white;
|
|
border: 2px solid transparent;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.style-card:hover {
|
|
transform: translateY(-4px);
|
|
border-color: #6366f1;
|
|
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
|
|
}
|
|
|
|
.style-icon {
|
|
font-size: 3rem;
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.style-card h3 {
|
|
margin: 0 0 0.5rem;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.style-card p {
|
|
margin: 0 0 0.75rem;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.style-examples {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.example-tag {
|
|
background: #f1f5f9;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 1rem;
|
|
font-size: 0.75rem;
|
|
color: #475569;
|
|
}
|
|
|
|
/* Questions */
|
|
.questions-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Prefilled banner */
|
|
.prefilled-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
|
|
border: 2px solid #6366f1;
|
|
border-radius: 12px;
|
|
padding: 0.75rem 1rem;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.9rem;
|
|
color: #4338ca;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.prefilled-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.randomize-btn {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.4rem 0.75rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
margin-left: auto;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.randomize-btn:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.randomize-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* AI Refine Banner */
|
|
.ai-refine-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
|
|
border: 2px solid #10b981;
|
|
border-radius: 12px;
|
|
padding: 0.75rem 1rem;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.9rem;
|
|
color: #065f46;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ai-refine-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.ai-refine-btn {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.free-badge-sm {
|
|
background: #22c55e;
|
|
color: #fff;
|
|
font-size: 0.65rem;
|
|
padding: 0.1rem 0.35rem;
|
|
border-radius: 3px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Title card */
|
|
.title-card {
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
border: 2px solid #f59e0b;
|
|
border-radius: 1rem;
|
|
padding: 1.25rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.title-card label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #92400e;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.title-input-large {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
border: 2px solid #f59e0b;
|
|
border-radius: 10px;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
background: white;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.title-input-large:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.title-hint {
|
|
display: block;
|
|
margin-top: 0.5rem;
|
|
font-size: 0.8rem;
|
|
color: #78350f;
|
|
}
|
|
|
|
.question-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.question-card h3 {
|
|
margin: 0 0 1rem;
|
|
color: #1e293b;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.question-input input {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.question-input input:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.question-textarea textarea {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
min-height: 200px;
|
|
transition: border-color 0.2s;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.question-textarea textarea:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.question-textarea textarea::placeholder {
|
|
color: #94a3b8;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.char-count {
|
|
text-align: right;
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.suggestions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.suggestion-chip {
|
|
background: #f0f9ff;
|
|
border: 1px solid #bae6fd;
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 1rem;
|
|
font-size: 0.85rem;
|
|
color: #0369a1;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.suggestion-chip:hover {
|
|
background: #e0f2fe;
|
|
border-color: #7dd3fc;
|
|
}
|
|
|
|
.question-options {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.option-btn {
|
|
background: #f8fafc;
|
|
border: 2px solid #e2e8f0;
|
|
padding: 0.75rem 1.25rem;
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
font-size: 0.95rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.option-btn:hover {
|
|
border-color: #6366f1;
|
|
background: #faf5ff;
|
|
}
|
|
|
|
.option-btn.selected {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.multiselect .option-btn.selected {
|
|
background: #10b981;
|
|
}
|
|
|
|
/* Options with icons */
|
|
.option-btn.has-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.option-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.option-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.title-input {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.title-input:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
/* Wizard actions */
|
|
.wizard-actions {
|
|
margin-top: 2rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Review */
|
|
.review-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.review-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.review-card h2 {
|
|
margin: 0 0 1rem;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.review-summary {
|
|
color: #475569;
|
|
font-size: 1.1rem;
|
|
margin: 0 0 1.5rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.review-details {
|
|
background: #f0fdf4;
|
|
border-radius: 0.75rem;
|
|
padding: 1.25rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.review-details h4 {
|
|
margin: 0 0 0.5rem;
|
|
color: #166534;
|
|
}
|
|
|
|
.prompt-learning {
|
|
color: #15803d;
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.generate-btn {
|
|
font-size: 1.25rem;
|
|
padding: 1rem 2rem;
|
|
}
|
|
|
|
/* Loading card */
|
|
.wizard-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 2.5rem 2rem;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.wizard-card.centered {
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-animation {
|
|
position: relative;
|
|
width: 120px;
|
|
height: 120px;
|
|
margin: 0 auto 2rem;
|
|
}
|
|
|
|
.loading-emoji {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 3rem;
|
|
animation: pulse 1s ease-in-out infinite;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 4px solid #e2e8f0;
|
|
border-top-color: #6366f1;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { transform: translate(-50%, -50%) scale(1); }
|
|
50% { transform: translate(-50%, -50%) scale(1.1); }
|
|
}
|
|
|
|
.loading-title {
|
|
font-size: 1.75rem;
|
|
color: #6366f1;
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.loading-message {
|
|
font-size: 1.25rem;
|
|
color: #1e293b;
|
|
margin: 0 0 1.5rem;
|
|
min-height: 2rem;
|
|
}
|
|
|
|
.loading-progress {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.progress-dots {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: #e2e8f0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.dot.active {
|
|
background: #6366f1;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.loading-subtitle {
|
|
color: #64748b;
|
|
font-size: 0.95rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Testing */
|
|
.testing-section {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.testing-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
background: white;
|
|
padding: 1.5rem;
|
|
border-radius: 1rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.testing-info h1 {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.testing-info p {
|
|
margin: 0;
|
|
color: #64748b;
|
|
}
|
|
|
|
.testing-stats {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
margin-top: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.test-timer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: #fef3c7;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 2rem;
|
|
}
|
|
|
|
.timer-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.timer-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #92400e;
|
|
}
|
|
|
|
.timer-label {
|
|
color: #b45309;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.tokens-used {
|
|
background: #f0f9ff;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 2rem;
|
|
color: #0369a1;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.testing-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.game-preview {
|
|
background: #1e293b;
|
|
border-radius: 1rem;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
min-height: 400px;
|
|
}
|
|
|
|
.preview-iframe {
|
|
width: 100%;
|
|
height: 65vh;
|
|
min-height: 400px;
|
|
max-height: 600px;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
display: block;
|
|
background: white;
|
|
}
|
|
|
|
.game-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 400px;
|
|
color: white;
|
|
}
|
|
|
|
.game-loading .loading-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
animation: pulse 1s ease-in-out infinite;
|
|
}
|
|
|
|
.game-loading p {
|
|
font-size: 1.1rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* Refine */
|
|
.refine-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.refine-card textarea {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
resize: vertical;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.refine-card textarea:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.refine-tips {
|
|
background: #f0f9ff;
|
|
padding: 1rem;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.refine-tips h4 {
|
|
margin: 0 0 0.25rem;
|
|
color: #0369a1;
|
|
}
|
|
|
|
.refine-tips p {
|
|
margin: 0;
|
|
color: #0284c7;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Publish */
|
|
.publish-form {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
/* Difficulty selector */
|
|
.difficulty-selector {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.difficulty-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
background: white;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.difficulty-option:hover {
|
|
border-color: #cbd5e1;
|
|
}
|
|
|
|
.difficulty-option.selected {
|
|
border-color: #6366f1;
|
|
background: #eef2ff;
|
|
}
|
|
|
|
.difficulty-option.difficulty-easy.selected {
|
|
border-color: #10b981;
|
|
background: #d1fae5;
|
|
}
|
|
|
|
.difficulty-option.difficulty-medium.selected {
|
|
border-color: #f59e0b;
|
|
background: #fef3c7;
|
|
}
|
|
|
|
.difficulty-option.difficulty-hard.selected {
|
|
border-color: #ef4444;
|
|
background: #fee2e2;
|
|
}
|
|
|
|
.difficulty-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.difficulty-label {
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.publish-preview {
|
|
background: #f8fafc;
|
|
border-radius: 0.75rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.publish-preview h4 {
|
|
margin: 0 0 0.75rem;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.preview-card-mini {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.preview-icon {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.preview-card-mini strong {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.preview-card-mini p {
|
|
margin: 0;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.publish-btn {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Success */
|
|
.success-card {
|
|
text-align: center;
|
|
max-width: 550px;
|
|
}
|
|
|
|
.success-confetti {
|
|
font-size: 5rem;
|
|
margin-bottom: 1rem;
|
|
animation: bounce 0.6s ease infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
.success-card h1 {
|
|
margin: 0 0 0.5rem;
|
|
color: #10b981;
|
|
}
|
|
|
|
.success-message {
|
|
font-size: 1.1rem;
|
|
color: #475569;
|
|
margin: 0 0 1.5rem;
|
|
}
|
|
|
|
.xp-reward {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 2rem;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 600;
|
|
color: #92400e;
|
|
}
|
|
|
|
.xp-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.level-up {
|
|
background: #10b981;
|
|
color: white;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 1rem;
|
|
font-size: 0.85rem;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.achievements-earned {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.achievements-earned h3 {
|
|
margin: 0 0 0.75rem;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.achievement-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.achievement-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: #faf5ff;
|
|
border: 1px solid #e9d5ff;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 2rem;
|
|
}
|
|
|
|
.achievement-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.achievement-name {
|
|
font-weight: 500;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.success-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Saved indicator */
|
|
.saved-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: #d1fae5;
|
|
border: 1px solid #6ee7b7;
|
|
color: #065f46;
|
|
padding: 0.875rem 1.25rem;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.saved-icon {
|
|
background: #10b981;
|
|
color: white;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Retry notice */
|
|
.retry-notice {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
background: #fef3c7;
|
|
border: 1px solid #fcd34d;
|
|
color: #92400e;
|
|
padding: 1rem 1.25rem;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.retry-icon {
|
|
font-size: 1.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.retry-notice strong {
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.retry-notice p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Auto-save note */
|
|
.auto-save-note {
|
|
margin-top: 1rem;
|
|
padding: 0.75rem;
|
|
background: #f0fdf4;
|
|
border-radius: 0.5rem;
|
|
color: #166534;
|
|
font-size: 0.85rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Error */
|
|
.error-alert {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
color: #dc2626;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Mobile responsive */
|
|
@media (max-width: 640px) {
|
|
.wizard-page {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.wizard-progress {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.step-label {
|
|
display: none;
|
|
}
|
|
|
|
.wizard-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.style-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.testing-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.testing-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.preview-iframe {
|
|
height: 50vh;
|
|
}
|
|
|
|
.success-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.success-actions .btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* ==========================================
|
|
PROMPT REVIEW SECTION
|
|
========================================== */
|
|
|
|
.prompt-review-section {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* View Mode Toggle */
|
|
.prompt-view-toggle {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toggle-btn {
|
|
padding: 0.6rem 1rem;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
background: white;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.toggle-btn.active {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.tips-toggle {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Tips Panel */
|
|
.prompt-tips-panel {
|
|
background: linear-gradient(135deg, #f0edff 0%, #e8f4fd 100%);
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid #c7d2fe;
|
|
}
|
|
|
|
.prompt-tips-panel h3 {
|
|
margin: 0 0 1rem;
|
|
font-size: 1rem;
|
|
color: #4338ca;
|
|
}
|
|
|
|
.tips-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.tip {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tip-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tip-do {
|
|
color: #166534;
|
|
}
|
|
|
|
.tip-dont {
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* Prompt Editor Container */
|
|
.prompt-editor-container {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Highlighted Prompt View */
|
|
.prompt-highlighted {
|
|
background: #1a1a2e;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.6;
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
border: 2px solid #312e81;
|
|
}
|
|
|
|
.prompt-line {
|
|
color: #94a3b8;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.prompt-line.user-content {
|
|
color: #a5b4fc;
|
|
background: rgba(99, 102, 241, 0.15);
|
|
padding: 2px 6px;
|
|
margin: 0 -6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.prompt-line.header-line {
|
|
color: #f0abfc;
|
|
font-weight: 600;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.prompt-line.bullet-line {
|
|
color: #cbd5e1;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.prompt-line.important-line {
|
|
color: #fbbf24;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Edit Mode Textarea */
|
|
.prompt-textarea {
|
|
width: 100%;
|
|
min-height: 350px;
|
|
padding: 1.25rem;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.6;
|
|
border: 2px solid #6366f1;
|
|
border-radius: 12px;
|
|
background: #fafaff;
|
|
resize: vertical;
|
|
color: #1e1b4b;
|
|
}
|
|
|
|
.prompt-textarea:focus {
|
|
outline: none;
|
|
border-color: #8b5cf6;
|
|
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
|
|
}
|
|
|
|
/* Prompt Stats */
|
|
.prompt-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.edited-badge {
|
|
color: #6366f1;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.prompt-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
position: sticky;
|
|
bottom: 0;
|
|
background: linear-gradient(to top, #f8fafc 60%, transparent);
|
|
padding: 1rem 0;
|
|
margin: 0 -1rem;
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.prompt-actions .btn {
|
|
min-height: 48px;
|
|
}
|
|
|
|
.prompt-actions .btn-secondary {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.prompt-actions .generate-btn {
|
|
flex: 1;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Complexity Warning */
|
|
.complexity-warning {
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
border: 2px solid #f59e0b;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.25rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.complexity-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.complexity-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.complexity-header strong {
|
|
color: #92400e;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.complexity-score {
|
|
background: #f59e0b;
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.complexity-warning p {
|
|
color: #78350f;
|
|
font-size: 0.9rem;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.complexity-warning ul {
|
|
margin: 0.5rem 0;
|
|
padding-left: 1.25rem;
|
|
}
|
|
|
|
.complexity-warning li {
|
|
color: #92400e;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.complexity-tip {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 8px;
|
|
margin-top: 0.75rem !important;
|
|
}
|
|
|
|
.complexity-tip strong {
|
|
color: #78350f;
|
|
}
|
|
|
|
/* Mobile adjustments for prompt review */
|
|
@media (max-width: 640px) {
|
|
.prompt-view-toggle {
|
|
justify-content: center;
|
|
}
|
|
|
|
.tips-toggle {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
order: -1;
|
|
}
|
|
|
|
.prompt-highlighted {
|
|
font-size: 0.8rem;
|
|
padding: 1rem;
|
|
max-height: 40vh;
|
|
}
|
|
|
|
.prompt-textarea {
|
|
min-height: 250px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.prompt-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.prompt-actions .btn-secondary {
|
|
flex: 1;
|
|
min-width: calc(50% - 0.5rem);
|
|
}
|
|
|
|
.prompt-actions .generate-btn {
|
|
width: 100%;
|
|
order: -1;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|