/* =====================================================
   Runestone — Careers page specific styles
   (Extends css/index.css + css/subpages.css)
   ===================================================== */

/* ---------- Perks list in hero stack card ---------- */
.perks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}
.perk-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-2);
    transition: all 0.3s var(--ease);
}
.perk-row:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    transform: translateX(4px);
}
.perk-row i {
    width: 32px; height: 32px;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--gradient-2);
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

/* ---------- Jobs list ---------- */
.jobs { background: var(--bg-soft); }
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.job-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}
.job-card:hover { border-color: rgba(79, 70, 229, 0.3); box-shadow: var(--shadow); }
.job-card[open] {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.job-card summary {
    list-style: none;
    padding: 28px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background 0.2s;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-card summary:hover { background: rgba(79, 70, 229, 0.03); }

.job-summary-left { flex: 1; }
.job-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}
.job-summary-left h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}
.job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.85rem;
}
.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.job-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.job-summary-right { flex-shrink: 0; }
.job-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-soft);
    color: var(--dark-2);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}
.job-toggle i { transition: transform 0.3s var(--ease); font-size: 0.75rem; }
.job-card[open] .job-toggle {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.job-card[open] .job-toggle i { transform: rotate(180deg); }

.job-body {
    padding: 4px 32px 32px;
    border-top: 1px solid var(--line);
    animation: fadeSlideDown 0.4s var(--ease);
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-section {
    padding-top: 24px;
}
.job-section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.job-section p {
    color: var(--muted);
    line-height: 1.7;
}
.job-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.job-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dark-2);
    font-size: 0.95rem;
    line-height: 1.6;
}
.job-section ul li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.job-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 32px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

/* ---------- File upload styling ---------- */
.file-upload label:first-child {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-2);
    margin-bottom: 8px;
}
.file-input-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-soft);
    border: 2px dashed var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    color: var(--muted);
    font-weight: 500;
}
.file-input-label:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.03);
    color: var(--primary);
}
.file-input-label i {
    color: var(--primary);
    font-size: 1.3rem;
    padding: 8px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
}
.file-input-label #fileName {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .job-card summary { flex-direction: column; align-items: flex-start; padding: 22px; }
    .job-body { padding: 4px 22px 22px; }
    .job-meta { gap: 12px; font-size: 0.8rem; }
    .job-summary-right { align-self: flex-end; margin-top: 8px; }
    .job-cta { flex-direction: column; }
    .job-cta .btn { width: 100%; justify-content: center; }
    .file-input-label { padding: 16px; }
}
