/**
 * Careers / job detail page (v1.5)
 */

.job-show-hero {
    padding: clamp(4rem, 8vw, 6rem) 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.job-show-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.job-show-hero h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.job-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--color-text-muted, #64748b);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.job-show-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.job-show-skill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 500;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.job-show-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    padding: 3rem 0 4rem;
    align-items: start;
}

.job-show-content {
    line-height: 1.75;
}

.job-show-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.job-show-sidebar {
    position: sticky;
    top: calc(var(--header-h, 80px) + 1.5rem);
}

.job-show-apply-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.job-show-apply-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .job-show-layout {
        grid-template-columns: 1fr;
    }

    .job-show-sidebar {
        position: static;
        order: -1;
    }
}

/* Job detail (jd-*) ? moved from careers/show.php */

    /* Breadcrumb */
    .jd-breadcrumb {
        background: var(--bg-secondary, #f8fafc);
        border-bottom: 1px solid var(--border-color, #e2e8f0);
        padding: 0.75rem 0;
    }

    .breadcrumb-list {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.875rem;
        color: var(--text-muted, #64748b);
        flex-wrap: wrap;
    }

    .breadcrumb-list a {
        color: var(--text-muted, #64748b);
        text-decoration: none;
    }

    .breadcrumb-list a:hover {
        color: var(--vt-blue, #3b82f6);
    }

    .breadcrumb-list svg {
        opacity: 0.4;
        flex-shrink: 0;
    }

    .breadcrumb-list li:last-child {
        color: var(--text-body, #334155);
        font-weight: 500;
    }

    /* Hero */
    .jd-hero {
        padding: 4rem 0 2.5rem;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: white;
    }

    .jd-hero-inner {
        max-width: 800px;
    }

    .jd-hero-dept-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
        border-radius: 999px;
        font-size: 0.8125rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 1.25rem;
    }

    .dept-icon {
        font-size: 1rem;
    }

    .jd-hero-title {
        font-size: clamp(2rem, 5vw, 3.25rem);
        font-weight: 800;
        line-height: 1.15;
        color: white;
        margin: 0 0 1.5rem;
        letter-spacing: -0.02em;
    }

    .jd-hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(4px);
        color: rgba(255, 255, 255, 0.9);
        padding: 0.4rem 1rem;
        border-radius: 999px;
        font-size: 0.8125rem;
        font-weight: 500;
    }

    .meta-pill--salary {
        background: rgba(16, 185, 129, 0.15);
        color: #6ee7b7;
    }

    .remote-tag {
        background: rgba(99, 102, 241, 0.2);
        color: #a5b4fc;
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        font-size: 0.7rem;
        margin-left: 0.25rem;
    }

    /* Stats Bar */
    .jd-stats-bar {
        background: white;
        border-bottom: 1px solid var(--border-color, #e2e8f0);
        padding: 1.25rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .jd-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .jd-stat {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .stat-label {
        font-size: 0.75rem;
        color: var(--text-muted, #64748b);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .stat-value {
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--text-body, #0f172a);
    }

    /* Body Layout */
    .jd-body {
        padding: 3.5rem 0 5rem;
        background: var(--bg-primary, #f8fafc);
    }

    .jd-grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 2.5rem;
        align-items: start;
    }

    /* Content sections */
    .jd-section {
        background: white;
        border-radius: 16px;
        padding: 2.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .jd-section-title {
        font-size: 1.375rem;
        font-weight: 700;
        color: var(--text-heading, #0f172a);
        margin: 0 0 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f1f5f9;
    }

    .section-icon {
        font-size: 1.25rem;
    }

    .jd-prose {
        font-size: 1rem;
        line-height: 1.8;
        color: var(--text-body, #334155);
    }

    .jd-prose p {
        margin: 0 0 0.875rem;
    }

    .jd-subheading {
        font-size: 1.0625rem;
        font-weight: 700;
        color: #0f172a;
        margin: 1.5rem 0 0.625rem;
        text-transform: none;
        letter-spacing: 0;
    }

    .jd-sub-subheading {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #334155;
        margin: 1rem 0 0.4rem;
    }

    .jd-list {
        list-style: none;
        padding: 0;
        margin: 0.5rem 0 1rem;
    }

    .jd-list li {
        position: relative;
        padding: 0.4rem 0 0.4rem 1.625rem;
        color: #334155;
        font-size: 0.9375rem;
    }

    .jd-list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.85rem;
        width: 8px;
        height: 8px;
        background: var(--vt-blue, #6366f1);
        border-radius: 50%;
    }

    /* Perks Banner */
    .jd-perks-banner {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-radius: 16px;
        padding: 2.5rem;
        margin-bottom: 1.5rem;
        color: white;
    }

    .jd-perks-banner h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: white;
        margin: 0 0 1.5rem;
    }

    .perks-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .perk-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1rem 0.75rem;
    }

    .perk-icon {
        font-size: 1.5rem;
    }

    .perk-item span:last-child {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.75);
        font-weight: 500;
        line-height: 1.4;
    }

    /* Footer actions */
    .jd-footer-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .btn-back {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-muted, #64748b);
        text-decoration: none;
        font-size: 0.9375rem;
        font-weight: 500;
    }

    .btn-back:hover {
        color: var(--vt-blue, #6366f1);
    }

    .btn-apply-inline {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: var(--vt-blue, #6366f1);
        color: white;
        text-decoration: none;
        padding: 0.75rem 2rem;
        border-radius: 10px;
        font-size: 0.9375rem;
        font-weight: 600;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-apply-inline:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    }

    /* Sidebar */
    .jd-sidebar {
        position: sticky;
        top: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .jd-apply-card {
        background: white;
        border-radius: 16px;
        padding: 2rem;
        border: 2px solid #6366f1;
        box-shadow: 0 4px 24px rgba(99, 102, 241, 0.12);
    }

    .apply-header {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .apply-emoji {
        font-size: 2.5rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .apply-role {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.35;
    }

    .apply-dept {
        font-size: 0.8125rem;
        color: #64748b;
        margin-top: 0.25rem;
    }

    .btn-apply-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: white;
        text-decoration: none;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        width: 100%;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-apply-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    }

    .apply-note {
        font-size: 0.8125rem;
        color: #64748b;
        margin: 1rem 0 0;
        text-align: center;
        line-height: 1.6;
    }

    /* Salary breakdown block in sidebar */
    .apply-salary-block {
        margin-top: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
    }

    .apply-salary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        background: #f8fafc;
    }

    .apply-salary-row+.apply-salary-row {
        border-top: 1px solid #e2e8f0;
        background: #f0fdf4;
    }

    .sal-label {
        color: #64748b;
        font-weight: 500;
    }

    .sal-badge {
        font-weight: 700;
        border-radius: 999px;
        padding: 0.2rem 0.75rem;
        font-size: 0.8125rem;
    }

    .sal-badge--no {
        background: #fee2e2;
        color: #b91c1c;
    }

    .sal-badge--yes {
        background: #dcfce7;
        color: #166534;
    }

    /* Widgets */
    .jd-widget {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .jd-widget--dark {
        background: #0f172a;
        color: rgba(255, 255, 255, 0.8);
    }

    .jd-widget--dark p {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .widget-title {
        font-size: 0.9375rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .jd-widget--dark .widget-title {
        color: white;
    }

    .widget-link {
        font-size: 0.875rem;
        color: #818cf8;
        font-weight: 600;
        text-decoration: none;
    }

    .widget-link:hover {
        color: white;
    }

    /* Skills Tags */
    .skills-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .skill-tag {
        display: inline-block;
        background: #eef2ff;
        color: #4338ca;
        padding: 0.3rem 0.75rem;
        border-radius: 999px;
        font-size: 0.8125rem;
        font-weight: 500;
    }

    /* Quick Info List */
    .quick-info-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-info-list li {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-size: 0.875rem;
        color: #334155;
    }

    .quick-info-list svg {
        color: #94a3b8;
        flex-shrink: 0;
    }

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

        .jd-sidebar {
            position: static;
        }

        .perks-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 768px) {
        .jd-stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

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

        .jd-hero {
            padding: 2.5rem 0 2rem;
        }

        .jd-hero-title {
            font-size: 1.75rem;
        }

        .jd-section {
            padding: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .jd-stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

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

        .jd-footer-actions {
            flex-direction: column;
        }
    }

/* Department badge color variants */
.jd-dept-badge--hr { background: #eef2ff; color: #6366f1; }
.jd-dept-badge--content { background: #f5f3ff; color: #8b5cf6; }
.jd-dept-badge--marketing { background: #fdf2f8; color: #ec4899; }
.jd-dept-badge--bde { background: #fffbeb; color: #f59e0b; }
.jd-dept-badge--technical { background: #ecfeff; color: #06b6d4; }
.jd-dept-badge--operations { background: #ecfdf5; color: #10b981; }
.jd-dept-badge--management { background: #eff6ff; color: #3b82f6; }
.jd-dept-badge--general { background: #f8fafc; color: #64748b; }

/* Stats bar icon variants */
.stat-icon--experience { background: #dbeafe; color: #2563eb; }
.stat-icon--work-mode { background: #dcfce7; color: #16a34a; }
.stat-icon--role-type { background: #fef3c7; color: #d97706; }
.stat-icon--department { background: #fce7f3; color: #be185d; }
