/**
 * Cariera - Page-specific Styles
 * Career comparison tool with salary charts and AI risk display
 */

/* ============================================
   LAYOUT
   ============================================ */

/* Header - outside container, needs own max-width */
.header-row {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.hidden {
    display: none;
}

/* ============================================
   CARD OVERRIDES
   ============================================ */

.card {
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.2);
}

/* ============================================
   FORM OVERRIDES
   ============================================ */

label {
    font-size: 1rem;
}

select {
    padding: 0.875rem;
    transition: border-color 0.2s, background 0.2s;
}

select:hover {
    background: var(--bg-card);
}

select:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ============================================
   SELECT CONTAINER (career dropdowns)
   ============================================ */

.select-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.select-container.two-columns {
    grid-template-columns: 1fr 1fr;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */

.comparison-section {
    display: none;
}

.comparison-section.active {
    display: flex;
    flex-direction: column;
}

/* ============================================
   CHART CONTAINER OVERRIDE
   ============================================ */

.chart-container {
    margin: 2rem 0;
}

/* ============================================
   BUTTON GROUP & OVERRIDES
   ============================================ */

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

button {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Career page uses blue for secondary */
.btn-secondary {
    background: var(--color-info);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-info-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* ============================================
   SHARE BUTTONS OVERRIDES
   ============================================ */

.share-buttons {
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.share-btn {
    padding: 0.5rem;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
}

/* ============================================
   DISCLAIMER OVERRIDE
   ============================================ */

.disclaimer {
    margin-top: 3rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* ============================================
   INFO CONTAINER (career details grid)
   ============================================ */

#infoContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

#infoContainer.two-columns {
    grid-template-columns: 1fr 1fr;
}

/* ============================================
   INFO SECTION (career detail cards)
   ============================================ */

.info-section {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent);
}

.info-section:nth-child(2) {
    border-left-color: var(--color-info);
}

.info-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-section:nth-child(2) h3 {
    color: var(--color-info);
}

.info-section p {
    color: var(--text-label);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* ============================================
   AI RISK BADGES
   ============================================ */

.ai-risk {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xs);
    font-weight: 600;
    margin-top: 1rem;
}

.ai-risk.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

.ai-risk.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.ai-risk.high {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.ai-risk.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

/* ============================================
   SALARY TABLE
   ============================================ */

.salary-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
}

.salary-table th,
.salary-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.salary-table th {
    background: var(--bg-primary);
    color: var(--accent);
    font-weight: 600;
}

.salary-table td {
    color: var(--text-label);
}


/* ============================================
   RESPONSIVE
   ============================================ */

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

    .chart-container {
        height: 300px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }

    .select-container.two-columns {
        grid-template-columns: 1fr;
    }

    #infoContainer.two-columns {
        grid-template-columns: 1fr;
    }
}
