/* ==========================================================================
   Trabalhe Conosco — brincadeiras visuais
   - título "digitando" em loop;
   - fotos como janelas do macOS (bolinhas vermelha, amarela e verde);
   ========================================================================== */

/* ---------- Título digitando ---------- */
.careers-typed {
    display: inline-grid;
}

/* Fantasma (texto inteiro, invisível) e texto digitado ocupam a mesma célula:
   a altura da linha fica reservada e o layout não pula. */
.careers-typed__fantasma,
.careers-typed__texto {
    grid-area: 1 / 1;
}

.careers-typed__fantasma {
    visibility: hidden;
}

.careers-typed.is-digitando .careers-caret {
    animation: none;
    opacity: 1;
}

/* ---------- Janela do macOS nas fotos ---------- */
.mac-window {
    display: flex;
    flex-direction: column;
    background: #0d1117;
}

.mac-window > img {
    flex: 1;
    min-height: 0;
    height: auto;
}

.collage-item {
    z-index: 1;
}

.mac-bar {
    position: relative;
    z-index: 3;
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    background: linear-gradient(180deg, #2a2f36, #1f2329);
    border-bottom: 1px solid rgba(0, 0, 0, .55);
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: none;
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25);
    transition: filter .2s ease;
}

.mac-dot--red { background: #ff5f57; }
.mac-dot--yellow { background: #febc2e; }
.mac-dot--green { background: #28c840; }

/* Como no Mac: os símbolos aparecem ao passar o mouse na janela */
.mac-dot::after {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font: 700 8px/1 ui-monospace, Menlo, Consolas, monospace;
    color: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .15s ease;
}

.mac-dot--red::after { content: '×'; font-size: 10px; }
.mac-dot--yellow::after { content: '–'; }
.mac-dot--green::after { content: '+'; }

.mac-window:hover .mac-dot::after { opacity: 1; }

.mac-bar__title {
    flex: 1;
    min-width: 0;
    margin-right: 43px; /* centraliza descontando as bolinhas */
    text-align: center;
    font: 500 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #9ba3ad;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collage-item--side .mac-bar__title { margin-right: 0; text-align: right; }

.benefit-card__media.mac-window .benefit-card__tag { top: 44px; }


@media (max-width: 575.98px) {
    .mac-bar { height: 24px; gap: 5px; }
    .mac-dot { width: 9px; height: 9px; }
    .mac-bar__title { font-size: .62rem; }
    .benefit-card__media.mac-window .benefit-card__tag { top: 36px; }
}
