/* ==========================================================================
   projects.css — shared shell for all project detail pages
   Depends on css/base.css for tokens and shared components.
   ========================================================================== */

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(52, 211, 153, 0.07), transparent 70%);
}

/* Top bar
   ========================================================================== */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 13, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.project-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.back-link svg {
    transition: transform var(--transition-fast);
}

.back-link:hover {
    color: var(--accent);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.project-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent);
}

.nav-github {
    display: inline-flex;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-github:hover {
    color: var(--accent);
}

/* Page header
   ========================================================================== */
.page-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 140px 24px 40px;
    position: relative;
}

.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 14px;
}

.page-header h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    margin-bottom: 14px;
    max-width: 20ch;
}

.page-lede {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 620px;
}

/* Content sections
   ========================================================================== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 24px 64px;
    position: relative;
}

section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

section h2 {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 18px;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    max-width: 72ch;
}

section p:last-child {
    margin-bottom: 0;
}

/* Key features */
.key-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px 32px;
}

.key-features li {
    position: relative;
    padding: 7px 0 7px 30px;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.key-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Technologies */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* PDF embed */
.pdf-container {
    width: 100%;
    height: 900px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-inset);
}

.pdf-container embed {
    width: 100%;
    height: 100%;
}

.pdf-fallback {
    padding-top: 16px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.pdf-fallback a {
    color: var(--accent);
    font-weight: 500;
}

.pdf-fallback a:hover {
    text-decoration: underline;
}

/* Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 24px;
    text-align: center;
}

.footer-note {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-note a {
    color: var(--text-secondary);
}

.footer-note a:hover {
    color: var(--accent);
}

/* Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 116px 20px 32px;
    }

    main {
        padding: 8px 20px 48px;
    }

    section {
        padding: 24px 20px;
    }

    .pdf-container {
        height: 540px;
    }
}

@media (max-width: 480px) {
    .pdf-container {
        height: 420px;
    }

    /* Slim the bar down to arrow + brand on phones */
    .back-link .back-label {
        display: none;
    }
}
