/* ================================
   Careers Page Styles
   ================================ */

/* Hero Section */
.careers-hero {
    padding: 8rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('images/pricing-hero-universe.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.careers-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(187, 153, 84, 0.1);
    color: #bb9954;
    border: 1px solid rgba(187, 153, 84, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.careers-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.careers-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Values Grid */
.values-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(187, 153, 84, 0.3);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(187, 153, 84, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bb9954;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.value-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Job Board */
.jobs-section {
    padding: 6rem 2rem;
    background: var(--color-bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.jobs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.jobs-header {
    text-align: center;
    margin-bottom: 4rem;
}

.jobs-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.job-category {
    margin-bottom: 4rem;
}

.job-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #bb9954;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.job-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(187, 153, 84, 0.3);
    transform: translateX(5px);
}

.job-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-apply {
    color: #bb9954;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Apply Modal */
.apply-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.apply-modal.active {
    display: flex;
}

.apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.apply-modal-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(85vh, 900px);
    overflow: auto;
    background: rgba(15, 16, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.apply-modal.show .apply-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.apply-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.apply-modal-close:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(187, 153, 84, 0.35);
}

.apply-modal-close svg {
    width: 18px;
    height: 18px;
}

.apply-modal-header {
    padding-right: 3rem;
    margin-bottom: 1.5rem;
}

.apply-modal-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    color: white;
    font-weight: 600;
}

.apply-modal-header p {
    margin: 0;
    color: var(--color-text-secondary);
}

.apply-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.apply-field-full {
    grid-column: 1 / -1;
}

.apply-field label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.apply-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apply-field select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
}

.apply-field select option {
    color: #0b0c0f;
}

.apply-field input:focus {
    outline: none;
    border-color: rgba(187, 153, 84, 0.6);
    box-shadow: 0 0 0 3px rgba(187, 153, 84, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.apply-field select:focus {
    outline: none;
    border-color: rgba(187, 153, 84, 0.6);
    box-shadow: 0 0 0 3px rgba(187, 153, 84, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.apply-field input[readonly] {
    opacity: 0.85;
    cursor: not-allowed;
}

.apply-field input.apply-invalid {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.apply-field select.apply-invalid {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.apply-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.apply-form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

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

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .job-apply {
        align-self: flex-end;
    }

    .apply-modal-dialog {
        padding: 1.5rem;
    }

    .apply-form-grid {
        grid-template-columns: 1fr;
    }
}