/* Project Page Styles - shadcn Design System */

/* Project Hero */
.project-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        hsl(240 10% 3.9% / 0.3) 0%,
        hsl(240 10% 3.9% / 0.6) 100%
    );
    z-index: 1;
}

.project-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.project-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: hsl(0 0% 100%);
    max-width: 720px;
    padding: 0 2rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-category,
.project-year {
    background: hsl(0 0% 100% / 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    border: 1px solid hsl(0 0% 100% / 0.1);
}

.project-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 1.125rem;
    color: hsl(0 0% 100% / 0.8);
    font-weight: 400;
    line-height: 1.6;
}

/* Project Gallery */
.project-gallery {
    padding: 6rem 0;
    background: hsl(var(--background));
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 100px);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gallery-item:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Layout - Asymmetric, artistic arrangement */
.gallery-item.large {
    grid-column: span 6;
    grid-row: span 4;
}

.gallery-item.medium {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item.small {
    grid-column: span 3;
    grid-row: span 2;
}

/* Specific positioning for artistic layout */
.gallery-item:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 5;
}

.gallery-item:nth-child(2) {
    grid-column: 7 / 11;
    grid-row: 1 / 4;
}

.gallery-item:nth-child(3) {
    grid-column: 11 / 13;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(4) {
    grid-column: 11 / 13;
    grid-row: 3 / 5;
}

.gallery-item:nth-child(5) {
    grid-column: 7 / 11;
    grid-row: 4 / 7;
}

.gallery-item:nth-child(6) {
    grid-column: 1 / 7;
    grid-row: 5 / 9;
}

/* Project Details */
.project-details {
    padding: 6rem 0;
    background: hsl(var(--muted));
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.details-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.details-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.details-text h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.details-text ul {
    list-style: none;
    padding: 0;
}

.details-text li {
    padding: 0.75rem 0;
    color: hsl(var(--muted-foreground));
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.9375rem;
}

.details-text li:last-child {
    border-bottom: none;
}

.details-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: hsl(var(--foreground));
    border-radius: 50%;
}

.details-meta {
    background: hsl(var(--card));
    padding: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 6rem;
}

.meta-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-item h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.meta-item p {
    font-size: 1rem;
    color: hsl(var(--foreground));
    font-weight: 500;
    margin: 0;
}

.meta-item p a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-item p a:hover {
    color: hsl(var(--foreground) / 0.7);
    text-decoration: underline;
}

/* Full Width Image */
.full-width-image {
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.full-width-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        hsl(var(--background)) 0%,
        transparent 10%,
        transparent 90%,
        hsl(var(--background)) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project CTA Section */
.project-cta {
    padding: 6rem 0;
    background: hsl(var(--background));
    text-align: center;
}

.project-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.project-cta p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: hsl(var(--muted-foreground));
}

.project-cta .cta-button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    margin-top: 0;
}

.project-cta .cta-button:hover {
    background: hsl(var(--primary) / 0.9);
}

/* Project Navigation */
.project-navigation {
    padding: 4rem 0;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
}

.project-navigation .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-project,
.next-project {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 1rem;
    border-radius: var(--radius);
}

.prev-project:hover,
.next-project:hover {
    background: hsl(var(--muted));
}

.prev-project span,
.next-project span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    display: block;
}

.prev-project h3,
.next-project h3 {
    font-size: 1.125rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.next-project {
    text-align: right;
}

.all-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.all-projects:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--foreground) / 0.2);
}

.all-projects:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.25rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    
    .gallery-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 300px;
    }
    
    .details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-meta {
        position: static;
    }
    
    .project-navigation .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .prev-project,
    .next-project {
        text-align: center;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-gallery {
        padding: 4rem 0;
    }
    
    .project-details {
        padding: 4rem 0;
    }
    
    .full-width-image {
        height: 50vh;
    }
    
    .project-cta {
        padding: 4rem 0;
    }
    
    .project-cta h2 {
        font-size: 1.75rem;
    }
    
    .project-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.875rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .details-text h2 {
        font-size: 1.75rem;
    }
    
    .details-text h3 {
        font-size: 1.125rem;
    }
    
    .full-width-image {
        height: 40vh;
    }
    
    .project-navigation {
        padding: 3rem 0;
    }
    
    .project-cta {
        padding: 3rem 0;
    }
    
    .project-cta h2 {
        font-size: 1.5rem;
    }
}
