/* Project Page Specific Styles */
/* This file should replace both project-styles.css and fixme.css */

/* =================================
   BREADCRUMB NAVIGATION
   ================================= */
.breadcrumb {
    padding: 2rem 0 0 0;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    justify-content: flex-start;
}

.breadcrumb-nav a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.breadcrumb-nav a:hover {
    color: #2d3748;
}

.breadcrumb-nav .separator {
    color: #cbd5e0;
    font-weight: 300;
    margin: 0 0.25rem;
}

.breadcrumb-nav .current {
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
}

/* =================================
   PROJECT HERO SECTION
   ================================= */
.project-hero {
    padding: 4rem 0 6rem;
    background: #f7fafc;
}

.project-hero-content {
    max-width: 800px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a202c;
    letter-spacing: -0.03em;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.project-meta {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.project-category {
    background: #2d3748;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-year {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.detail-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* =================================
   PROJECT GALLERY
   ================================= */
.project-gallery {
    padding: 6rem 0;
    background: white;
}

.gallery-item {
    margin-bottom: 4rem;
}

.gallery-item.featured {
    margin-bottom: 6rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.gallery-item:hover img {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.image-caption h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.image-caption p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* =================================
   PROJECT SECTIONS
   ================================= */
.project-section {
    margin: 6rem 0;
}

.project-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.project-section p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 700px;
}

/* =================================
   GALLERY GRID LAYOUTS
   ================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* =================================
   PRINCIPLE ITEMS
   ================================= */
.principle-item {
    text-align: center;
}

.principle-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #4a5568;
}

.principle-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.principle-item p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =================================
   TECHNICAL SPECIFICATIONS
   ================================= */
.spec-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.spec-category ul {
    list-style: none;
    padding: 0;
}

.spec-category li {
    color: #718096;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-category li:last-child {
    border-bottom: none;
}

/* =================================
   PROJECT NAVIGATION
   ================================= */
.project-navigation {
    padding: 4rem 0;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.nav-links-project {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-center {
    text-align: center;
}

.nav-counter {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
    min-width: 140px;
}

.nav-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link.prev {
    align-items: flex-start;
}

.nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.nav-direction {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

/* =================================
   RELATED PROJECTS
   ================================= */
.related-projects {
    padding: 6rem 0;
    background: white;
}

.related-projects h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-4px);
}

.related-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4/3;
    background: #f7fafc;
}

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

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

.related-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.related-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* =================================
   PROJECT CTA SECTION
   ================================= */
.project-cta {
    padding: 6rem 0;
    background: #2d3748;
    color: white;
    text-align: center;
}

.project-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.project-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-cta .btn-primary {
    background: white;
    color: #2d3748;
}

.project-cta .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 2.5rem 0 0 0;
    }

    .breadcrumb-nav {
        font-size: 0.8rem;
        gap: 0.4rem;
        padding: 0.8rem 0;
    }

    .project-hero {
        padding: 3rem 0 4rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .project-meta {
        order: -1;
        white-space: normal;
    }

    .project-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-gallery {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .principles-grid,
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links-project {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        width: 100%;
        align-items: center !important;
        min-width: auto;
    }

    .nav-center {
        order: -1;
        margin-bottom: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .project-section h2 {
        font-size: 1.75rem;
    }

    .project-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .project-hero h1 {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item,
.principle-item,
.related-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* =================================
   PRINT STYLES
   ================================= */
@media print {
    .project-navigation,
    .related-projects,
    .project-cta {
        display: none;
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}