/* Project Detail Page Styles */

/* Hero Section */
.project-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #a8d5f520 0%, #f5c4d825 50%, #fde68a20 100%);
    margin-top: 80px;
}

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

.project-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.meta-item strong {
    color: var(--text-primary);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.project-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Layouts */
.project-section {
    padding: 4rem 0;
}

.bg-white {
    background: white;
}

.bg-light {
    background: var(--bg-secondary);
}

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

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Problem & Solution Sections */
.problem-list {
    list-style: none;
    padding: 0;
}

.problem-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-list strong {
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Screenshots */
.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f8fafe 0%, #e8ecf4 100%);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.screenshot-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8fafe 0%, #a8d5f520 100%);
}

.screenshot-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

.screenshot-caption {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technical Section */
.challenge-box {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.challenge-box h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.challenge-box p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.challenge-box p:last-child {
    margin-bottom: 0;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Testimonial */
.testimonial {
    padding: 2rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin: 2rem 0;
}

.testimonial footer {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Lessons */
.lesson-box {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.lesson-box h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.lesson-box p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Typography Overrides */
.content-narrow h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.content-narrow h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.content-narrow ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-narrow ul li {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.content-narrow p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .impact-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-hero {
        padding: 5rem 0 3rem;
    }

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

    .project-tagline {
        font-size: 1.125rem;
    }

    .project-meta {
        gap: 1rem;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

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

    .project-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
