/* ===================================
   SALARY CALCULATOR STYLES
   =================================== */

: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;
}

/* ===== CONTAINER ===== */
.salary-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ===== HERO ===== */
.salary-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

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

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

.breadcrumb-sep {
    color: #333;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

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

/* ===== CALCULATOR LAYOUT ===== */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ===== INPUT CARD ===== */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 80px;
}

.calc-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.calc-step {
    margin-bottom: 2rem;
}

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

.calc-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.calc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ===== TRADE GRID ===== */
.calc-trade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.calc-trade-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-trade-pill:hover {
    border-color: var(--primary);
    color: var(--text);
}

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

.calc-trade-pill .pill-emoji {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== SELECT ===== */
.calc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.calc-select:hover:not(:disabled) {
    border-color: var(--primary);
}

.calc-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.calc-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calc-select option {
    background: #1a1a1a;
    color: var(--text);
}

/* ===== EXPERIENCE OPTIONS ===== */
.calc-exp-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-exp-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-exp-option:hover {
    border-color: var(--primary);
}

.calc-exp-option.selected {
    background: var(--primary-dim);
    border-color: var(--primary);
}

.calc-exp-option.selected .exp-title {
    color: var(--primary);
}

.exp-left {
    display: flex;
    flex-direction: column;
}

.exp-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}

.exp-years {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.exp-salary {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== MODIFIERS ===== */
.calc-modifiers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-modifier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-modifier:hover {
    border-color: #333;
}

.calc-modifier:has(.calc-check:checked) {
    background: var(--primary-dim);
    border-color: var(--primary);
}

.calc-check {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.calc-check:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.calc-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
}

.calc-modifier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.calc-modifier-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calc-modifier-impact {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

/* ===== RESULT CARD ===== */
.calc-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-align: center;
}

.result-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.result-placeholder-text {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Result Content */
.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-emoji {
    font-size: 2rem;
}

.result-trade {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.result-salary-display {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.result-salary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.result-salary-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.result-salary-monthly {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.result-salary-monthly span {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Salary Bar */
.result-bar-section {
    margin-bottom: 1.5rem;
}

.result-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.result-bar-you {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00bbff);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.result-bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    left: 0%;
}

.result-bar-context {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #555;
    margin-top: 0.3rem;
}

/* Breakdown */
.result-breakdown {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-tertiary);
}

.breakdown-value {
    font-weight: 600;
    color: var(--text);
}

.breakdown-value.positive {
    color: var(--primary);
}

.breakdown-value.total {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.breakdown-item.total-row {
    border-top: 2px solid var(--border-bright);
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.breakdown-item.total-row .breakdown-label {
    font-weight: 700;
    color: var(--text);
}

/* Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-action-btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.result-action-btn.primary {
    background: var(--primary);
    color: #000;
}

.result-action-btn.primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.result-action-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.result-action-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.result-action-btn.share {
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: inherit;
}

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

/* ===== COMPARE CARD ===== */
.calc-compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.compare-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.compare-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compare-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.compare-info {
    flex: 1;
}

.compare-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.compare-bar-track {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.compare-bar-inner {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-bar-inner.green {
    background: var(--primary);
}

.compare-bar-inner.blue {
    background: #00bbff;
}

.compare-bar-inner.pink {
    background: var(--secondary);
}

.compare-bar-inner.orange {
    background: #ff8800;
}

.compare-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 55px;
    text-align: right;
}

.compare-amount.highlight {
    color: var(--primary);
}

/* ===== PROJECTION CARD ===== */
.calc-projection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.projection-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.projection-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-bottom: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.projection-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.projection-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--primary), rgba(0, 255, 136, 0.3));
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.projection-bar:hover {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.projection-bar-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.4rem;
    white-space: nowrap;
}

.projection-bar-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.projection-bar-group:hover .projection-bar-value {
    opacity: 1;
}

.projection-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.projection-total-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.projection-total-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* ===== CTA SECTION ===== */
.salary-cta {
    margin-top: 3rem;
}

.salary-cta .cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.salary-cta .cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.salary-cta .cta-subtitle {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.salary-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.salary-cta .cta-btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.salary-cta .cta-btn.primary {
    background: var(--primary);
    color: #000;
}

.salary-cta .cta-btn.primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.salary-cta .cta-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.salary-cta .cta-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-result-card {
    animation: fadeInUp 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-card {
        position: static;
    }

    .calc-trade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-salary-amount {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .salary-container {
        padding: 0 1rem 3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .calc-card {
        padding: 1.25rem;
    }

    .calc-trade-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .calc-trade-pill {
        font-size: 0.72rem;
        padding: 0.4rem 0.5rem;
    }

    .calc-result-card {
        padding: 1.25rem;
    }

    .result-salary-amount {
        font-size: 2.2rem;
    }

    .salary-cta .cta-buttons {
        flex-direction: column;
    }

    .salary-cta .cta-btn {
        text-align: center;
    }

    .projection-bar-label {
        font-size: 0.55rem;
    }
}

/* ===== PRINT ===== */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .nav, .salary-cta, .footer, .result-actions {
        display: none !important;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-card, .calc-result-card, .calc-compare-card, .calc-projection-card {
        background: #fff;
        border-color: #ddd;
        box-shadow: none;
    }

    .result-salary-amount {
        color: #00aa5e;
        text-shadow: none;
    }

    .hero-title {
        color: #000;
    }
}

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