/* ==========================================================================
   Risel – Market Insights & Salary Trends CSS
   Design System: Sora + Inter, Modern SaaS, Clean Light Mode Grid
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.mi-main {
    padding-bottom: 40px;
}

.mi-hero {
    padding: 12px 0 6px;
    text-align: center;
    position: relative;
}

.mi-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.mi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.mi-hero-heading {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.mi-hero-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mi-hero-desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 16px;
}

/* --- ROLE SELECTOR --- */
.mi-selector-section {
    padding: 12px 0 20px;
}

.mi-selector-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    gap: 16px;
}

.mi-selector-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mi-selector-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.mi-role-select {
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 280px;
}

.mi-role-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

/* --- DASHBOARD GRID & PANELS --- */
.mi-dashboard-section {
    padding-bottom: 30px;
}

.mi-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.mi-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.mi-panel-main {
    grid-column: 1;
}

.mi-panel-metrics {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.mi-panel-full {
    grid-column: 1 / -1;
}

.mi-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.mi-panel-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.mi-panel-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Salary Bar Chart */
.mi-salary-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mi-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mi-bar-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.mi-bar-val {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.mi-bar-track {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.mi-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fill-blue { background: linear-gradient(90deg, #0066FF, #00b4ff); }
.fill-indigo { background: linear-gradient(90deg, #4f46e5, #0066FF); }
.fill-purple { background: linear-gradient(90deg, #9333ea, #4f46e5); }

/* Metrics Panel */
.mi-metric-box {
    padding: 8px 0;
}

.mi-big-num {
    font-family: 'Sora', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 8px 0 4px;
}

.mi-velocity-badge {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 100px;
    margin: 8px 0 4px;
}

.mi-metric-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.mi-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 18px 0;
}

/* Tag Cloud */
.mi-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mi-skill-tag {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.mi-skill-tag:hover {
    background: rgba(0, 102, 255, 0.12);
    transform: translateY(-1px);
}

/* --- FEATURES / BENEFITS SECTION --- */
.mi-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mi-section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.mi-section-header-center h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.mi-section-header-center p {
    font-size: 14px;
    color: var(--text-secondary);
}

.mi-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mi-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mi-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 255, 0.25);
}

.mi-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-blue { background: rgba(0, 102, 255, 0.08); color: #0066FF; }
.icon-amber { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.icon-emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
.icon-purple { background: rgba(147, 51, 234, 0.08); color: #9333ea; }
.icon-sky { background: rgba(2, 132, 199, 0.08); color: #0284c7; }

.mi-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mi-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* --- SEO SECTION --- */
.mi-seo-section {
    padding: 40px 0;
}

.mi-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.mi-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.mi-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.mi-faq-section {
    padding: 40px 0 60px;
}

.mi-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mi-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mi-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.06);
}

.mi-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.mi-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.mi-faq-item.active .mi-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.mi-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.mi-faq-item.active .mi-faq-ans {
    display: block;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .mi-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mi-panel-main,
    .mi-panel-metrics {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .mi-selector-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .mi-role-select {
        width: 100%;
    }
}
