/* =============================================
   Aitch Nu Global Technologies — Career Page
   career.css
   ============================================= */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5b4fcf;
    --primary-light: #7b72e0;
    --primary-dark: #3e35a0;
    --accent: #f39c12;
    --accent-dark: #d68910;
    --bg: #f4f5fb;
    --bg-card: #ffffff;
    --bg-secondary: #eef0fb;
    --text: #1a1a2e;
    --text-muted: #6b6e8f;
    --text-light: #9a9db8;
    --border: #e0e2f0;
    --border-hover: #b8badb;
    --success: #1d9e75;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(91,79,207,0.10);
    --shadow-lg: 0 10px 40px rgba(91,79,207,0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --transition: 0.22s ease;
    --font: 'Inter', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Dark Theme */
body.dark-theme {
    --bg: #0f0f1a;
    --bg-card: #1c1c30;
    --bg-secondary: #161628;
    --text: #e8e9f5;
    --text-muted: #9a9db8;
    --text-light: #6b6e8f;
    --border: #2a2a45;
    --border-hover: #3f3f60;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ─────────────────────────────────── */
.career-hero {
    background: var(--primary);
    padding: 110px 0 90px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.career-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.career-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.career-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.career-hero p {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto;
    opacity: 0.85;
    font-weight: 400;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 13px 30px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 13px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.55);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 22px;
    border-radius: 40px;
    margin-top: 28px;
    font-weight: 500;
}

.welcome-pill i {
    font-size: 20px;
}

/* ── Stats Bar ─────────────────────────────── */
.stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.stats-inner {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ── Search / Filter Bar ───────────────────── */
.filter-bar {
    padding: 28px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrap {
    flex: 1 1 280px;
    position: relative;
}

.search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.search-wrap input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(91,79,207,0.12);
}

.filter-select {
    flex: 0 1 180px;
}

.filter-select select {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6e8f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

.filter-select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91,79,207,0.12);
}

.filter-count {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-count span {
    font-weight: 700;
    color: var(--primary);
}

/* ── Jobs Section ──────────────────────────── */
.jobs-section {
    padding: 52px 0 72px;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── Jobs Grid ─────────────────────────────── */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
}

/* ── Job Card ──────────────────────────────── */
.job-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    padding: 28px 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.job-card.featured {
    border-color: var(--accent);
    border-width: 2px;
}

.job-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Card Top Row */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 22px;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 40px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge-featured {
    background: #fff6e0;
    color: #8b5c00;
    border: 1px solid #f5c842;
}

.dark-theme .badge-featured {
    background: #2e2200;
    color: #f5c842;
    border-color: #5a4000;
}

.badge-type {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Card Body */
.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.job-meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta-row i {
    font-size: 15px;
    color: var(--primary-light);
}

.job-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    gap: 12px;
}

.salary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf6;
    color: #0f6e56;
    border: 1px solid #9fe1cb;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 40px;
}

.dark-theme .salary-chip {
    background: #04342c;
    color: #5dcaa5;
    border-color: #085041;
}

.exp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.exp-chip i {
    font-size: 14px;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font);
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(91,79,207,0.35);
}

/* No Jobs */
.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-muted);
}

.no-jobs i {
    font-size: 52px;
    margin-bottom: 20px;
    display: block;
    color: var(--border);
}

.no-jobs h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}

/* ── Why Join Section ──────────────────────── */
.why-join {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 26px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.benefit-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Modals ────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 28, 0.65);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.22s ease;
    box-shadow: var(--shadow-lg);
}

.modal-box.md { max-width: 600px; }
.modal-box.lg { max-width: 860px; }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: var(--bg-secondary);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 28px;
}

.modal-foot {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Job Detail Modal Content ──────────────── */
.jd-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.jd-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.jd-meta-bar i {
    color: var(--primary);
    font-size: 15px;
}

.jd-section {
    margin-bottom: 24px;
}

.jd-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 10px;
}

.jd-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.jd-section ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jd-section li {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Application Status Section ─────────────── */
.status-section {
    padding: 64px 0;
    background: var(--bg);
}

/* ── Forms ─────────────────────────────────── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.form-field label .req {
    color: #e24b4a;
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14.5px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(91,79,207,0.10);
}

.form-field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(91,79,207,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

.btn-ghost {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--border);
    color: var(--text);
}

/* ── Application Status Modal ──────────────── */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.pending  { background: #ef9f27; box-shadow: 0 0 0 3px #faeeda; }
.status-dot.review   { background: #378add; box-shadow: 0 0 0 3px #e6f1fb; }
.status-dot.interview{ background: #5b4fcf; box-shadow: 0 0 0 3px #eeedfe; }
.status-dot.accepted { background: #1d9e75; box-shadow: 0 0 0 3px #e1f5ee; }
.status-dot.rejected { background: #e24b4a; box-shadow: 0 0 0 3px #fcebeb; }

.dark-theme .status-dot.pending   { box-shadow: 0 0 0 3px #2e2200; }
.dark-theme .status-dot.review    { box-shadow: 0 0 0 3px #042c53; }
.dark-theme .status-dot.interview { box-shadow: 0 0 0 3px #26215c; }
.dark-theme .status-dot.accepted  { box-shadow: 0 0 0 3px #04342c; }
.dark-theme .status-dot.rejected  { box-shadow: 0 0 0 3px #501313; }

.status-info { flex: 1; min-width: 0; }

.status-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.status-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 40px;
    white-space: nowrap;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-badge.pending   { background: #faeeda; color: #633806; }
.status-badge.review    { background: #e6f1fb; color: #0c447c; }
.status-badge.interview { background: #eeedfe; color: #3c3489; }
.status-badge.accepted  { background: #e1f5ee; color: #085041; }
.status-badge.rejected  { background: #fcebeb; color: #791f1f; }

.dark-theme .status-badge.pending   { background: #2e2200; color: #fac775; }
.dark-theme .status-badge.review    { background: #042c53; color: #85b7eb; }
.dark-theme .status-badge.interview { background: #26215c; color: #afa9ec; }
.dark-theme .status-badge.accepted  { background: #04342c; color: #5dcaa5; }
.dark-theme .status-badge.rejected  { background: #501313; color: #f09595; }

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 46px;
    display: block;
    margin-bottom: 16px;
    color: var(--border);
}

.empty-state p { font-size: 15px; }

/* ── Login/Register switch link ────────────── */
.switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.switch-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .career-hero {
        padding: 80px 0 64px;
    }

    .filter-inner {
        flex-direction: column;
    }

    .search-wrap,
    .filter-select {
        flex: 1 1 100%;
    }

    .filter-count {
        margin-left: 0;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-inner {
        gap: 30px;
    }

    .modal-body,
    .modal-head,
    .modal-foot {
        padding: 18px;
    }

    .card-footer {
        flex-wrap: wrap;
    }
}