/**
 * Market Report Blog Post Styles
 * Used by generate_complete_report.py
 * Supports light/dark themes via [data-theme="dark"]
 */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-value {
    color: #60a5fa;
}

.stat-label {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .stat-label {
    color: #f1f5f9;
}

.stat-note {
    font-size: 0.85rem;
    color: #64748b;
}

[data-theme="dark"] .stat-note {
    color: #94a3b8;
}

/* Sections */
.report-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

[data-theme="dark"] .section-title {
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f172a;
}

[data-theme="dark"] .section-subtitle {
    color: #f1f5f9;
}

/* Body Text */
.body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #0f172a;
    margin-bottom: 1rem;
}

[data-theme="dark"] .body-text {
    color: #f1f5f9;
}

.body-text:last-child {
    margin-bottom: 0;
}

.source-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
    font-style: italic;
}

[data-theme="dark"] .source-note {
    color: #94a3b8;
}

/* Chart Images */
.chart-image {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chart-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Skills Grid */
.skills-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-badge {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

[data-theme="dark"] .skill-badge {
    background: #1e293b;
    border-left-color: #60a5fa;
}

.skill-name {
    color: #0f172a;
    font-weight: 600;
}

[data-theme="dark"] .skill-name {
    color: #f1f5f9;
}

.skill-count {
    color: #64748b;
}

[data-theme="dark"] .skill-count {
    color: #94a3b8;
}

/* Geographic Layout */
.geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.city-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

[data-theme="dark"] .city-item {
    background: #1e293b;
}

.city-name {
    font-weight: 600;
    color: #0f172a;
}

[data-theme="dark"] .city-name {
    color: #f1f5f9;
}

.city-count {
    color: #64748b;
}

[data-theme="dark"] .city-count {
    color: #94a3b8;
}

/* Compensation Banner */
.salary-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .salary-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.salary-range {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .salary-range {
    color: #93c5fd;
}

.salary-label {
    font-size: 1.1rem;
    color: #1e40af;
    font-weight: 600;
}

[data-theme="dark"] .salary-label {
    color: #bfdbfe;
}

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

[data-theme="dark"] .job-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[data-theme="dark"] .job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

[data-theme="dark"] .job-title {
    color: #f1f5f9;
}

.job-title a {
    color: #2563eb;
    text-decoration: none;
}

[data-theme="dark"] .job-title a {
    color: #60a5fa;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-company {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .job-company {
    color: #94a3b8;
}

.job-company strong {
    color: #0f172a;
}

[data-theme="dark"] .job-company strong {
    color: #f1f5f9;
}

.job-details {
    color: #64748b;
    font-size: 0.9rem;
}

[data-theme="dark"] .job-details {
    color: #94a3b8;
}

/* CTA Button */
.cta-container {
    margin-top: 1.5rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: white !important;
}

/* About Section */
.report-about {
    border-top: 2px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 3rem;
}

[data-theme="dark"] .report-about {
    border-top-color: #334155;
}

.about-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

[data-theme="dark"] .about-text {
    color: #94a3b8;
}

.about-text:first-of-type {
    margin-top: 0;
}

.about-text strong {
    color: #0f172a;
}

[data-theme="dark"] .about-text strong {
    color: #f1f5f9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .geo-grid {
        grid-template-columns: 1fr;
    }

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

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