/* cobraPHP status page additions
   This file is intended to be loaded after cb.css.
*/

.status-page {
    min-height: 100vh;
}

.status-hero {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.38), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(234, 179, 8, 0.18), transparent 26rem),
        linear-gradient(135deg, #020617, #111827 58%, #172554);
    color: #e5e7eb;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.status-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.status-kicker {
    margin: 0 0 0.65rem;
    color: #facc15;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.status-hero h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.status-date {
    margin: 0.7rem 0 0;
    color: #bfdbfe;
    font-weight: 600;
}

.status-lead {
    max-width: 860px;
    margin: 1.25rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #dbeafe;
}

.status-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-container {
    margin-top: -2rem;
}

.status-summary-grid,
.status-grid-two {
    display: grid;
    gap: 1rem;
}

.status-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.status-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-card,
.status-section {
    position: relative;
}

.status-card {
    background: color-mix(in srgb, var(--surface-color), transparent 0%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.15rem;
    box-shadow: var(--shadow-soft);
}

.status-card::before,
.status-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #3b82f6, #facc15);
}

.status-card__label {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--muted-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-card strong {
    display: block;
    font-size: 1.15rem;
}

.status-card p {
    margin: 0.55rem 0 0;
    color: var(--muted-text);
}

.status-section {
    overflow: hidden;
}

.status-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-section__head h2 {
    margin-bottom: 0;
}

.status-section__head p {
    margin: 0;
    max-width: 660px;
    color: var(--muted-text);
}

.status-table-wrap {
    overflow-x: auto;
}

.status-table {
    min-width: 860px;
}

.status-table th {
    white-space: nowrap;
}

.status-table td {
    vertical-align: top;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.is-stable {
    color: #15803d;
    background: #dcfce7;
}

.status-badge.is-beta {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-badge.is-experimental {
    color: #b45309;
    background: #fef3c7;
}

.status-badge.is-prototype {
    color: #7e22ce;
    background: #f3e8ff;
}

.status-badge.is-progress {
    color: #0369a1;
    background: #e0f2fe;
}

.status-badge.is-early {
    color: #be123c;
    background: #ffe4e6;
}

.status-badge.is-neutral {
    color: #475569;
    background: #f1f5f9;
}

html[data-theme="dark"] .status-badge.is-stable {
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.35);
}

html[data-theme="dark"] .status-badge.is-beta {
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.35);
}

html[data-theme="dark"] .status-badge.is-experimental {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.32);
}

html[data-theme="dark"] .status-badge.is-prototype {
    color: #e9d5ff;
    background: rgba(126, 34, 206, 0.32);
}

html[data-theme="dark"] .status-badge.is-progress {
    color: #bae6fd;
    background: rgba(3, 105, 161, 0.32);
}

html[data-theme="dark"] .status-badge.is-early {
    color: #fecdd3;
    background: rgba(190, 18, 60, 0.28);
}

.status-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    position: relative;
    padding-left: 1.65rem;
    margin: 0.55rem 0;
}

.status-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
}

.status-list.is-ok li::before {
    content: "✓";
    color: #22c55e;
}

.status-list.is-warning li::before {
    content: "!";
    color: #f97316;
}

.status-list.is-progress li::before {
    content: "→";
    color: #3b82f6;
}

.status-list.is-no li::before {
    content: "×";
    color: #ef4444;
}

.maturity-bars {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.maturity-row {
    display: grid;
    grid-template-columns: 9rem 1fr 3.5rem;
    gap: 0.75rem;
    align-items: center;
}

.maturity-bar {
    height: 0.75rem;
    border-radius: 999px;
    background: var(--border-color);
    overflow: hidden;
}

.maturity-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #facc15);
}

.status-demo-box {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: 18px;
    color: #e5e7eb;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 22rem),
        linear-gradient(135deg, #111827, #172554);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.status-demo-box h2 {
    color: #ffffff;
    margin: 0 0 0.45rem;
}

.status-demo-box p {
    margin: 0;
    color: #dbeafe;
}

.status-demo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: #facc15;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.22);
}

.status-demo-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.status-footer {
    text-align: center;
    color: var(--muted-text);
    padding: 1rem 0 2.5rem;
    font-size: 1.05rem;
    font-style: italic;
}

@media (max-width: 900px) {
    .status-summary-grid,
    .status-grid-two {
        grid-template-columns: 1fr;
    }

    .status-section__head {
        align-items: start;
        flex-direction: column;
    }

    .status-demo-box {
        align-items: stretch;
        flex-direction: column;
    }

    .status-demo-link {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .status-actions {
        flex-direction: column;
    }

    .status-actions .btn {
        justify-content: center;
    }

    .maturity-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
