/* Páginas de projeto (/trabalhos/*, /en/work/*). Complementa o blog.css. */

.work-page main {
    padding-top: 40px;
}

.work-hero {
    position: relative;
    padding-bottom: 8px;
}

.work-hero-glow {
    position: absolute;
    top: -120px;
    left: -24px;
    width: min(520px, 100vw);
    height: 520px;
    background: radial-gradient(circle, rgba(41, 212, 245, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.work-hero .post-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.6s ease both;
}

.work-hero .post-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(41, 212, 245, 0.5);
}

.work-hero h1 {
    margin: 14px 0 18px;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    max-width: 900px;
    animation: fadeUp 0.6s 0.08s ease both;
}

.work-hero h1 em {
    font-style: italic;
    color: var(--cyan);
}

.work-lead {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--white-dim);
    animation: fadeUp 0.6s 0.16s ease both;
}

.work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    animation: fadeUp 0.6s 0.24s ease both;
}

.cta-ghost {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(41, 212, 245, 0.4);
}

.cta-ghost:hover {
    opacity: 1;
    background: var(--cyan-dim);
}

/* Ficha técnica */
.work-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.work-facts dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-faint);
    margin-bottom: 6px;
}

.work-facts dd {
    font-size: 14px;
    line-height: 1.5;
}

.work-facts a {
    text-decoration: none;
}

.work-facts a:hover {
    text-decoration: underline;
}

/* Vitrine */
.work-stage {
    position: relative;
    margin: 0 0 24px;
    padding: 48px 48px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
            radial-gradient(90% 80% at 50% 0%, rgba(41, 212, 245, 0.12), transparent 70%),
            var(--bg2);
    overflow: hidden;
}

.work-stage .work-browser {
    max-width: 980px;
    margin: 0 auto;
}

.work-stage-phone {
    position: absolute;
    right: 6%;
    bottom: 0;
    width: clamp(120px, 17%, 200px);
    border: 6px solid #1f2733;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 -10px 60px -10px rgba(0, 0, 0, 0.7);
}

.work-stage-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.work-stage figcaption {
    position: absolute;
    left: -9999px;
}

.work-browser {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 -8px 50px -12px rgba(0, 0, 0, 0.6);
}

.work-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1a2029;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.work-browser-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.work-browser-url {
    margin-left: 12px;
    flex: 1;
    max-width: 300px;
    padding: 3px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* Blocos de texto */
.work-block {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2.2fr;
    gap: 48px;
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.work-block:first-of-type {
    margin-top: 40px;
}

.work-block h2 {
    position: sticky;
    top: 24px;
    align-self: start;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.15;
}

.work-block h2 span {
    display: block;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

.work-prose {
    max-width: 680px;
}

.work-prose p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--white-dim);
    margin-bottom: 18px;
}

.work-prose p strong {
    color: var(--white);
    font-weight: 600;
}

.work-prose p:last-child {
    margin-bottom: 0;
}

.work-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.work-list li {
    position: relative;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--white-dim);
}

.work-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 12px;
    height: 1px;
    background: var(--cyan);
}

.work-list li strong {
    color: var(--white);
    font-weight: 600;
}

/* Métricas */
.work-scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 4px 0 20px;
}

.work-scores li {
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-size: 12px;
    line-height: 1.4;
    color: var(--white-dim);
}

.work-scores strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: var(--white);
}

.work-scores li b {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.work-scores li span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.work-prose p.work-note {
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.7;
    color: var(--white-faint);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    border: 1px solid rgba(41, 212, 245, 0.25);
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* Fechamento */
.work-page .post-cta {
    margin-top: 24px;
}

.work-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--white);
    transition: border-color 0.25s, transform 0.25s;
}

.work-next:hover {
    border-color: rgba(41, 212, 245, 0.3);
    transform: translateY(-2px);
}

.work-next small {
    display: block;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-faint);
}

.work-next strong {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 26px;
}

.work-next svg {
    flex-shrink: 0;
    color: var(--cyan);
    transition: transform 0.2s;
}

.work-next:hover svg {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .work-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 44px 0;
    }

    .work-block h2 {
        position: static;
    }

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

@media (max-width: 600px) {
    .work-stage {
        padding: 24px 16px 0;
    }

    .work-stage-phone {
        right: 4%;
        border-width: 4px;
        border-radius: 16px 16px 0 0;
    }

    .work-lead {
        font-size: 16px;
    }

    .work-next {
        padding: 20px;
    }

    .work-next strong {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-hero .post-eyebrow,
    .work-hero h1,
    .work-lead,
    .work-actions {
        animation: none;
    }
}
