/* Core Layout */
.market-page-container { font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #333; }
.market-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.market-main { flex: 1 1 600px; }
.market-sidebar { flex: 1 1 300px; }

/* Hero */
.market-hero { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e9ecef; }
.market-breadcrumbs { font-size: 12px; color: #6c757d; margin-bottom: 10px; }
.market-breadcrumbs a { color: #007bff; text-decoration: none; }
.market-title { font-size: 26px; font-weight: 700; color: #212529; margin: 0 0 10px 0; }
.year-badge { background: #ffc107; color: #212529; font-size: 11px; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 8px; }

/* Pulse Bar */
.market-pulse-bar { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: #495057; }
.pulse-item { display: flex; align-items: center; }
.pulse-item i { margin-right: 6px; color: #adb5bd; }
.pulse-icon { color: #28a745; animation: pulse 2s infinite; font-size: 8px; }
.text-success { color: #28a745; font-weight: 600; }
.text-warning { color: #ffc107; font-weight: 600; }

/* Cards */
.market-card { background: #fff; border: 1px solid #dee2e6; border-radius: 6px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.market-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 15px 0; border-bottom: 1px solid #f1f3f5; padding-bottom: 10px; color: #343a40; }
.market-card h3 i { color: #007bff; margin-right: 8px; }

/* Lists & Text */
.market-text { line-height: 1.6; font-size: 14px; color: #495057; }
.market-list { list-style: none; padding: 0; margin-top: 10px; }
.market-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; }
.market-list li:before { content: "\2713"; position: absolute; left: 0; color: #28a745; font-weight: bold; }

/* Salary */
.salary-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.salary-big { font-size: 28px; font-weight: 700; color: #212529; }
.salary-sub { font-size: 12px; color: #6c757d; }
.salary-trend { color: #28a745; font-size: 12px; background: #e6f9ed; padding: 3px 6px; border-radius: 4px; font-weight: 600; }
.chart-container { position: relative; height: 200px; width: 100%; }

/* Sidebar Widgets */
.company-list { list-style: none; padding: 0; margin: 0; }
.company-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f8f9fa; font-size: 14px; }
.company-item:last-child { border-bottom: none; }
.hiring-badge { background: #e6f9ed; color: #28a745; font-size: 10px; padding: 2px 5px; border-radius: 4px; }

.skill-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag { background: #f1f3f5; color: #495057; padding: 4px 10px; border-radius: 12px; font-size: 12px; text-decoration: none; transition: 0.2s; }
.skill-tag:hover { background: #007bff; color: white; text-decoration: none; }

.market-ad-sidebar { background: #f8f9fa; height: 300px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px dashed #dee2e6; color: #adb5bd; font-size: 12px; }

/* Tabs */
.market-tabs { list-style: none; padding: 0; display: flex; border-bottom: 2px solid #e9ecef; margin-bottom: 20px; cursor: pointer; }
.market-tabs li { padding: 10px 20px; font-weight: 600; color: #6c757d; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.market-tabs li.active { border-bottom-color: #007bff; color: #007bff; }
.market-tabs li:hover { color: #343a40; }

/* Adzuna Cards */
.adzuna-job-card { border: 1px solid #e9ecef; border-left: 3px solid #007bff; padding: 15px; margin-bottom: 10px; border-radius: 4px; transition: 0.2s; }
.adzuna-job-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.adzuna-title { font-size: 16px; font-weight: 600; color: #007bff; margin: 0 0 5px 0; display: block; text-decoration: none; }
.adzuna-meta { font-size: 12px; color: #6c757d; margin-bottom: 10px; }
.btn-apply-sm { background: #007bff; color: white; font-size: 12px; padding: 4px 10px; border-radius: 4px; text-decoration: none; float: right; }
.adzuna-attribution { text-align: right; font-size: 10px; color: #adb5bd; margin-top: 5px; }

/* FAQ */
details { margin-bottom: 10px; border-bottom: 1px solid #f1f3f5; padding-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; color: #495057; outline: none; }
details p { margin: 10px 0 0 15px; font-size: 14px; color: #6c757d; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Mobile */
@media (max-width: 768px) {
    .market-grid { flex-direction: column; }
    .salary-header { flex-direction: column; align-items: flex-start; }
    .salary-trend { margin-top: 5px; }
}
/* --- New Styles for Updated View --- */

/* Career Path Visual */
.career-path-visual { display: flex; flex-direction: column; gap: 10px; background: #fdfdfd; padding: 20px; border-radius: 8px; border: 1px dashed #dee2e6; }
.path-step { display: flex; align-items: center; background: #fff; padding: 12px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #e9ecef; }
.step-count { background: #007bff; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; margin-right: 12px; flex-shrink: 0; }
.step-text { font-weight: 600; color: #343a40; font-size: 14px; }
.path-arrow { text-align: center; color: #adb5bd; font-size: 18px; margin: -5px 0; }

/* Vertical Skills List */
.skill-list-vertical { display: flex; flex-direction: column; gap: 8px; }
.skill-item-link { display: block; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; color: #495057; font-size: 13px; text-decoration: none; border-left: 3px solid #ced4da; transition: 0.2s; }
.skill-item-link:hover { background: #e9ecef; border-left-color: #007bff; color: #007bff; text-decoration: none; }

/* Stacked Jobs Layout */
.market-section { margin-top: 30px; }
.google-results-wrapper { min-height: 400px; }
.google-results-wrapper .gsc-control-cse { padding: 0 !important; }
