/* Project Detail Page Styles */

/* Demo Video */
.demo-video {
    background: #0f0f0f;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.demo-video-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-video-title i {
    color: #4F46E5;
}

.demo-video video {
    width: 100%;
    display: block;
    max-height: 520px;
    background: #000;
}

.demo-video-caption {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
    margin: 0;
    font-style: italic;
}


.project-page {
    padding-top: 70px;
}

/* Hero */
.project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.project-series {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-read-time {
    font-size: 0.85rem;
    opacity: 0.7;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 860px;
}

.project-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: -0.75rem 0 1.5rem;
    font-style: italic;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tags .tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

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

.project-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Architecture Diagram */
.project-diagram {
    background: #0f0f0f;
    padding: 3rem 0;
    text-align: center;
}

.diagram-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.diagram-caption {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Content */
.project-content {
    background: #fff;
    padding: 4rem 0;
}

.project-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-intro {
    font-size: 1.15rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.project-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1F2937;
    margin: 2.5rem 0 1rem;
}

.project-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin: 2rem 0 0.75rem;
}

.project-body p {
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.project-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-body ul li {
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

/* Tool Stack */
.tool-stack {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.tool-stack h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-list span {
    background: white;
    border: 1px solid #E5E7EB;
    color: #374151;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Pipeline Stages */
.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.stage {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #F9FAFB;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border-left: 3px solid #4F46E5;
}

.stage-num {
    background: #4F46E5;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.stage div strong {
    display: block;
    color: #1F2937;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.stage div p {
    color: #6B7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Learnings */
.learnings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.learning-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.learning-item i {
    color: #10B981;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.learning-item div {
    color: #4B5563;
    line-height: 1.7;
}

.learning-item strong {
    color: #1F2937;
}

/* Footer buttons */
.project-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
}

.project-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-dark {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .project-title {
        font-size: 1.6rem;
    }

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

    .project-diagram {
        padding: 2rem 0;
    }

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

    .project-footer .btn,
    .project-footer .btn-secondary-dark {
        text-align: center;
        justify-content: center;
    }
}

/* ============================================================
   DARK THEME OVERRIDES FOR PROJECT PAGES
   ============================================================ */

.project-content {
    background: var(--bg-base, #080810);
}

.project-intro {
    color: var(--text-2, #94a3b8);
    border-bottom-color: var(--border, rgba(255,255,255,0.07));
}

.project-body h2,
.project-body h3 {
    color: var(--text-1, #e2e8f0);
}

.project-body p,
.project-body ul li {
    color: var(--text-2, #94a3b8);
}

.project-footer {
    border-top-color: var(--border, rgba(255,255,255,0.07));
}

.tool-stack {
    background: var(--bg-card, rgba(255,255,255,0.04));
    border: 1px solid var(--border, rgba(255,255,255,0.07));
}

.tool-stack h3 {
    color: var(--text-3, #64748b);
}

.tool-list span {
    background: var(--bg-alt, #0d0d1a);
    border-color: var(--border, rgba(255,255,255,0.07));
    color: var(--text-2, #94a3b8);
}

.stage {
    background: var(--bg-card, rgba(255,255,255,0.04));
    border-left-color: var(--accent, #6366f1);
}

.stage div strong {
    color: var(--text-1, #e2e8f0);
}

.stage div p {
    color: var(--text-2, #94a3b8);
}

.learning-item div {
    color: var(--text-2, #94a3b8);
}

.learning-item strong {
    color: var(--text-1, #e2e8f0);
}
