/* ==========================================================================
   Project Detail Pages - Shared Styles
   ========================================================================== */

/* Project Hero Banner */
.project-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,240,255,0.03), rgba(157,0,255,0.03));
    pointer-events: none;
}

.project-hero-badge {
    display: inline-block;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.project-hero-title {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-hero-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Project Nav */
.project-nav .nav-container {
    justify-content: space-between;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* Project Sections */
.project-section {
    min-height: auto;
    padding: 4rem 0;
}

/* Problem Card */
.problem-card {
    max-width: 800px;
    margin: 0 auto;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Architecture Diagram (project-specific) */
.project-arch-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 3rem 1rem;
}

.project-arch-node {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.2rem;
    text-align: center;
    min-width: 130px;
    transition: all 0.3s ease;
    animation: node-glow 3s ease-in-out infinite alternate;
}

.project-arch-node:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-dim);
    transform: translateY(-3px);
}

.project-arch-node .node-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
}

.project-arch-node .node-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.arch-arrow {
    width: 50px;
    height: 2px;
    background: transparent;
    border-top: 2px dashed rgba(0,240,255,0.3);
    position: relative;
}

.arch-arrow::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-blue);
    border-top: 2px solid var(--accent-blue);
    transform: rotate(45deg);
}

/* Contributions Grid */
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.contribution-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contribution-card .contrib-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-blue-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.contribution-card ul {
    padding-left: 1rem;
    color: var(--text-muted);
}

.contribution-card li {
    margin-bottom: 0.4rem;
    position: relative;
}

.contribution-card li::before {
    content: '\25B9';
    position: absolute;
    left: -1rem;
    color: var(--accent-blue);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Tech Deep Dive */
.tech-deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-deep-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.tech-deep-card .tech-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.tech-deep-card h4 {
    margin-bottom: 0.5rem;
}

.tech-deep-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

    .project-arch-diagram {
        flex-direction: column;
    }

    .arch-arrow {
        width: 2px;
        height: 30px;
        border-top: none;
        border-left: 2px dashed rgba(0,240,255,0.3);
    }

    .arch-arrow::after {
        right: auto;
        left: -5px;
        top: auto;
        bottom: -4px;
        transform: rotate(135deg);
    }

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

@media (max-width: 480px) {
    .project-hero-title { font-size: 2rem; }
    .project-hero-subtitle { font-size: 1rem; }
    .project-hero { padding: 5rem 0 3rem; min-height: auto; }
    .project-section { padding: 2rem 0; }
    .project-section h2 { font-size: 1.4rem; }
    .project-section p { font-size: 0.9rem; }
    .project-metrics-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .metric-card { padding: 1rem; }
    .metric-value { font-size: 1.8rem; }
    .tech-deep-item { padding: 1rem; }
    .back-link { font-size: 0.85rem; }
}
