/* Quiz Page Styles */

.quiz-page {
    min-height: calc(100vh - 200px);
    background: var(--bg-primary);
}

/* Start Screen */
.quiz-start {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.start-content {
    max-width: 540px;
    margin: 0 auto;
}

.quiz-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent-light);
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.quiz-start h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.quiz-start p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.start-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.feature-icon {
    font-size: 1.1em;
}

.btn-start {
    padding: 14px 36px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-start:hover {
    background: var(--accent-secondary);
}

/* Quiz Questions */
.quiz-questions {
    padding: 140px 0 80px;
    min-height: calc(100vh - 200px);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 36px;
}

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

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Question */
.question-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.35;
    color: var(--text-primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.option-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

.option-btn.selected {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.option-icon {
    font-size: 1.75em;
}

.option-label {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

/* Navigation */
.quiz-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-back {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Results */
.quiz-results {
    padding: 140px 0 80px;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-size: 0.95em;
    color: var(--success);
    margin-bottom: 24px;
}

.results-header h1 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 16px;
}

.results-header p {
    font-size: 1.15em;
    color: var(--text-secondary);
}

/* Summary */
.results-summary {
    margin-bottom: 48px;
}

.summary-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.summary-label {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

/* Result Cards */
.results-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card.top-pick {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.top-pick-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    padding: 6px 16px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.result-card-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.result-card-image {
    width: 140px;
    height: 88px;
    background: var(--bg-elevated);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.card-placeholder {
    font-size: 2em;
    font-weight: 800;
    color: var(--text-muted);
}

.result-card-info h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-card-info .card-issuer {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 8px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-rating .stars {
    color: #fbbf24;
    font-size: 0.9em;
}

.card-rating span:last-child {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.result-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.highlight {
    color: var(--success);
}

.result-card-actions {
    display: flex;
    gap: 12px;
}

.btn-apply-result {
    flex: 1;
    padding: 14px 24px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-apply-result:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.btn-apply-result.disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-details {
    padding: 14px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-details:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-retake {
    padding: 14px 32px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retake:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-browse {
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 48px;
    background: var(--bg-card);
    border-radius: 16px;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

.no-results a {
    color: var(--accent-secondary);
}

/* Signup Prompt */
.signup-prompt {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
}

.prompt-icon {
    font-size: 3.5em;
    margin-bottom: 24px;
}

.signup-prompt h2 {
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.signup-prompt > p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 32px;
}

.prompt-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.95em;
}

.prompt-feature .check {
    color: var(--success);
    font-weight: bold;
}

.prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-signup-prompt {
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-signup-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-signin-prompt {
    color: var(--text-secondary);
    font-size: 0.9em;
    text-decoration: none;
}

.btn-signin-prompt:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.btn-skip {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-skip:hover {
    color: var(--text-secondary);
}

/* Save Profile Banner */
.save-profile-banner {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    text-align: center;
}

.save-profile-banner p {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin: 0;
}

.save-profile-banner a {
    color: var(--accent-secondary);
    font-weight: 600;
    text-decoration: none;
}

.save-profile-banner a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-start {
        padding: 140px 0 60px;
    }
    
    .quiz-start h1 {
        font-size: 2rem;
    }
    
    .start-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .question-title {
        font-size: 1.4em;
    }
    
    .summary-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .result-card-details {
        grid-template-columns: 1fr;
    }
    
    .result-card-actions {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .signup-prompt {
        padding: 40px 24px;
    }
    
    .signup-prompt h2 {
        font-size: 1.5em;
    }
}


