/* ========== PAGE: FIND MY TOOL QUIZ (BASE44-LEVEL POLISH - Phase 4.2d) ========== */

.find-page {
    min-height: calc(100vh - 200px);
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.quiz-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.quiz-header h1 {
    color: var(--c-accent);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.quiz-subtitle {
    color: var(--c-text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

/* Progress Indicator */
.progress-indicator {
    margin-top: var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#progress-text {
    display: block;
    color: var(--c-text-muted);
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--c-accent);
    transition: width var(--t-med) ease;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

/* Question Container */
.question-container {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    min-height: 320px;
    box-shadow: var(--shadow-2);
}

.question h2 {
    color: var(--c-text);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.question-helper {
    color: var(--c-text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.answer-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--space-4) var(--space-5);
    color: var(--c-text);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--t-fast);
}

.answer-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateX(4px);
}

.answer-option.selected {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--c-accent);
    color: var(--c-accent);
    font-weight: 600;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.quiz-navigation .btn {
    flex: 1;
    max-width: 200px;
}

.quiz-alternatives {
    text-align: center;
    margin-top: var(--space-8);
}

.quiz-alternatives p {
    color: var(--c-text-muted);
    font-size: var(--text-sm);
}

.quiz-alternatives a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 500;
}

.quiz-alternatives a:hover {
    text-decoration: underline;
}

/* ========== RESULTS SECTION ========== */

.results-container {
    max-width: 1000px;
    /* Wider for grid */
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.results-header h2 {
    color: var(--c-accent);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.results-subtitle {
    color: var(--c-text-muted);
    font-size: var(--text-lg);
}

/* Premium Results Summary Card */
.results-summary {
    background: var(--c-surface);
    border: 1px solid var(--c-accent);
    /* Highlight border */
    border-radius: var(--r-lg);
    padding: var(--space-6);
    margin: 0 auto var(--space-8);
    max-width: 800px;
    text-align: left;
    box-shadow: 0 0 24px rgba(245, 166, 35, 0.1);
}

.results-summary h3 {
    color: var(--c-accent);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
    padding-bottom: var(--space-3);
    font-weight: 700;
}

.results-summary p {
    color: var(--c-text);
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0;
}

.results-summary strong {
    color: #fff;
    font-weight: 600;
}

/* Recommended Tools Grid */
.recommended-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* Tool Result Card - Matches Browse Hierarchy */
.tool-result-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--space-6);
    transition: all var(--t-med);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Automatic "Recommended" Highlight */
.tool-result-card:first-child {
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: var(--shadow-2);
}

.tool-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    background: var(--c-surface-hover);
    border-color: rgba(245, 166, 35, 0.3);
}

/* 1. Name */
.tool-result-card h4 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-lg);
    /* Larger title */
    font-weight: 700;
    line-height: 1.3;
}

.tool-result-card h4 a {
    color: var(--c-text);
    text-decoration: none;
    transition: color var(--t-fast);
}

.tool-result-card h4 a:hover {
    color: var(--c-accent);
}

/* 2. Category Pill (Moved up visually via order or just placed here) */
.tool-result-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-accent);
    background: rgba(245, 166, 35, 0.1);
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* 3. Domain */
.tool-result-domain {
    display: block;
    font-size: var(--text-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--space-4);
}

/* 4. Explanation */
.tool-result-explanation {
    color: var(--c-text);
    font-size: 15px;
    /* Slightly larger for readability */
    line-height: 1.6;
    margin-bottom: var(--space-5);
    padding: var(--space-3) 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle grouping */
    padding-left: var(--space-3);
    border-radius: var(--r-sm);
}

/* 5. Actions */
.tool-result-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-2);
}

.tool-result-actions .btn {
    flex: 1;
    font-size: var(--text-sm);
    padding: 10px 16px;
}

.btn-link-secondary {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all var(--t-fast);
}

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

/* Bottom Page Actions */
.results-actions {
    text-align: center;
    border-top: 1px solid var(--c-border);
    padding-top: var(--space-8);
    max-width: 600px;
    margin: 0 auto;
}

.results-actions #start-over-btn {
    margin-bottom: var(--space-4);
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
}

.results-actions #start-over-btn:hover {
    color: var(--c-text);
    border-color: var(--c-text);
}

.alternative-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Polish */
@media (max-width: 768px) {
    .quiz-container {
        padding: var(--space-6) var(--space-4);
    }

    .question-container {
        padding: var(--space-5);
    }

    .question h2 {
        font-size: 1.4rem;
    }

    .recommended-tools {
        grid-template-columns: 1fr;
    }

    .quiz-navigation,
    .results-actions {
        flex-direction: column;
    }

    .quiz-navigation .btn,
    .results-actions .btn,
    .alternative-links .btn {
        width: 100%;
        max-width: 100%;
    }
}