/* View: needlepoint — Page-specific styles */

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Roboto Mono', monospace;
}

.np-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Header ── */
.np-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(51, 255, 51, 0.3);
    padding-bottom: 1.5rem;
}

.np-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #33ff33;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.np-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #e622c5;
    border: 1px solid #e622c5;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.np-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 680px;
}

/* ── Section headings ── */
.np-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e622c5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(230, 34, 197, 0.3);
}

/* ── Training data grid ── */
.np-training-section {
    margin-bottom: 3rem;
}

.np-pairs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.np-pair {
    background: #111;
    border: 1px solid rgba(51, 255, 51, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.np-pair-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(51,255,51,0.6);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(51,255,51,0.15);
}

.np-pair-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.np-input-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    image-rendering: crisp-edges;
}

.np-arrow {
    color: rgba(51,255,51,0.5);
    font-size: 1.2rem;
    line-height: 1;
}

/* Output pixel map — 2×2 image scaled up to be legible */
.np-output-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.np-output-img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
}

.np-output-caption {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

/* ── Concept section ── */
.np-concept-section {
    margin-bottom: 3rem;
}

.np-concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.np-concept-card {
    background: #111;
    border: 1px solid rgba(51,255,51,0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.np-concept-card h4 {
    font-size: 0.8rem;
    color: #33ff33;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.06em;
}

.np-concept-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

/* ── Placeholder CTA ── */
.np-coming-soon {
    background: rgba(51,255,51,0.04);
    border: 1px solid rgba(51,255,51,0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.np-coming-soon h3 {
    font-size: 1rem;
    color: #33ff33;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.np-coming-soon p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .np-pairs {
        grid-template-columns: 1fr;
    }
    .np-concept-grid {
        grid-template-columns: 1fr;
    }
}
