/**
 * 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;
    max-height: 80vh;
    /* Limita altura em telas grandes */
    display: block;
    object-fit: cover;
}

.project-hero-info {
    max-width: 1260px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    /* Coluna da esquerda um pouco mais estreita */
    gap: 80px;
    align-items: start;
}

.project-header-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2.22rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: var(--text-color);
    line-height: 1.1;
    text-align: left;
}

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

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    /* Aumentado para melhor legibilidade */
    color: var(--text-color);
    max-width: 100%;
    margin: 0;
    text-align: justify;
    /* Alinhado com o pedido da página Sobre */
}

.collection-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    /* Espaço antes do botão */
}

.collection-meta-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.85;
}

.meta-label,
.meta-value {
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    line-height: normal !important;
}

.meta-label {
    opacity: 0.5;
    min-width: 90px;
}

.meta-value {
    color: var(--text-color);
    opacity: 0.8;
}

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

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


/* Pill Button - Discrete Version */
.pill-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
    cursor: pointer;
    opacity: 0.8;
}

.pill-button-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
    opacity: 1;
    border-color: var(--text-color);
}

.pill-button-link.soon {
    opacity: 0.38;
    pointer-events: none;
    cursor: default;
    border-style: dashed;
}

/* Dark mode adjustment for border */
[data-dark-mode="true"] .pill-button-link {
    border-color: rgba(255, 255, 255, 0.2);
}

@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;
}

/* Imagens da galeria de coleção: height:auto para proporção natural.
   gallery.css define height:100% + object-fit:cover (para grid fixo da Home),
   mas aqui cada foto tem proporção própria — o masonry JS precisa da altura real. */
.project-gallery-section .img-container img {
    height: 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);
}