/* Base Styles & Typography */
:root {
    --primary-color: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    --secondary-color: #8b5cf6;
    --secondary-light: #ede9fe;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f97316;
    --warning-light: #ffedd5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--neutral-100);
    color: var(--neutral-800);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3, h4 {
    color: var(--neutral-900);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.subtitle {
    color: var(--neutral-600);
    font-size: 1.125rem;
}

/* Progress Bar and Step Indicators */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
    width: 0;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    position: relative;
    width: 16.666%;
}

.step-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--neutral-500);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.step-indicator.active .step-dot {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-indicator.completed .step-dot {
    background-color: var(--success-color);
    color: white;
}

.step-label {
    color: var(--neutral-500);
    text-align: center;
    transition: color var(--transition-normal);
}

.step-indicator.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.step-indicator.completed .step-label {
    color: var(--success-color);
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s ease-out;
}

.results-card {
    padding: 2.5rem;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Welcome Screen */
.welcome-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.welcome-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefits-list li i {
    color: var(--primary-color);
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-description {
    color: var(--neutral-600);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Tooltips */
.tooltip-container {
    position: relative;
}

.info-icon {
    color: var(--primary-color);
    cursor: pointer;
}

.tooltip {
    position: absolute;
    right: 0;
    top: 100%;
    width: 250px;
    padding: 1rem;
    background-color: var(--neutral-800);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
}

input, select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Skills Rating */
.skill-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.skill-rating {
    color: var(--neutral-700);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.skill-rating-1 {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.skill-rating-2 {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.skill-rating-3 {
    background-color: var(--neutral-200);
    color: var(--neutral-700);
}

.skill-rating-4 {
    background-color: var(--success-light);
    color: var(--success-color);
}

.skill-rating-5 {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.range-container {
    margin-bottom: 0.5rem;
    position: relative;
}

.skill-description {
    font-size: 0.85rem;
    color: var(--neutral-600);
    margin-bottom: 0.75rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 0.5rem;
    background: var(--neutral-200);
    border-radius: var(--radius-lg);
    outline: none;
    padding: 0;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    border: none;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.range-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    text-align: center;
    width: 20%;
    transition: color var(--transition-fast);
}

.range-label.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Interest Checkbox */
.interest-checkbox {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--neutral-100);
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease-out;
}

.interest-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.interest-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Results Section */
.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.results-meta {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--neutral-100);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.result-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.section-description {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 2rem;
}

.radar-container {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

.network-container {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.industry-comparison {
    background-color: var(--neutral-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.benchmark-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.benchmark-label {
    width: 160px;
    font-weight: 500;
}

.benchmark-bar-container {
    flex-grow: 1;
    height: 0.5rem;
    background-color: var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 1rem;
}

.benchmark-bar {
    height: 100%;
    border-radius: var(--radius-lg);
}

.benchmark-value {
    font-weight: 500;
    width: 50px;
    text-align: right;
}

.benchmark-you {
    background-color: var(--primary-color);
}

.benchmark-industry {
    background-color: var(--neutral-500);
}

.benchmark-experts {
    background-color: var(--success-color);
}

/* Results Lists */
.results-list {
    list-style-type: none;
    padding-left: 0;
}

.results-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
}

.results-list li:hover {
    transform: translateY(-2px);
}

.strength-section .results-list li {
    background-color: var(--success-light);
    border-left: 4px solid var(--success-color);
}

.improvement-section .results-list li {
    background-color: var(--warning-light);
    border-left: 4px solid var(--warning-color);
}

.skill-info {
    flex-grow: 1;
}

.skill-meta {
    font-size: 0.8rem;
    color: var(--neutral-600);
    margin-top: 0.25rem;
}

.strength-rating, .improvement-rating {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.strength-rating {
    background-color: var(--success-color);
    color: white;
}

.improvement-rating {
    background-color: var(--warning-color);
    color: white;
}

/* Roadmap */
.learning-roadmap {
    background-color: var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.roadmap-container {
    margin-top: 1rem;
}

.roadmap-step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.roadmap-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 2rem;
    top: 4rem;
    bottom: -2rem;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.roadmap-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.roadmap-content {
    flex-grow: 1;
}

.roadmap-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.roadmap-description {
    color: var(--neutral-700);
    margin-bottom: 0.75rem;
}

.roadmap-resources {
    background-color: white;
    border-radius: var(--radius);
    padding: 0.75rem;
}

.roadmap-resources-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resource-list {
    list-style: none;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resource-icon {
    color: var(--primary-color);
}

/* Learning Interests */
.learning-interests {
    background-color: var(--secondary-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.no-interests {
    color: var(--neutral-600);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.interest-tag {
    background-color: white;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.interest-tag:hover {
    transform: translateY(-2px);
}

.interest-tag .category {
    color: var(--neutral-500);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    background-color: var(--neutral-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

/* Resource Recommendations */
.resource-recommendations {
    background-color: var(--neutral-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.resource-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    transition: transform var(--transition-fast);
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resource-type {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.resource-details {
    flex-grow: 1;
}

.resource-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.resource-source {
    color: var(--neutral-500);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.resource-description {
    font-size: 0.9rem;
}

.resource-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.resource-skill-tag {
    font-size: 0.75rem;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

/* Download Section */
.download-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.download-btn:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-400);
}

.download-btn.primary-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.download-btn.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn {
    background-color: white;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
}

.nav-btn:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-400);
}

.primary-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

/* Step visibility */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.875rem;
    margin-top: 3rem;
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--neutral-400);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--neutral-200);
    }

    .navigation, .progress-container, .download-section, footer {
        display: none;
    }

    .step {
        display: block;
        page-break-inside: avoid;
    }

    .chart-container, .radar-container, .network-container {
        break-inside: avoid;
    }

    .results-grid {
        page-break-inside: avoid;
    }

    .roadmap-step {
        page-break-inside: avoid;
    }
}

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

    .step-indicators {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .step-indicator {
        min-width: 80px;
    }

    .roadmap-step {
        flex-direction: column;
    }

    .roadmap-icon {
        margin-bottom: 1rem;
    }

    .roadmap-step:not(:last-child)::after {
        left: 2rem;
        top: 4rem;
        height: 2rem;
        width: 2px;
    }
}