:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #141414;
    
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.1);
    --secondary: #ff3d71;
    --secondary-dim: rgba(255, 61, 113, 0.1);
    
    --text: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #b8b8b8;
    
    --border: #1a1a1a;
    --border-bright: #222222;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase;
}

/* ===== COMPARE CONTAINER ===== */
.compare-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.compare-hero {
    padding: 3rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== TRADE SELECTOR ===== */
.trade-selector-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
}

.trade-selector-section.hidden {
    display: none;
}

.trade-selector-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border-bright);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.trade-selector-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.trade-selector-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.trade-selector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.trade-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg);
    border: 2px solid var(--border-bright);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    user-select: none;
}

.trade-pill:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(0, 255, 136, 0.05);
}

.trade-pill.selected {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
}

.trade-pill.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.trade-pill.disabled:hover {
    border-color: var(--border-bright);
    color: var(--text-secondary);
    background: var(--bg);
}

.trade-pill .pill-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.trade-selector-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.trade-selector-count {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

.btn-compare-selected {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-compare-selected:hover:not(:disabled) {
    background: #00dd77;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-compare-selected:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ===== COMPARISON SECTION ===== */
.comparison-section {
    padding: 4rem 2rem;
}

.comparison-table {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--border-bright);
    border-radius: 1.5rem;
    overflow: hidden;
}

/* Comparison Row */
.comparison-row {
    display: grid;
    grid-template-columns: 250px repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header-row {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 184, 255, 0.05));
}

.comparison-row.action-row {
    background: var(--bg);
}

/* Row Label */
.row-label {
    padding: 2rem 2rem;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.label-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Trade Column */
.trade-column {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.trade-column.winner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.05), transparent);
    pointer-events: none;
}

.trade-column + .trade-column {
    border-left: 1px solid var(--border);
}

/* Trade Header */
.trade-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trade-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.trade-name {
    font-size: 1.5rem;
    font-weight: 900;
}

.match-badge {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Column Value */
.column-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.column-value.highlight {
    color: var(--primary);
    font-size: 1.5rem;
}

.column-note {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
}

/* Demand Bars */
.demand-bars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.bar {
    width: 32px;
    height: 8px;
    background: var(--border-bright);
    border-radius: 4px;
}

.bar.filled {
    background: var(--primary);
}

.demand-label {
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    color: var(--text-tertiary);
}

/* Potential Stars */
.potential-stars {
    color: #ffd700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.potential-label {
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    color: var(--text-tertiary);
}

/* Action Buttons */
.btn-learn-more,
.btn-see-schools {
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-learn-more {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
}

.btn-learn-more:hover {
    border-color: var(--text);
    color: var(--text);
}

.btn-see-schools {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-see-schools:hover {
    background: #00dd77;
    transform: translateY(-2px);
}

/* ===== SUMMARY SECTION ===== */
.summary-section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.summary-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
}

.summary-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
}

.summary-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.summary-trade {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.summary-verdict {
    font-size: 0.9375rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== DECISION SECTION ===== */
.decision-section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.decision-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 184, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
}

.decision-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
}

.decision-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.decision-tips {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.tip-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tip-answer {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.tip-answer strong {
    color: var(--primary);
    font-weight: 800;
}

.decision-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.decision-note {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--bg-card);
    border: 2px solid var(--border-bright);
    color: var(--text);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cta:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-2px);
}

.cta-secondary {
    margin-top: 2rem;
}

.link-secondary {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: var(--primary);
}

/* ===== SHARE BAR ===== */
.compare-share-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.compare-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-bright);
    border-radius: 0.5rem;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Export Button ===== */
.btn-compare-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-bright);
    border-radius: 0.5rem;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compare-export:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

@media print {
    .btn-compare-export { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .comparison-row {
        grid-template-columns: 200px repeat(3, 1fr);
    }

    .trade-emoji {
        font-size: 2.5rem;
    }

    .trade-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .compare-hero {
        padding: 2rem 1.5rem 3rem;
    }

    .comparison-section {
        padding: 2rem 1rem;
    }

    .comparison-table {
        border: none;
        background: transparent;
    }

    .comparison-row {
        grid-template-columns: 1fr !important;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 1rem;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .comparison-row.header-row {
        display: none !important;
    }

    .row-label {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .trade-column {
        border-left: none !important;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .trade-column:last-child {
        border-bottom: none;
    }

    .trade-column::before {
        content: attr(data-trade);
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--primary);
            margin-bottom: 0.75rem;
    }

    .comparison-row.action-row {
        grid-template-columns: 1fr !important;
    }

    .comparison-row.action-row .row-label {
        display: none;
    }

    .comparison-row.action-row .trade-column {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .summary-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .decision-card {
        padding: 2rem 1.5rem;
    }

    .tip {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
    }

    .trade-selector-card {
        padding: 2rem 1.5rem;
    }

    .trade-pill {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .trade-selector-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-compare-selected {
        width: 100%;
    }

}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
        animation: none !important;
    }

    .nav,
    .footer,
    .hardhat-footer-email,
    .compare-share-bar,
    .cta-section,
    .decision-section,
    .trade-selector-section,
    .scroll-top-btn,
    .hardhat-toast-container,
    .hardhat-mobile-overlay,
    .hardhat-hamburger,
    .btn-learn-more,
    .btn-see-schools,
    .cta-secondary {
        display: none !important;
    }

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

    .compare-hero {
        padding: 1rem 0;
        border-bottom: 2px solid #111;
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero-title {
        font-size: 18pt;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
    }

    .hero-subtitle {
        color: #555 !important;
        font-size: 10pt;
    }

    .breadcrumb { display: none; }

    .comparison-section {
        padding: 0;
    }

    .comparison-table {
        border: 1px solid #ddd;
        border-radius: 0;
    }

    .comparison-row {
        border-bottom: 1px solid #ddd;
    }

    .comparison-row.header-row {
        background: #f0f0f0 !important;
    }

    .row-label {
        color: #333 !important;
        border-right: 1px solid #ddd;
    }

    .label-text {
        color: #333 !important;
    }

    .trade-column {
        border-right: 1px solid #eee;
    }

    .trade-header .trade-name {
        color: #111 !important;
        font-weight: 800;
    }

    .column-value {
        color: #111 !important;
    }

    .column-value.highlight {
        color: #007744 !important;
        font-weight: 800;
    }

    .column-note {
        color: #007744 !important;
        background: #e6f7ef !important;
    }

    .trade-column.winner {
        background: #f5fff9 !important;
    }

    .summary-section {
        page-break-before: auto;
    }

    .summary-card {
        background: #f8f8f8 !important;
        border: 1px solid #ddd;
        color: #111 !important;
    }

    .summary-trade {
        color: #111 !important;
    }

    .summary-verdict {
        color: #007744 !important;
    }

    .summary-desc {
        color: #555 !important;
    }

    .summary-card .btn-see-schools {
        display: none;
    }

    /* Add hardhat branding to print */
    .compare-hero::before {
        content: 'hardhat - trade comparison';
        display: block;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 14pt;
        font-weight: 900;
        color: #007744;
        margin-bottom: 0.5rem;
    }

    .compare-hero::after {
        content: 'hardhat.careers';
        display: block;
        font-size: 8pt;
        color: #999;
        margin-top: 0.25rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
