/* ==========================================================
   ASIA JOB PLACEMENT - JOB DETAILS PAGE STYLES (job-details.css)
   Pixel-perfect match to reference design with modern aesthetics
   ========================================================== */

.job-details-page {
    background-color: #f4f7fb;
    min-height: 100vh;
}

.job-details-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* Breadcrumb Bar */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 20px;
}

.breadcrumb-link {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: var(--primary, #1a56db);
}

.breadcrumb-separator {
    color: #94a3b8;
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--primary, #1a56db);
    font-weight: 600;
}

/* ==========================================================
   TOP JOB HERO SUMMARY CARD
   ========================================================== */
.job-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
}

.job-hero-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.job-hero-logo {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.job-hero-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.job-hero-company {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.job-hero-location {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.job-hero-location i {
    color: var(--primary, #1a56db);
}

.job-hero-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-pill {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-pill-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.hero-pill-gray {
    background: #f1f5f9;
    color: #475569;
}

.hero-pill-salary {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

/* Hero Right Actions */
.job-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.job-posted-badge {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.job-hero-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-hero-apply {
    background: #ff6b00;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-apply:hover {
    background: #e05e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4);
    color: #ffffff;
}

.btn-hero-save {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-save:hover {
    border-color: #ff6b00;
    color: #ff6b00;
    background: #fff7ed;
}

.btn-hero-save.saved {
    background: #fff7ed;
    border-color: #ff6b00;
    color: #ff6b00;
}

/* ==========================================================
   2-COLUMN MAIN CONTENT LAYOUT
   ========================================================== */
.job-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ==========================================================
   LEFT MAIN COLUMN (TABS & DETAILS)
   ========================================================== */
.job-main-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

/* Tab Navigation Header */
.job-tabs-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    background: #ffffff;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.job-tabs-header::-webkit-scrollbar {
    display: none;
}

.job-tab-btn {
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.job-tab-btn:hover {
    color: var(--primary, #1a56db);
}

.job-tab-btn.active {
    color: var(--primary, #1a56db);
    font-weight: 700;
}

.job-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary, #1a56db);
    border-radius: 3px 3px 0 0;
}

/* Tab Content Panes */
.job-tab-pane {
    padding: 32px;
    display: none;
}

.job-tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headings */
.details-section-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
}

.details-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 28px;
}

/* Bullet Lists */
.details-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-bullet-list li {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    position: relative;
    padding-left: 22px;
}

.details-bullet-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--primary, #1a56db);
    border-radius: 50%;
}

/* Bottom Apply Callout */
.details-apply-callout {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.details-apply-callout p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* ==========================================================
   RIGHT SIDEBAR CARDS
   ========================================================== */
.job-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sidebar-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px;
}

/* Company Overview Card */
.company-profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.company-profile-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.company-profile-meta h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.company-profile-meta p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

.company-description-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 16px;
}

.company-website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary, #1a56db);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.company-website-link:hover {
    gap: 10px;
    text-decoration: underline;
}

/* Location Card */
.map-visual-box {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin-pulse {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    background: #1a56db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4);
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(26, 86, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0); }
}

.location-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.location-address-row i {
    color: var(--primary, #1a56db);
}

.view-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary, #1a56db);
    text-decoration: none;
}

.view-map-link:hover {
    text-decoration: underline;
}

/* Share Job Card */
.social-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-linkedin { background: #0077b5; }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #00acee; }
.share-whatsapp { background: #25d366; }
.share-copy     { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.share-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Similar Jobs list in tab */
.similar-jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================
   MOBILE RESPONSIVENESS
   ========================================================== */
@media (max-width: 960px) {
    .job-content-grid {
        grid-template-columns: 1fr;
    }

    .job-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
    }

    .job-hero-left {
        width: 100%;
        align-items: flex-start;
    }

    .job-hero-right {
        width: 100%;
        align-items: stretch;
    }

    .job-hero-btn-group {
        width: 100%;
    }

    .btn-hero-apply {
        flex: 1;
        padding: 13px;
    }

    .btn-hero-save {
        flex: 1;
        justify-content: center;
    }

    .job-tab-pane {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .job-details-container {
        padding: 14px 12px 40px;
    }

    .job-hero-title {
        font-size: 21px;
    }

    .job-hero-logo {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 24px;
    }

    .job-hero-btn-group {
        flex-direction: column;
    }

    .btn-hero-save {
        width: 100%;
    }

    .job-tabs-header {
        padding: 0 16px;
        gap: 20px;
    }

    .job-tab-btn {
        font-size: 13.5px;
        padding: 14px 0;
    }

    .social-share-row {
        gap: 8px;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
