/* Detalhe Emprego Styles */

/* Classe para centrar conteúdo com max-width */
.maxWidthSite {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Job Hero Section */
.job-hero {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 2;
    height: 60vh;
}

.job-hero.job-hero--placeholder-bg {
    background: #d9d9d9;
    height: clamp(300px, 34vh, 380px);
    min-height: 300px;
}

.job-hero.job-hero--placeholder-bg .hero-bg {
    height: 100%;
}

.job-hero.job-hero--placeholder-bg .maxWidthSite {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.job-hero.job-hero--placeholder-bg .job-card-main {
    bottom: auto;
    width: 100%;
}

.job-hero .hero-bg {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

.job-hero .maxWidthSite {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    padding: 0 2rem;
}

.job-hero .job-card-main {
    position: relative;
    z-index: 3;
    bottom: -18rem;
    background: #f0f0f0;
    border-radius: 0 !important;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* When banner is present, remove bottom padding from card so banner sits flush */
.job-hero .job-card-main:has(.job-inactive-banner) {
    padding-bottom: 0;
}

.job-hero .job-card-main .job-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.job-hero .job-card-main h2 {
    font-size: 1.6rem;
    color: #000;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.job-hero .job-card-main .location-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.job-hero .job-card-main .job-card-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.job-hero .job-card-main .share-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.job-hero .job-card-main .share-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0);
    transition: opacity 0.2s ease;
}

.job-hero .job-card-main .share-btn:hover img {
    opacity: 0.7;
}

.job-hero .job-card-main .share-dropdown {
    position: relative;
    display: flex;
    flex-shrink: 0;
    z-index: 30;
}

.job-hero .job-card-main .share-dropdown.is-open .share-btn {
    opacity: 0.8;
}

.job-hero .job-card-main .share-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 9999;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.job-hero .job-card-main .share-dropdown.is-open .share-dropdown-menu {
    display: flex;
}

.job-hero .job-card-main .share-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #111827;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.job-hero .job-card-main .share-dropdown-menu a:hover {
    background: #f3f4f6;
}

.job-hero .job-card-main .share-dropdown-menu img {
    width: 18px;
    height: 18px;
}

.job-hero .job-card-main .share-dropdown-menu span {
    font-size: 0.95rem;
    font-weight: 500;
}

.job-hero .job-card-main .separator {
    width: 1px;
    height: 40px;
    background: #ccc;
}

.job-hero .job-card-main .apply-btn {
    background: var(--theme-primary, #007180);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.job-hero .job-card-main .apply-btn:hover {
    filter: brightness(0.92);
}

/* Disabled state for inactive job offers */
.job-hero .job-card-main .apply-btn--disabled,
.job-hero .job-card-main .apply-btn--disabled:hover {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.75;
}

.job-hero .job-card-main .apply-btn-wrapper--disabled {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
}

.job-hero .job-card-main .apply-btn-wrapper--disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.job-hero .job-card-main .apply-btn-wrapper--disabled:hover::after {
    opacity: 1;
}

/* Hide old job-info section */
.job-hero .job-info {
    display: none;
}

@media (max-width: 768px) {
    .job-hero {
        height: auto;
        min-height: 40vh;
        overflow: visible;
    }

    .job-hero .hero-bg {
        height: 40vh;
    }

    .job-hero .maxWidthSite {
        position: relative;
        left: 0;
        transform: none;
        padding: 0 1rem;
        height: auto;
    }

    .job-hero .job-card-main {
        position: relative;
        left: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        margin-top: -3rem;
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        z-index: 40;
        overflow: visible;
    }

    .job-hero .job-card-main .job-card-left {
        width: 100%;
    }

    .job-hero .job-card-main h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .job-hero .job-card-main .location-text {
        font-size: 0.85rem;
    }

    .job-hero .job-card-main .job-card-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
        position: relative;
        z-index: 50;
        overflow: visible;
    }

    .job-hero .job-card-main .separator {
        height: 30px;
        flex-shrink: 0;
    }

    .job-hero .job-card-main .apply-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .job-hero .job-card-main .share-dropdown-menu {
        left: 0;
        right: auto;
        z-index: 99999;
    }
}

@media (max-width: 480px) {
    .job-hero {
        min-height: 35vh;
    }

    .job-hero .hero-bg {
        height: 35vh;
    }

    .job-hero .maxWidthSite {
        padding: 0 0.75rem;
    }

    .job-hero .job-card-main {
        padding: 1rem;
        margin-top: -2rem;
    }

    .job-hero .job-card-main h2 {
        font-size: 1rem;
    }

    .job-hero .job-card-main .location-text {
        font-size: 0.8rem;
    }

    .job-hero .job-card-main .apply-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .job-hero .job-card-main .share-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Inactive Job Banner — inside job-card-main, full width strip */
.job-hero .job-card-main .job-inactive-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: calc(100% + 4rem); /* compensate for parent's 2rem padding on each side */
    margin: 0 -2rem -0px;
    background-color: #fef3c7;
    border-top: 3px solid #f59e0b;
    padding: 0.85rem 1.25rem;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
    box-sizing: border-box;
}

.job-hero .job-card-main .job-inactive-banner svg {
    flex-shrink: 0;
    color: #d97706;
}

.job-hero .job-card-main .job-inactive-banner p {
    margin: 0;
    line-height: 1.5;
}

.job-hero .job-card-main .job-inactive-banner a {
    color: #92400e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-hero .job-card-main .job-inactive-banner a:hover {
    color: #78350f;
}

/* Job Details Section */
.job-details {
    padding: 4rem 0;
}

.job-details .maxWidthSite {
    display: flex;
    align-items: flex-start;
    gap: clamp(2rem, 6vw, 8rem);
}

.job-details .left {
    flex: 2 1 0;
    min-width: 0;
}

.job-details .left .block {
    margin-bottom: 2rem;
}

.job-details .left .block h3 {
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.job-details .left .block p {
    color: #333;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-details .left .block {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.job-details .left .block .cta-btn {
    margin-top: 1.5rem;
    background: var(--theme-primary, #007180);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* Disabled state for inactive job offers */
.job-details .left .block .cta-btn--disabled,
.job-details .left .block .cta-btn--disabled:hover {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.75;
}

.job-details .left .block .apply-btn-wrapper--disabled {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
    margin-top: 1.5rem;
}

.job-details .left .block .apply-btn-wrapper--disabled .cta-btn--disabled {
    margin-top: 0;
}

.job-details .left .block .apply-btn-wrapper--disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.job-details .left .block .apply-btn-wrapper--disabled:hover::after {
    opacity: 1;
}

.job-details .right {
    flex: 1 0 320px;
    min-width: 280px;
    max-width: 420px;
}

.job-details .right .details-box {
    background: #fff;
    margin-bottom: 2rem;
}

.job-details .right .details-box h4 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.job-details .right .details-box .progress {
    background: #eee;
    height: 6px;
    margin-bottom: 1rem;
}

.job-details .right .details-box .progress .bar {
    width: 60%;
    height: 100%;
    background: #22c322;
}

.job-details .right .details-box ul {
    list-style: none;
    padding: 0;
}

.job-details .right .details-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.job-details .right .details-box ul li span {
    color: #333;
}

.job-details .right .details-box ul li b {
    color: #000000;
}

.job-details .right .tags-box {
    margin-bottom: 1.5rem;
}

.job-details .right .tags-box h4 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-details .right .tags-box .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-details .right .tags-box .tags .tag {
    padding: 0.3rem 1rem;
    color: white;
    font-size: 0.9rem;
}

.job-details .right .tags-box .tags .tag.green,
.job-details .right .tags-box .tags .tag.tag-sector-default {
    background: var(--theme-primary, #007180);
}

.job-details .right .tags-box .tags .tag.tag-sector-industry {
    background: var(--synchro-sector-industry, #FDAF5D);
}

.job-details .right .tags-box .tags .tag.tag-sector-education {
    background: var(--synchro-sector-education, #A12B2F);
}

.job-details .right .tags-box .tags .tag.tag-sector-health {
    background: var(--synchro-sector-health, #80D3BA);
}

.job-details .right .tags-box .tags .tag.tag-sector-processes {
    background: var(--synchro-sector-processes, #7C8788);
}

.job-details .right .tags-box .tags .tag.tag-sector-audit {
    background: var(--synchro-sector-audit, #79AA6D);
}

.job-details .right .tags-box .tags .tag.tag-sector-sales {
    background: var(--synchro-sector-sales, #EA002A);
}

.job-details .right .tags-box .tags .tag.orange {
    background: #ff9500;
}

.job-details .right .tags-box .tags .tag.purple {
    background: #9b59b6;
}

.job-details .right .tags-box .tags .tag.red {
    background: #e74c3c;
}

.job-details .right .tags-box .tags .tag.teal {
    background: #1abc9c;
}

.job-details .right .tags-box .tags.outlined span {
    border: 1px solid var(--theme-primary, #007180);
    color: var(--theme-primary, #007180);
    padding: 0.3rem 0.8rem;
}

.job-details .right .reference {
    margin-top: 1.5rem;
}

.job-details .right .reference span {
    color: #979696;
    font-size: 20px;
    font-weight: 600;
}

.job-details .right .reference b {
    display: block;
    color: #979696;
    font-weight: 400;
    margin-top: 0.2rem;
}

.job-details .right .share {
    margin-top: 2rem;
}

.job-details .right .share p {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.job-details .right .share .icons {
    display: flex;
    gap: 0.8rem;
}

.job-details .right .share .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-details .right .share .icons img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.job-details .right .share .icons a:hover img {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .job-hero.job-hero--placeholder-bg {
        height: auto;
        min-height: 0;
        padding: 2rem 0;
        overflow: visible;
    }

    .job-hero.job-hero--placeholder-bg .maxWidthSite {
        display: block;
        padding-bottom: 0;
    }

    .job-hero.job-hero--placeholder-bg .job-card-main {
        margin-top: 0;
    }

    .job-details .maxWidthSite {
        flex-direction: column;
    }

    .job-details .maxWidthSite {
        padding: 0 1rem;
    }

    .job-details .left,
    .job-details .right {
        width: 100%;
        padding: 1rem;
    }

    .job-details .right {
        margin-top: 0;
        min-width: 0;
        max-width: none;
    }
}


/* Candidatura Espontânea */
.candidatura-espontanea {
    margin-top: 60px;
    text-align: left;
}

.btn-candidatura-espontanea {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 260px;
    min-height: 64px;
    background: var(--synchro-brand-light, #ADCAD9);
    color: var(--theme-primary, #007180);
    padding: 0 32px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-candidatura-espontanea:hover {
    background: var(--theme-primary, #007180);
    color: #fff;
    transform: translateY(-2px);
}

