/* AERIM Maturity Radar - Professional Styling */

/* ===================================
   1. CONTAINER & LAYOUT
   =================================== */

.aerim-radar-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===================================
   2. PROGRESS BAR
   =================================== */

.aerim-progress-wrapper {
    padding: 30px 40px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.aerim-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aerim-progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.aerim-progress-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ===================================
   3. FORM & QUESTION SLIDES
   =================================== */

.aerim-form {
    padding: 40px;
    position: relative;
    min-height: 500px;
}

.aerim-question-slide {
    display: none;
    animation: slideInRight 0.4s ease;
}

.aerim-question-slide.active {
    display: block;
}

.aerim-question-slide.slide-out-left {
    animation: slideOutLeft 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ===================================
   4. PHASE BADGES
   =================================== */

.aerim-phase-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.aerim-phase-badge.phase-engage {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.aerim-phase-badge.phase-refine {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.aerim-phase-badge.phase-integrate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.aerim-phase-badge.phase-measure {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* ===================================
   5. QUESTION CONTENT
   =================================== */

.aerim-question-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #0f172a;
}

.aerim-question-description {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 32px 0;
}

/* ===================================
   6. LIKERT SCALE
   =================================== */

.aerim-likert-scale {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.aerim-radio-option {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.aerim-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aerim-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 100px;
}

.aerim-radio-option:hover .aerim-radio-label {
    border-color: #6366f1;
    background: #f1f5ff;
    transform: translateY(-2px);
}

.aerim-radio-option input[type="radio"]:checked + .aerim-radio-label {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: #ffffff;
    transform: scale(1.05);
}

.aerim-radio-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.aerim-radio-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: block;
}

/* ===================================
   7. NAVIGATION BUTTONS
   =================================== */

.aerim-nav-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.aerim-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.aerim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aerim-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.aerim-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.aerim-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.aerim-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ===================================
   8. RESULTS CONTAINER
   =================================== */

.aerim-results-container {
    padding: 40px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.aerim-results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
}

.aerim-results-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
}

/* ===================================
   9. MATURITY BADGE
   =================================== */

.aerim-maturity-badge {
    display: inline-block;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
}

.aerim-badge-score {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.aerim-badge-level {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.aerim-badge-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    line-height: 1.5;
}

.level-adhoc {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.level-foundational {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.level-defined {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.level-aligned {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.level-optimizing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ===================================
   10. RADAR CHART
   =================================== */

.aerim-chart-container {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
}

/* ===================================
   11. PHASE SCORES GRID
   =================================== */

.aerim-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.aerim-phase-score-card {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.aerim-phase-score-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.aerim-phase-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.aerim-score-display {
    font-size: 36px;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 12px;
}

.aerim-score-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.aerim-score-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.aerim-score-level {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ===================================
   12. NEXT STEPS & RECOMMENDATIONS
   =================================== */

.aerim-next-steps {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.aerim-next-steps-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.aerim-next-steps-content > p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.aerim-recommendations {
    display: grid;
    gap: 16px;
}

.aerim-recommendation-card {
    background: #ffffff;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    padding: 20px;
}

.aerim-recommendation-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #6366f1;
    margin: 0 0 8px 0;
}

.aerim-recommendation-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   13. CTA SECTION
   =================================== */

.aerim-cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 32px 28px;
    border-radius: 12px;
    color: #fff !important;
    text-align: center;
    margin-top: 28px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(30, 58, 138, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.aerim-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 50%),
                radial-gradient(circle at bottom right, rgba(30, 58, 138, 0.2), transparent 50%);
    pointer-events: none;
}

.aerim-cta-section h3 {
    color: #ffffff !important;
    font-size: 1.375rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.aerim-cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9375rem;
    margin: 0 0 20px 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.aerim-btn-cta {
    display: inline-block;
    padding: 12px 32px;
    background: #f97316;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(249, 115, 22, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.aerim-btn-cta:hover {
    transform: translateY(-3px);
    background: #ea580c;
    box-shadow: 
        0 15px 40px rgba(249, 115, 22, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    color: #ffffff;
    text-decoration: none;
}

/* ===================================
   14. RESTART SECTION
   =================================== */

.aerim-restart-section {
    text-align: center;
    padding-top: 20px;
}

/* ===================================
   15. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .aerim-radar-container {
        margin: 20px;
        border-radius: 12px;
    }

    .aerim-progress-wrapper {
        padding: 20px 24px 16px;
    }

    .aerim-form {
        padding: 24px;
        min-height: 450px;
    }

    .aerim-question-title {
        font-size: 20px;
    }

    .aerim-question-description {
        font-size: 14px;
    }

    .aerim-likert-scale {
        flex-direction: column;
        gap: 10px;
    }

    .aerim-radio-label {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
        min-height: auto;
    }

    .aerim-radio-number {
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 16px;
    }

    .aerim-radio-text {
        text-align: left;
    }

    .aerim-nav-buttons {
        flex-direction: column-reverse;
    }

    .aerim-btn {
        width: 100%;
    }

    .aerim-results-container {
        padding: 24px;
    }

    .aerim-results-title {
        font-size: 24px;
    }

    .aerim-badge-score {
        font-size: 36px;
    }

    .aerim-badge-level {
        font-size: 18px;
    }

    .aerim-scores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .aerim-phase-score-card {
        padding: 16px;
    }

    .aerim-score-display {
        font-size: 28px;
    }

    .aerim-cta-section {
        padding: 24px 20px;
    }

    .aerim-cta-section h3 {
        font-size: 1.25rem;
    }

    .aerim-cta-section p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .aerim-scores-grid {
        grid-template-columns: 1fr;
    }

    .aerim-chart-container {
        padding: 20px;
    }
}

/* ===================================
   16. PRINT STYLES
   =================================== */

@media print {
    .aerim-radar-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .aerim-btn,
    .aerim-restart-section,
    .aerim-nav-buttons {
        display: none;
    }

    .aerim-question-slide {
        page-break-inside: avoid;
    }
}
