/* project-detail.css — Detail page hero, stats, why, nav */

/* Hero */
.hero {
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: end;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.625rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px; font-weight: 500;
    margin-bottom: 24px;
}
.hero-tag-beta { color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; }
.hero-tag-live { color: #15803D; background: #F0FDF4; border: 1px solid #BBF7D0; }

.hero-title {
    font-family: var(--font-display); font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 400; line-height: 1;
    letter-spacing: -0.03em; color: var(--ink);
    margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-subtitle {
    font-size: 1.0625rem; line-height: 1.65;
    color: var(--mid); max-width: 52ch;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; }

/* Hero aside stats */
.hero-aside {
    display: flex; flex-direction: column; gap: 0;
    border: 1px solid var(--rule); border-radius: 12px;
    overflow: hidden; background: var(--white);
}

.hero-stat {
    padding: 20px 24px;
    border-bottom: 1px solid var(--rule);
    transition: background 0.2s var(--ease);
}
.hero-stat:last-child { border-bottom: none; }

@media (hover: hover) {
    .hero-stat:hover { background: var(--accent-soft); }
}

.hero-stat-val {
    font-family: var(--font-mono); font-size: 1.375rem;
    font-weight: 500; color: var(--ink);
    margin-bottom: 2px;
}

.hero-stat-key {
    font-family: var(--font-mono); font-size: 0.625rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted);
}

/* Why I Built This */
.why-text {
    font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.55; color: var(--ink);
    max-width: 60ch; font-weight: 400;
}
.why-text em { font-style: italic; color: var(--accent); }

/* Security note */
.security-note {
    margin-top: 32px; padding: 24px 28px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--white);
    font-size: 0.875rem; color: var(--mid); line-height: 1.65;
}
.security-note strong { color: var(--ink); }

/* Project navigation */
.project-nav {
    display: flex; justify-content: space-between;
    align-items: center; padding: 48px 0 32px;
}

.pn-link {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; padding: 14px 20px;
    border: 1px solid var(--rule); border-radius: 10px;
    background: var(--white); transition: all 0.2s var(--ease);
}
.pn-link:hover { border-color: var(--ink); background: var(--accent-soft); }
.pn-link:hover .pn-arrow { color: var(--accent); }

.pn-arrow {
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--muted); transition: color 0.2s var(--ease);
}

.pn-text { display: flex; flex-direction: column; }

.pn-dir {
    font-family: var(--font-mono); font-size: 0.5625rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted);
}

.pn-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.pn-link--next { flex-direction: row-reverse; text-align: right; }

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px; padding: 48px 0 56px;
    }
    .hero-aside { flex-direction: row; }
    .hero-stat {
        flex: 1; border-bottom: none;
        border-right: 1px solid var(--rule); text-align: center;
    }
    .hero-stat:last-child { border-right: none; }
}

@media (max-width: 560px) {
    .hero-aside { flex-direction: column; }
    .hero-stat {
        border-right: none;
        border-bottom: 1px solid var(--rule);
        text-align: left;
    }
    .hero-stat:last-child { border-bottom: none; }
    .hero-actions { flex-direction: column; }
    .project-nav { flex-direction: column; gap: 12px; }
    .pn-link { width: 100%; justify-content: center; }
    .pn-link--next { flex-direction: row-reverse; }
}
