/* Brushee content site — news / updates / guides.
   Purple-leaning, light, friendly. Sits under /news, /updates, /guides;
   the editor app at / has its own stylesheet and isn't affected. */

:root {
    --c-bg: #ffffff;
    --c-bg-soft: #faf8ff;
    --c-surface: #ffffff;
    --c-text: #1a1536;
    --c-text-muted: #6b678c;
    --c-border: #ece6ff;

    --c-purple: #7b5cff;
    --c-purple-deep: #5c3fd9;
    --c-purple-soft: #ede5ff;
    --c-pink: #ff5aa1;
    --c-teal: #00d1c1;

    --c-badge-new-bg: #d5f5dd;
    --c-badge-new-fg: #1e7a3a;
    --c-badge-tips-bg: #d9edff;
    --c-badge-tips-fg: #1d5fa8;
    --c-badge-community-bg: #ede1ff;
    --c-badge-community-fg: #5c3fd9;
    --c-badge-fix-bg: #ffe1e8;
    --c-badge-fix-fg: #b03a60;
    --c-badge-tweak-bg: #fff1d6;
    --c-badge-tweak-fg: #8a5a1a;
    --c-badge-guide-bg: #e7e1ff;
    --c-badge-guide-fg: #5c3fd9;
    --c-badge-launch-bg: #ffe0ea;
    --c-badge-launch-fg: #b8336a;

    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-card: 0 1px 2px rgba(26, 21, 54, 0.04), 0 6px 18px rgba(26, 21, 54, 0.06);
    --shadow-panel: 0 6px 30px rgba(123, 92, 255, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-purple); text-decoration: none; }
a:hover { color: var(--c-purple-deep); }

img { max-width: 100%; display: block; }

/* --- Header ----------------------------------------------------------- */

.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 48px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.site-logo-mark { height: 40px; width: auto; }
.site-logo-word { height: 28px; width: auto; }

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
}
.site-nav-link {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    color: var(--c-text);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
}
.site-nav-link:hover {
    background: var(--c-bg-soft);
}
.site-nav-link.is-active {
    background: var(--c-purple-soft);
    color: var(--c-purple-deep);
}

.site-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #8b6bff, #6b4de0);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.35);
}
.site-back-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(123, 92, 255, 0.45);
}
.site-back-btn span {
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
}
.site-back-btn-full { font-weight: 700; font-size: 15px; line-height: 1; }
.site-back-btn-mobile { display: none; font-weight: 700; font-size: 15px; line-height: 1; }

/* --- Main layout ------------------------------------------------------ */

.site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 48px 72px;
}

/* --- Hero ------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    position: relative;
}

.hero-copy { padding-right: 16px; }

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--c-text);
}
.hero-title-accent {
    background: linear-gradient(90deg, #ff5a5a, #ffb34d, #ffe14d 30%, #5ad67d 55%, #5ac8fa 75%, #b36bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--c-text-muted);
    max-width: 420px;
    margin: 0 0 28px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #8b6bff, #6b4de0);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(123, 92, 255, 0.4);
}
.hero-cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(123, 92, 255, 0.5);
}
.hero-cta span { font-weight: 500; font-size: 18px; line-height: 1; }

.hero-art { display: flex; justify-content: flex-end; }
.hero-art img { width: 100%; max-width: 640px; height: auto; }

/* --- Section headers -------------------------------------------------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 16px;
}
.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}
.section-head-link {
    font-size: 14px;
    font-weight: 600;
}

/* --- Latest news row + Quick Links ----------------------------------- */

.news-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    align-items: start;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Cards (shared) */

.card {
    display: block;
    background: var(--c-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--c-text);
    transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
    color: var(--c-text);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(26,21,54,0.06), 0 10px 30px rgba(26,21,54,0.1);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--c-purple-soft);
    overflow: hidden;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: var(--c-purple-soft);
    color: var(--c-purple-deep);
    text-transform: uppercase;
}
.card-badge-new       { background: var(--c-badge-new-bg);       color: var(--c-badge-new-fg); }
.card-badge-tips      { background: var(--c-badge-tips-bg);      color: var(--c-badge-tips-fg); }
.card-badge-community { background: var(--c-badge-community-bg); color: var(--c-badge-community-fg); }
.card-badge-fix       { background: var(--c-badge-fix-bg);       color: var(--c-badge-fix-fg); }
.card-badge-tweak     { background: var(--c-badge-tweak-bg);     color: var(--c-badge-tweak-fg); }
.card-badge-guide     { background: var(--c-badge-guide-bg);     color: var(--c-badge-guide-fg); }
.card-badge-launch    { background: var(--c-badge-launch-bg);    color: var(--c-badge-launch-fg); }

.card-body { padding: 16px 18px 18px; }
.card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.card-excerpt {
    margin: 0 0 10px;
    color: var(--c-text-muted);
    font-size: 14px;
    line-height: 1.45;
}
.card-date {
    color: var(--c-text-muted);
    font-size: 13px;
}

/* Quick Links sidebar */

.quick-links {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 22px 22px 18px;
}
.quick-links h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
}
.quick-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    color: var(--c-text);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
}
.quick-links a:hover {
    background: var(--c-bg-soft);
    color: var(--c-purple-deep);
}
.quick-links-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Learn. Create. Grow. panel -------------------------------------- */

.learn-panel {
    margin-top: 32px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #f5ecff 0%, #ffe7f5 60%, #e5f4ff 100%);
    box-shadow: var(--shadow-panel);
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 28px;
    align-items: center;
}
.learn-copy h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.learn-copy p {
    margin: 0 0 18px;
    color: var(--c-text-muted);
    font-size: 14px;
}
.learn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #8b6bff, #6b4de0);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.3);
}
.learn-cta:hover { color: #ffffff; transform: translateY(-1px); }
.learn-cta-icon { display: inline-block; line-height: 1; }

.learn-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.learn-tile {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--c-text);
    box-shadow: var(--shadow-card);
    transition: transform 0.15s;
}
.learn-tile:hover { transform: translateY(-2px); color: var(--c-text); }
.learn-tile-cover {
    aspect-ratio: 16 / 9;
    background: var(--c-purple-soft);
    overflow: hidden;
}
.learn-tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.learn-tile-title {
    padding: 10px 14px 14px;
    font-weight: 700;
    font-size: 14px;
}

/* --- Listings / detail pages (used by index/post PHP later) ---------- */

.page-head {
    padding: 32px 0 18px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 28px;
}
.page-head h1 {
    margin: 0 0 6px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-head p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 16px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 0;
}
.post-article h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.post-meta { color: var(--c-text-muted); margin-bottom: 24px; font-size: 14px; }
.post-body h2 { margin-top: 32px; font-size: 24px; }
.post-body h3 { margin-top: 24px; font-size: 19px; }
.post-body p, .post-body li { font-size: 16px; line-height: 1.7; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body code { background: var(--c-purple-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

/* --- Footer ----------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--c-border);
    padding: 20px 48px;
    background: var(--c-bg-soft);
    color: var(--c-text-muted);
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.site-footer-nav { display: flex; gap: 18px; }
.site-footer-nav a { color: var(--c-text-muted); font-weight: 500; }
.site-footer-nav a:hover { color: var(--c-purple-deep); }

/* --- Responsive ------------------------------------------------------- */

@media (max-width: 1060px) {
    .site-main { padding: 24px 24px 56px; }
    .site-header-inner { padding: 12px 24px; }
    .hero { grid-template-columns: 1fr; }
    .hero-title { font-size: 48px; }
    .hero-art { justify-content: center; }
    .news-row { grid-template-columns: 1fr; }
    .news-cards { grid-template-columns: repeat(2, 1fr); }
    .learn-panel { grid-template-columns: 1fr; }
    .learn-tiles { grid-template-columns: repeat(4, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .site-header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
    .site-nav { margin: 0; order: 3; width: 100%; overflow-x: auto; }
    .site-back-btn { margin-left: auto; padding: 9px 16px; }
    .site-back-btn-full { display: none; }
    .site-back-btn-mobile { display: inline; }
    .hero-title { font-size: 40px; }
    .news-cards { grid-template-columns: 1fr; }
    .learn-tiles { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: 1fr; }
    .site-footer { padding: 16px 20px; }
    .site-footer-inner { flex-direction: column; gap: 10px; }
}
