/* 
   marketing-automation-readiness-checker.css
   Scoped styles for the Marketing Automation Readiness Checker tool — Quiet Grid Design System
*/

/* Hero section adjustments */
.tool-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.tool-hero::before {
    display: none;
}

/* Tool Container */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    padding: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

/* Questionnaire */
.question-block {
    display: block;
    animation: slideInRight 0.3s ease;
}

.question-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    color: var(--ink);
}

.option-label:hover {
    background: var(--surface);
    border-color: var(--ink);
}

.option-label input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--accent);
}

.option-label:has(input[type="radio"]:checked),
.option-label.selected {
    background: var(--surface);
    border-color: var(--accent);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* Loading Spinner */
.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-left-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Result Dashboard */
.highlight-card {
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--accent);
}

.highlight-card::before {
    display: none;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

.score-circle-container {
    display: flex;
    justify-content: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
    border: 3px solid var(--accent);
}

/* Dynamic border colors based on score set via JS classes */
.score-circle.status-good { border-color: #22c55e; box-shadow: none; }
.score-circle.status-ok { border-color: #eab308; box-shadow: none; }
.score-circle.status-poor { border-color: #ef4444; box-shadow: none; }

.score-circle span#final-score {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.score-circle .score-total {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--muted);
    margin-top: 4px;
}

.strength-weakness-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.strength-weakness-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--ink);
}

.strength-weakness-list strong {
    display: inline-block;
    min-width: 140px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.roadmap-card h3 {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.roadmap-list, .priority-list {
    list-style: none;
    padding: 0;
}

.roadmap-list li, .priority-list li {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--ink);
}

.roadmap-list li:last-child, .priority-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.roadmap-list li span, .priority-list li span {
    color: var(--accent);
    font-weight: bold;
}

.system-recommendations {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: var(--ink);
}

.other-tools-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.other-tools-links .badge {
    color: var(--muted);
    background: var(--surface);
    border-color: var(--border);
}

.other-tools-links .badge:hover {
    background: var(--bg);
    border-color: var(--ink);
    color: var(--ink);
}

/* Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.pt-0 { padding-top: 0; }
.text-white { color: var(--ink) !important; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card {
        padding: 1.5rem;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }

    .score-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .score-circle {
        width: 130px;
        height: 130px;
    }
    
    .score-circle span#final-score {
        font-size: 2.75rem;
    }

    .strength-weakness-list strong {
        display: block;
        margin-bottom: 0.25rem;
    }
}
