/**
 * Project Page Styles
 * Estilos específicos para a página individual de projeto
 */

/* ================================
   PROJECT HERO SECTION
   ================================ */

.project-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 60px;
    background: var(--bg-color);
}

.project-hero-image {
    width: 100%;
    max-width: 1260px;
    /* Reduzido 10% (de 1400px) */
    margin: 0 auto 40px;
    /* border-radius via includes/gallery-columns.php */
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-hero-info {
    max-width: 1260px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    /* Título ocupa ~37% */
    gap: 60px;
    align-items: start;
    /* Alinha o topo dos containers */
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-color);
    line-height: 1.1;
    /* Line height ajustado */
    text-align: left;
    margin-top: -0.1em;
    /* Compensação visual para alinhar topo da letra */

    /* Garantir renderização sólida sem gradientes */
    opacity: 1;
    filter: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container da direita (Descrição + Meta) */
.project-content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 100%;
    margin: 0;
    text-align: left;
    margin-top: -0.2em;
    /* Pequeno ajuste para alinhar com o título */

    /* Garantir renderização sólida */
    opacity: 1;
    filter: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.project-meta {
    display: flex;
    gap: 20px;
    padding: 0;
    border: none;
    margin: 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .project-hero-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-title {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .project-description {
        margin-top: 0;
    }

    .project-content-grid {
        gap: 20px;
    }

    .project-description {
        max-width: 100%;
    }
}

/* ================================
   PROJECT GALLERY SECTION
   ================================ */

.project-gallery-section {
    padding: 60px 40px;
    background: var(--bg-color);
}

.project-gallery-section .works-grid {
    max-width: 1260px;
    /* 10% menor que 1400px (1260px) para alinhar com Hero */
    margin: 0 auto;
}

/* ================================
   PROJECT NAVIGATION
   ================================ */

.project-navigation {
    background: var(--bg-color);
    padding: 60px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(0);
}

.nav-prev {
    justify-content: flex-start;
}

.nav-prev:hover {
    transform: translateX(-4px);
}

.nav-next {
    justify-content: flex-end;
}

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

.nav-all {
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-all:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.nav-arrow {
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-link:hover .nav-arrow {
    opacity: 1;
}

.nav-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
    .project-hero {
        padding: 100px 20px 40px;
        min-height: 60vh;
    }

    .project-hero-image {
        margin-bottom: 30px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-meta {
        gap: 20px;
    }

    .project-gallery-section {
        padding: 40px 20px;
    }

    .project-navigation {
        padding: 40px 20px;
    }

    .nav-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-prev,
    .nav-next {
        justify-content: center;
    }

    .nav-link:hover {
        transform: none !important;
    }
}

/* ================================
   DARK MODE
   ================================ */

[data-dark-mode="true"] .project-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-dark-mode="true"] .project-navigation {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-dark-mode="true"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-dark-mode="true"] .nav-all {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-dark-mode="true"] .nav-all:hover {
    background: rgba(255, 255, 255, 0.08);
}