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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.description {
    font-size: 1.1em;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 40px;
    border-bottom: 1px solid #ecf0f1;
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 600;
}

h3 {
    color: #34495e;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Chart Section */
/* Chart Hint */
.chart-hint {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 15px;
    font-style: italic;
}

/* Insights Section */
.insights-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-top: 3px solid #3498db;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insights-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.insights-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insights-card.full-width {
    grid-column: 1 / -1;
}

.insights-card h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.insights-card h4 {
    color: #34495e;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.insight-emoji {
    font-size: 4em;
    text-align: center;
    margin: 20px 0;
}

.insights-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-card li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insights-card li:last-child {
    border-bottom: none;
}

.salary-value {
    font-weight: bold;
    color: #2980b9;
    font-size: 1.1em;
}

.salary-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.work-value {
    font-weight: bold;
    color: #27ae60;
}

.prospect-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.degree-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.degree-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #e8f6fd;
    color: #2980b9;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid #3498db;
}

/* Career Progression */
.progression-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.progression-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.progression-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.progression-label {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 600;
}

.progression-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.progression-item:nth-child(1) .progression-value { color: #3498db; }
.progression-item:nth-child(2) .progression-value { color: #2ecc71; }
.progression-item:nth-child(3) .progression-value { color: #f39c12; }

.source-text {
    color: #7f8c8d;
    line-height: 1.8;
    font-style: italic;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #f39c12;
    padding: 20px 40px;
    margin: 20px 0;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #856404;
    line-height: 1.6;
}

.disclaimer-icon {
    font-size: 1.5em;
}

/* Experience Filter */
#experienceFilter {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

#experienceFilter .filter-btn {
    flex: 1;
    max-width: 250px;
    padding: 15px 20px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#experienceFilter .filter-btn:hover {
    background: #ebf5fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

#experienceFilter .filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

#experienceFilter .filter-btn[data-exp="mid"] {
    border-color: #2ecc71;
    color: #2ecc71;
}

#experienceFilter .filter-btn[data-exp="mid"].active {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
}

#experienceFilter .filter-btn[data-exp="senior"] {
    border-color: #f39c12;
    color: #f39c12;
}

#experienceFilter .filter-btn[data-exp="senior"].active {
    background: #f39c12;
    color: white;
    border-color: #e67e22;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 30px 40px;
    border-bottom: 1px solid #ecf0f1;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #ebf5fb;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #3498db;
    color: white;
}

.filter-btn.filter-reset {
    border-color: #95a5a6;
    color: #95a5a6;
}

.filter-btn.filter-reset:hover {
    background: #ecf0f1;
}

.filter-btn.filter-reset.active {
    background: #95a5a6;
    color: white;
}

/* Quadrant Legend */
.quadrant-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.quadrant-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.quadrant-legend .legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Chart Section */
.chart-section {
    background: #f8f9fa;
}

.chart-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1em;
}

.chart-container {
    position: relative;
    height: 600px;
    margin-bottom: 30px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-point {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Metrics Section */
.metrics-section {
    background: white;
}

.metric-category {
    margin-bottom: 40px;
}

.metric-category:last-child {
    margin-bottom: 0;
}

.metric-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.chart-container-small {
    position: relative;
    height: 300px;
}

/* Major Section */
.major-section {
    background: #f8f9fa;
}

.section-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1em;
}

.major-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.major-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #3498db;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.major-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.career-paths {
    list-style: none;
    margin-bottom: 15px;
}

.career-paths li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #34495e;
    cursor: pointer;
    transition: color 0.2s ease;
}

.career-paths li:last-child {
    border-bottom: none;
}

.career-paths li:hover {
    color: #3498db;
}

.career-paths li::before {
    content: "→ ";
    color: #3498db;
    font-weight: bold;
}

.avg-salary {
    background: #e8f6fd;
    color: #2980b9;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.prospects-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.prospects-badge.good {
    background: #d5f5e3;
    color: #27ae60;
}

.prospects-badge.medium {
    background: #fdebd0;
    color: #f39c12;
}

.prospects-badge.poor {
    background: #fadbd8;
    color: #e74c3c;
}

.warning-note {
    background: #fef9e7;
    color: #f39c12;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85em;
    margin-top: 10px;
    border-left: 3px solid #f39c12;
}

/* Sources Section */
.sources-section {
    background: #f8f9fa;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.source-category {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.source-category h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.source-category ul {
    list-style: none;
}

.source-category li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.9em;
}

.source-category a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-category a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Notes Section */
.notes-section {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
}

.notes-section ul {
    margin-left: 20px;
    line-height: 2.2;
}

.notes-section li {
    color: #856404;
}

.notes-section strong {
    color: #664d03;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
}

.disclaimer-section p {
    color: #721c24;
    margin-bottom: 15px;
    line-height: 1.8;
}

.last-updated {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1aeb5 !important;
    color: #6c757d !important;
    font-weight: 600;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.tip {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 15px !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    section {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.5em;
    }

    .chart-container {
        height: 400px;
    }

    .chart-container-small {
        height: 250px;
    }

    .major-grid {
        grid-template-columns: 1fr;
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }

    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile filter buttons */
    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .quadrant-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile card view for major cards */
    .major-card {
        padding: 20px;
    }

    /* Mobile progression grid */
    .progression-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Mobile experience filter */
    #experienceFilter {
        flex-direction: column;
    }

    #experienceFilter .filter-btn {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    section {
        page-break-inside: avoid;
    }

    .chart-container {
        page-break-inside: avoid;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.major-card {
    animation: fadeIn 0.6s ease-out;
}

.major-card:nth-child(1) { animation-delay: 0.1s; }
.major-card:nth-child(2) { animation-delay: 0.2s; }
.major-card:nth-child(3) { animation-delay: 0.3s; }
.major-card:nth-child(4) { animation-delay: 0.4s; }
.major-card:nth-child(5) { animation-delay: 0.5s; }
.major-card:nth-child(6) { animation-delay: 0.6s; }
.major-card:nth-child(7) { animation-delay: 0.7s; }
.major-card:nth-child(8) { animation-delay: 0.8s; }
