/* Single Project Styles */

.project-main {
    padding-top: 8rem;
    z-index: 10;
    position: relative;
}

.project-container {
    max-width: 56rem;
}

/* Featured Image */
.project-hero-image-card {
    margin-bottom: 3rem;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: 60dvw;
    max-height: 40dvh;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    align-content: center;
    text-align: center;
    z-index: 10;
    overflow: hidden;
    pointer-events: auto;
}

.project-missing-image-card {
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.project-missing-image-content {
    opacity: 0.4;
}

.project-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.project-missing-text {
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

/* Header */
.project-header-card {
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-title {
    color: white;
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-status-wrapper {
    margin-top: 1rem;
}

.project-status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
}

/* Content */
.project-content-card {
    padding: 3rem;
    margin-bottom: 3rem;
}

.project-content-area {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-normal);
    line-height: 1.8;
    font-size: 1.125rem;
    text-align: left;
}

.project-content-area p {
    margin-bottom: 1.5em;
}

.project-content-area ul, 
.project-content-area ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.project-content-area li {
    margin-bottom: 0.5em;
}

.project-content-area h2, 
.project-content-area h3, 
.project-content-area h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: white;
    font-weight: bold;
}

.project-content-area a {
    color: rgb(168, 85, 247);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-pagination-wrapper {
    margin-top: 2rem;
    text-align: center;
}

/* Details Grid */
.project-details-card {
    padding: 2rem;
    margin-bottom: 3rem;
}

.project-details-title {
    color: white;
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0.8;
}

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

.project-detail-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
}

.project-detail-value {
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-detail-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.text-purple { color: rgb(168 85 247); }
.text-pink { color: rgb(236 72 153); }
.text-blue { color: rgb(59 130 246); }

.project-detail-full {
    grid-column: span 2;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-detail-value-large {
    font-size: 1.5rem;
}

.project-detail-label-spaced {
    letter-spacing: 1px;
}

/* Footer Logos */
.project-footer-logos-card {
    grid-column: span 2;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-footer-img {
    width: 100%;
    max-height: 18rem;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

.project-footer-missing {
    opacity: 0.4;
    text-align: center;
}

.project-footer-missing-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Call to Action */
.project-cta-card {
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.project-cta-title {
    color: white;
    font-family: var(--font-sf-pro);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-cta-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-cta-btn {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

/* Navigation */
.project-navigation {
    margin-bottom: 6rem;
}

.post-navigation-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "prev back next";
    gap: 1rem;
    align-items: center;
}

.nav-glass-card {
    height: 8rem;
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-glass-card:hover {
    transform: translateY(-0.25rem);
}

.nav-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: white;
    font-weight: 600;
}

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

.grid-area-prev { grid-area: prev; }
.grid-area-back { grid-area: back; }
.grid-area-next { grid-area: next; }

/* Responsive */
@media (max-width: 768px) {
    .project-card-container {
        padding: 1.5rem !important;
    }
    
    /* Mobile Full Bleed Image */
    .project-hero-image-card.project-hero-image { /* Using specific selector matching logic */
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .post-navigation-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "prev next"
            "back back";
    }
}
