/* Project Detail Page Styles */

.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.project-header {
    margin-bottom: 40px;
}

.project-category {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* Gallery */
.project-gallery {
    margin-bottom: 50px;
}

.gallery-main {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 600px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.gallery-thumb {
    flex: 0 0 150px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Content */
.project-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border-top: 1px solid var(--secondary);
    padding-top: 30px;
}

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

.meta-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.meta-value {
    font-size: 1rem;
    color: var(--text);
}

/* Navigation between projects */
.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--secondary);
}

.project-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.project-nav a:hover {
    color: var(--accent);
}

.project-nav a span {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .gallery-main {
        height: 400px;
    }

    .gallery-thumb {
        flex: 0 0 100px;
        height: 70px;
    }
}

/* Responsive - Mobile Landscape */
@media (max-width: 600px) {
    .project-detail {
        padding: 100px 20px 40px;
    }

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

    .gallery-main {
        height: 300px;
    }

    .gallery-thumbs {
        gap: 8px;
    }

    .gallery-thumb {
        flex: 0 0 80px;
        height: 60px;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive - Mobile Portrait */
@media (max-width: 400px) {
    .project-detail {
        padding: 90px 16px 30px;
    }

    .back-link {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .project-category {
        font-size: 0.75rem;
    }

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

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

    .gallery-main {
        height: 250px;
    }

    .gallery-thumb {
        flex: 0 0 70px;
        height: 50px;
    }
}