/* Project Detail Page Styles */

/* Hero Section */
.project-detail-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

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

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

.project-tags span {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.project-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.back-to-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-projects-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Content Section */
.project-detail-content {
    padding: 60px 0 100px;
}

/* Image Grid - The Core Request */
.project-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.image-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards stretch */
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.image-card img,
.image-card video {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* Cover to fill the area without distortion */
    object-position: top; /* Show the top of the image (good for long screenshots) */
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: height 0.3s ease;
    cursor: pointer; /* Hint that it might be expandable (future feature) */
}

/* Optional: Make full-width images for certain key assets if needed, 
   but for now keeping them uniform as requested */

.image-card .caption {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    flex-grow: 1; /* Push caption to bottom if needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project Description Box */
.project-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.project-description h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.project-description h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.project-description p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-description ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.project-description li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-detail-hero {
        padding: 100px 0 40px;
    }

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

    .project-image-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .image-card img,
    .image-card video {
        height: auto; /* Let height be natural on mobile for better visibility */
        max-height: 400px;
        object-fit: contain; /* Or cover, depending on preference. Cover looks neater. */
        object-fit: cover;
    }
    
    .project-description {
        padding: 1.5rem;
    }
}
