/*
Theme Name: Simpleton Stream
Theme URI: https://bloks.net/
Description: A clean one-person stream, timeline, and microblog child theme for the Simpleton Framework.
Author: BLOKS
Author URI: https://bloks.net/
Template: simpleton
Version: 0.2.1
Text Domain: simpleton-stream
*/

:root {
    --simpleton-bg: #f8fafc;
    --simpleton-surface: #ffffff;
    --simpleton-text: #0f172a;
    --simpleton-muted: #64748b;
    --simpleton-border: rgba(15, 23, 42, 0.12);

    --simpleton-accent: #2563eb;
    --simpleton-accent-dark: #1d4ed8;

    --stream-900: #1e3a8a;
    --stream-800: #1d4ed8;
    --stream-700: #2563eb;
    --stream-600: #3b82f6;
    --stream-500: #60a5fa;
    --stream-soft: #eff6ff;
    --stream-line: rgba(37, 99, 235, 0.22);
}

body.simpleton-theme {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32rem),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.10), transparent 32rem),
        var(--simpleton-bg);
}

.simpleton-site-header {
    position: relative;
    overflow: visible;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--simpleton-border);
}

.simpleton-site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 5px;
    top: 0;
    background:
        linear-gradient(
            90deg,
            var(--stream-900),
            var(--stream-800),
            var(--stream-700),
            var(--stream-600),
            var(--stream-500)
        );
}

.simpleton-button,
.wp-block-button__link {
    background:
        linear-gradient(
            135deg,
            var(--stream-800),
            var(--stream-600),
            var(--stream-500)
        );
    color: #ffffff;
}

/* =========================================================
   Stream Layout
========================================================= */

.stream-page {
    width: min(100% - 2rem, 920px);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.stream-profile {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 28px;
    background: var(--simpleton-surface);
    border: 1px solid var(--simpleton-border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.stream-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            var(--stream-800),
            var(--stream-600),
            var(--stream-500)
        );
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
}

.stream-profile h1 {
    margin: 0 0 .35rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.stream-profile p {
    margin: 0;
    color: var(--simpleton-muted);
    font-size: 1.08rem;
}

.stream-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.stream-links a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: var(--stream-soft);
    color: var(--stream-800);
    font-weight: 800;
    font-size: .9rem;
}

/* =========================================================
   Stream Feed
========================================================= */

.stream-feed {
    position: relative;
}

.stream-feed::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.15rem;
    width: 2px;
    background: var(--stream-line);
}

.stream-post {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stream-dot {
    position: relative;
    z-index: 2;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: var(--simpleton-surface);
    border: 2px solid var(--stream-700);
    box-shadow: 0 0 0 6px var(--simpleton-bg);
}

.stream-card {
    padding: 1.5rem;
    border-radius: 22px;
    background: var(--simpleton-surface);
    border: 1px solid var(--simpleton-border);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.stream-card time {
    display: block;
    margin-bottom: .5rem;
    color: var(--simpleton-muted);
    font-size: .85rem;
    font-weight: 700;
}

.stream-card h2,
.stream-card h3 {
    margin: 0 0 .75rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.stream-card p {
    margin: 0 0 1rem;
    color: var(--simpleton-text);
}

.stream-card p:last-child {
    margin-bottom: 0;
}

.stream-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.stream-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: .3rem .6rem;
    background: #f1f5f9;
    color: var(--simpleton-muted);
    font-size: .8rem;
    font-weight: 800;
}

.stream-pinned {
    border-color: rgba(37, 99, 235, 0.35);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 16rem),
        var(--simpleton-surface);
}

.stream-pinned-label {
    display: inline-flex;
    margin-bottom: .75rem;
    border-radius: 999px;
    padding: .35rem .65rem;
    background: var(--stream-800);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .stream-page {
        width: min(100% - 1rem, 920px);
        padding: 2rem 0 4rem;
    }

    .stream-profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .stream-avatar {
        margin: 0 auto;
    }

    .stream-links {
        justify-content: center;
    }

    .stream-post {
        grid-template-columns: 1.8rem 1fr;
        gap: .75rem;
    }

    .stream-feed::before {
        left: .85rem;
    }

    .stream-dot {
        width: 1.8rem;
        height: 1.8rem;
    }

    .stream-card {
        padding: 1.25rem;
    }
}

.stream-avatar {
    overflow: hidden;
}

.stream-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}