/**
 * Wizard Styles
 * Project creation wizard for CCBready
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(160deg, #22c55e 0%, #16a34a 25%, #15803d 50%, #166534 75%, #14532d 100%);
    min-height: 100vh;
    color: #333;
}

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

.wizard-header {
    text-align: center;
    padding: 20px 0;
    color: white;
}

.wizard-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.wizard-header .subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.progress-dot.active {
    background: #10b981;
    transform: scale(1.2);
}

.progress-dot.completed {
    background: #10b981;
}

.wizard-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding-bottom: 20px;
}

.step.active {
    display: flex;
}

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

.step-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 10px;
}

.step-hint {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #16a34a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.choice-btn {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.choice-btn:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.choice-btn.selected {
    border-color: #16a34a;
    background: #dcfce7;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.choice-btn .choice-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #166534;
}

.choice-btn .choice-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 4px;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.info-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.info-box.success {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.info-box p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

.info-box.success p {
    color: #065f46;
}

.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list .icon {
    font-size: 1.2rem;
}

.summary-list .label {
    color: #666;
    font-size: 0.9rem;
}

.summary-list .value {
    font-weight: 600;
    color: #166534;
}

.requirements-preview {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.requirements-preview h4 {
    margin-bottom: 15px;
    color: #166534;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.requirement-item .check {
    color: #10b981;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

.back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.back-link:hover {
    color: white;
}
