/* ── Blueprint — AI Project Management ──────────────────────────────────── */

:root {
    --bp-dark:         #140735;
    --bp-primary:      #1e0d4a;
    --bp-accent:       #7c3aed;
    --bp-accent-light: #a78bfa;
    --bp-surface:      #1f1040;
    --bp-text:         #f1f5f9;
    --bp-muted:        #94a3b8;
    --bp-border:       rgba(167,139,250,0.18);
}

/* ── Page wrapper ──────────────────────────────────────────────────────── */

.bp-page {
    background-color: var(--bp-dark);
    min-height: 100vh;
    color: var(--bp-text);
}

/* ── Hero section ──────────────────────────────────────────────────────── */

.bp-hero {
    position: relative;
    background: url('/blueprint_img/blueprint%20banner.png') center/cover no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.bp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 7, 53, 0.72);
    z-index: 0;
}

.bp-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.bp-hero-logo {
    width: 180px;
    max-width: 60%;
    margin-bottom: 1.5rem;
}

.bp-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.bp-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bp-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bp-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.18s;
}

.bp-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.bp-cta-primary {
    background: var(--bp-accent);
    color: #fff;
    border: 2px solid var(--bp-accent);
}

.bp-cta-secondary {
    background: transparent;
    color: var(--bp-accent-light);
    border: 2px solid var(--bp-accent-light);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.bp-section {
    padding: 3.5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bp-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bp-text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.bp-section-sub {
    font-size: 1rem;
    color: var(--bp-muted);
    margin-bottom: 2.5rem;
}

/* ── Features grid ─────────────────────────────────────────────────────── */

.bp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.bp-feature-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.bp-feature-card:hover {
    border-color: var(--bp-accent-light);
    transform: translateY(-4px);
}

.bp-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.bp-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp-text);
    margin-bottom: 0.4rem;
}

.bp-feature-desc {
    font-size: 0.9rem;
    color: var(--bp-muted);
    line-height: 1.6;
}

/* ── How it works ──────────────────────────────────────────────────────── */

.bp-steps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    counter-reset: steps;
}

.bp-step {
    flex: 1 1 200px;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
}

.bp-step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bp-accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    line-height: 32px;
    margin-bottom: 0.75rem;
}

.bp-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bp-text);
    margin-bottom: 0.3rem;
}

.bp-step-desc {
    font-size: 0.85rem;
    color: var(--bp-muted);
    line-height: 1.5;
}

/* ── Status badge ──────────────────────────────────────────────────────── */

.bp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bp-badge-active    { background: rgba(124,58,237,0.18); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.bp-badge-paused    { background: rgba(234,179, 8,0.15); color: #fcd34d; border: 1px solid rgba(234,179,8,0.3); }
.bp-badge-completed { background: rgba( 34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.bp-badge-archived  { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.bp-badge-draft     { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.bp-badge-inprogress{ background: rgba( 59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.bp-badge-blocked   { background: rgba(239, 68, 68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ── Task card ─────────────────────────────────────────────────────────── */

.bp-task-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.18s;
}

.bp-task-card:hover {
    border-color: var(--bp-accent-light);
}

.bp-task-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bp-text);
    margin-bottom: 0.3rem;
}

.bp-task-meta {
    font-size: 0.82rem;
    color: var(--bp-muted);
}

/* ── Form panels ───────────────────────────────────────────────────────── */

.bp-form-panel {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* AI-generated HTML inside exec summary — force dark-theme readable colors */
.bp-exec-summary-body {
    color: var(--bp-text);
    font-size: 0.93rem;
    line-height: 1.7;
}
.bp-exec-summary-body h1,
.bp-exec-summary-body h2,
.bp-exec-summary-body h3,
.bp-exec-summary-body h4 {
    color: var(--bp-text);
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}
.bp-exec-summary-body p,
.bp-exec-summary-body li,
.bp-exec-summary-body td,
.bp-exec-summary-body th {
    color: var(--bp-text);
}
.bp-exec-summary-body strong,
.bp-exec-summary-body b {
    color: var(--bp-text);
}
.bp-exec-summary-body a {
    color: var(--bp-accent-light);
}
.bp-exec-summary-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
}
.bp-exec-summary-body th {
    color: var(--bp-accent-light);
    border-bottom: 1px solid var(--bp-border);
    padding: 6px 10px;
    text-align: left;
    font-size: 0.85rem;
}
.bp-exec-summary-body td {
    border-bottom: 1px solid var(--bp-border);
    padding: 6px 10px;
    font-size: 0.88rem;
}
.bp-exec-summary-body ul,
.bp-exec-summary-body ol {
    padding-left: 1.4rem;
    margin: 0.5rem 0;
}
.bp-exec-summary-body hr {
    border: none;
    border-top: 1px solid var(--bp-border);
    margin: 1rem 0;
}

.bp-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    display: block;
}

/* ── Divider ───────────────────────────────────────────────────────────── */

.bp-divider {
    border: none;
    border-top: 1px solid var(--bp-border);
    margin: 1.5rem 0;
}

/* ── Project card (dashboard) ──────────────────────────────────────────── */

.bp-project-card {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.bp-project-card:hover {
    border-color: var(--bp-accent);
    transform: translateY(-3px);
}

.bp-project-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bp-text);
    margin-bottom: 0.5rem;
}

.bp-project-desc {
    font-size: 0.88rem;
    color: var(--bp-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bp-project-meta {
    font-size: 0.8rem;
    color: var(--bp-muted);
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .bp-hero { min-height: 380px; }
    .bp-features-grid { grid-template-columns: 1fr; }
    .bp-steps { flex-direction: column; }

    /* Header: hide email, tighten gap so Dashboard + Logout don't drop */
    .bp-nav-email  { display: none !important; }
    .bp-header-nav { gap: 0.85rem !important; }

    /* Task card: action buttons take full row width and left-align */
    .bp-task-card-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        flex-shrink: unset !important;
        justify-content: flex-start !important;
    }

    /* Schema / form action buttons: wrap onto multiple lines */
    .bp-schema-actions { flex-wrap: wrap !important; }
    .bp-schema-actions .rz-button {
        flex: 1 1 auto;
        min-width: 130px;
    }
}
