/* ==========================================================================
   VionTech — Página de Detalhe do Projeto
   Requer index.css e projetos.css carregados antes deste arquivo.
   ========================================================================== */

.details-section *,
.related-projects * {
    box-sizing: border-box;
}


/* ==========================================================================
   SECTION
   ========================================================================== */

.details-section {
    overflow-x: hidden;
    background: var(--vt-ink);
    padding: 44px 0 88px;
    max-width: 100vw;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    color: #8A8A9A;
    font-family: var(--vt-font);
    font-size: 12.5px;
    line-height: 1.4;
}

.breadcrumb a {
    color: #8A8A9A;
    text-decoration: none;
    transition: color 120ms ease;
}

.breadcrumb a:hover {
    color: var(--vt-purple-400, #A78BFA);
}

.breadcrumb-current {
    overflow: hidden;
    max-width: 100%;
    color: #C4B5FD;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
   DETAIL CARD
   ========================================================================== */

.detail-card {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    overflow: hidden;
    border: 2px solid var(--vt-white);
    border-radius: 20px;
    background: var(--vt-white);
    box-shadow: 8px 8px 0 0 var(--vt-purple-500);
}

.detail-card.has-cover {
    grid-template-columns: 1fr;
}

.detail-card.has-cover .modal-media {
    position: relative;
    min-height: 0;
    width: 100%;
    height: min(72vh, 640px);
    aspect-ratio: unset;
    overflow: hidden;
}

.detail-card.has-cover .modal-media__scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #7C3AED #161022;
}

.detail-card.has-cover .modal-media__scroll::-webkit-scrollbar {
    width: 8px;
}

.detail-card.has-cover .modal-media__scroll::-webkit-scrollbar-track {
    background: #161022;
}

.detail-card.has-cover .modal-media__scroll::-webkit-scrollbar-thumb {
    background: #7C3AED;
    border-radius: 8px;
}

.detail-card.has-cover .modal-media .card-badge {
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 3;
}

.detail-card .modal-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 40px 44px;
}

.detail-card .card-client {
    display: block;
    margin-bottom: 10px;
}

.detail-card .modal-body h1 {
    margin: 0 0 14px;
    overflow-wrap: break-word;
    color: var(--vt-ink);
    font-family: var(--vt-font-display);
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.detail-card .desc-full {
    overflow-wrap: break-word;
}

.detail-card .modal-stats {
    width: 100%;
}

.detail-card .modal-actions {
    width: 100%;
}


/* ==========================================================================
   PROJETOS RELACIONADOS
   ========================================================================== */

.related-projects {
    margin-top: 64px;
    min-width: 0;
}

.related-projects h2 {
    margin: 0 0 24px;
    color: var(--vt-white);
    font-family: var(--vt-font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.related-projects .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================================
   RESPONSIVO — 1100px
   ========================================================================== */

@media (max-width: 1100px) {

    .detail-card {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .detail-card .modal-body {
        padding: 34px 36px;
    }

}


/* ==========================================================================
   RESPONSIVO — 900px
   ========================================================================== */

@media (max-width: 900px) {

    .details-section {
        padding: 36px 0 70px;
    }

    .detail-card {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .detail-card .modal-media {
        min-height: 220px;
    }

    .detail-card .modal-body {
        padding: 30px;
    }

    .related-projects .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================================
   RESPONSIVO — 768px
   ========================================================================== */

@media (max-width: 768px) {

    .details-section {
        padding: 32px 0 60px;
    }

    .breadcrumb {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .detail-card {
        border-radius: 16px;
        box-shadow: 6px 6px 0 0 var(--vt-purple-500);
    }

    .detail-card .modal-media {
        min-height: 190px;
    }

    .detail-card .modal-media .cat-icon {
        width: 78px;
        height: 78px;
        font-size: 36px;
        border-radius: 18px;
    }

    .detail-card .modal-body {
        padding: 26px 22px;
    }

    .detail-card .modal-body h1 {
        margin-bottom: 12px;
    }

    .detail-card .desc-full {
        font-size: 13.5px;
    }

    .detail-card .modal-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 20px;
    }

    .detail-card .modal-stat {
        padding: 11px;
    }

    .detail-card .modal-stat strong {
        font-size: 15px;
    }

    .detail-card .modal-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 24px;
    }

    .detail-card .modal-actions .vt-btn {
        width: 100%;
        justify-content: center;
    }

    .related-projects {
        margin-top: 48px;
    }

    .related-projects h2 {
        font-size: 19px;
    }

    .related-projects .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}


/* ==========================================================================
   RESPONSIVO — 640px
   ========================================================================== */

@media (max-width: 640px) {

    .details-section {
        padding: 28px 0 52px;
    }

    .breadcrumb {
        gap: 5px;
        margin-bottom: 18px;
        font-size: 11.5px;
    }

    .breadcrumb-current {
        max-width: 140px;
    }

    .detail-card {
        border-radius: 14px;
        box-shadow: 5px 5px 0 0 var(--vt-purple-500);
    }

    .detail-card .modal-media {
        min-height: 160px;
    }

    .detail-card .modal-media .card-badge {
        top: 12px;
        right: 12px;
        padding: 5px 9px;
        font-size: 9px;
    }

    .detail-card .modal-media .cat-icon {
        width: 66px;
        height: 66px;
        font-size: 30px;
        border-radius: 16px;
    }

    .detail-card .modal-body {
        padding: 22px 18px;
    }

    .detail-card .card-client {
        font-size: 10px;
    }

    .detail-card .modal-body h1 {
        font-size: 21px;
    }

    .detail-card .desc-full {
        font-size: 13px;
        line-height: 1.65;
    }

    .detail-card .modal-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .detail-card .modal-stat {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 13px;
    }

    .detail-card .modal-stat strong {
        margin-bottom: 0;
    }

    .detail-card .card-tags {
        margin-top: 18px;
    }

    .related-projects {
        margin-top: 40px;
    }

    .related-projects h2 {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .related-projects .projects-grid {
        gap: 16px;
    }

}


/* ==========================================================================
   RESPONSIVO — 400px
   ========================================================================== */

@media (max-width: 400px) {

    .breadcrumb {
        font-size: 11px;
    }

    .breadcrumb-current {
        max-width: 110px;
    }

    .detail-card .modal-media {
        min-height: 140px;
    }

    .detail-card .modal-media .cat-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
        border-radius: 14px;
    }

    .detail-card .modal-body {
        padding: 18px 15px;
    }

    .detail-card .modal-body h1 {
        font-size: 19px;
    }

    .detail-card .card-tags .tag {
        font-size: 10px;
        padding: 4px 8px;
    }

}


/* ==========================================================================
   ACESSIBILIDADE / REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .breadcrumb a {
        transition: none;
    }

}