/* CercleWork Design System — Calm, minimal, builder-focused */

:root {
    --wc-bg: #f8f7f4;
    --wc-surface: #ffffff;
    --wc-border: #e8e5df;
    --wc-text: #1a1915;
    --wc-muted: #6b6860;
    --wc-accent: #3d6b4f;       /* Forest green — calm, grounded */
    --wc-accent-hover: #2e5340;
    --wc-accent-light: #edf3ef;
    --wc-warn: #c47a1e;
    --wc-danger: #b84040;
    --wc-rep: #c47a1e;
    --wc-radius: 10px;
    --wc-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body.wc-body {
    background: var(--wc-bg);
    color: var(--wc-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Navbar ---- */
.wc-navbar {
    background: var(--wc-surface);
    border-bottom: 1px solid var(--wc-border);
    padding: .6rem 0;
}
.wc-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--wc-accent) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.wc-logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--wc-accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.wc-navbar .nav-link {
    color: var(--wc-text) !important;
    font-weight: 500;
}
.wc-navbar .nav-link:hover { color: var(--wc-accent) !important; }

/* Right cluster (Log in / Join, profile links): vertical alignment */
.wc-navbar .navbar-nav.ms-auto .nav-link {
    display: inline-flex;
    align-items: center;
}

/* Join: .wc-btn-sm + Bootstrap .nav-link padding stacked badly; normalize */
.wc-navbar .nav-link.wc-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobile navbar tweaks */
@media (max-width: 991.98px) {
    .wc-navbar .navbar-collapse {
        border-top: 1px solid var(--wc-border);
        padding-top: .5rem;
        margin-top: .5rem;
    }
    .wc-navbar .navbar-nav .nav-link {
        padding: .45rem .25rem;
    }
    .wc-navbar .navbar-nav.ms-auto {
        gap: 0 !important;
    }
}

/* ---- Cards ---- */
.wc-card {
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    box-shadow: var(--wc-shadow);
}

/* ---- Buttons ---- */
.wc-btn-primary {
    background: var(--wc-accent);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background .15s;
}
.wc-btn-primary:hover { background: var(--wc-accent-hover); }

.wc-btn-outline {
    background: transparent;
    color: var(--wc-accent) !important;
    border: 1.5px solid var(--wc-accent);
    border-radius: 6px;
    font-weight: 600;
}
.wc-btn-outline:hover { background: var(--wc-accent-light); }

.wc-btn-ghost {
    background: transparent;
    color: var(--wc-muted) !important;
    border: 1.5px solid var(--wc-border);
    border-radius: 6px;
}
.wc-btn-ghost:hover { border-color: var(--wc-muted); }

.wc-btn-sm {
    padding: .25rem .75rem;
    font-size: .85rem;
    border-radius: 5px;
    border: 1.5px solid var(--wc-accent);
    color: var(--wc-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Form inputs ---- */
.wc-input:focus {
    border-color: var(--wc-accent);
    box-shadow: 0 0 0 3px rgba(61,107,79,.15);
    outline: none;
}

/* ---- Links ---- */
.wc-link { color: var(--wc-accent); text-decoration: none; font-weight: 500; }
.wc-link:hover { text-decoration: underline; }
.wc-link-dark { color: var(--wc-text); text-decoration: none; font-weight: 600; }
.wc-link-dark:hover { color: var(--wc-accent); }

/* ---- Hero ---- */
.wc-hero { padding-top: 3rem; padding-bottom: 3rem; }

/* ---- Badges ---- */
.wc-tag-badge {
    background: var(--wc-accent-light);
    color: var(--wc-accent);
    font-weight: 500;
    border-radius: 4px;
}
.wc-circle-badge {
    background: var(--wc-accent-light);
    color: var(--wc-accent);
    font-size: .8rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
}
.wc-circle-badge:hover { background: var(--wc-accent); color: #fff; }
.wc-joined-badge {
    background: var(--wc-accent);
    color: #fff;
    font-size: .75rem;
    border-radius: 4px;
}
.wc-rep-badge {
    display: inline-block;
    background: #fef3e2;
    color: var(--wc-rep);
    font-weight: 600;
    font-size: .85rem;
    padding: 4px 12px;
    border-radius: 20px;
}
.wc-rep-micro {
    background: #fef3e2;
    color: var(--wc-rep);
    font-size: .75rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
}

/* ---- Profile ---- */
.wc-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--wc-accent);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--wc-surface);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.wc-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.wc-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wc-accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    vertical-align: middle;
    flex-shrink: 0;
}
.wc-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.wc-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wc-text);
    text-decoration: none;
    font-weight: 600;
}
.wc-author-link:hover { color: var(--wc-accent); text-decoration: none; }

.wc-status-box {
    background: var(--wc-accent-light);
    border-left: 3px solid var(--wc-accent);
    font-size: .9rem;
}

/* ---- Profile charts ---- */
.wc-chart-wrap {
    position: relative;
    height: 180px;
}
.wc-profile-banner {
    height: 90px;
    border-radius: var(--wc-radius) var(--wc-radius) 0 0;
    background: linear-gradient(135deg, var(--wc-accent-light) 0%, #d4e9db 100%);
}

/* ---- Threads ---- */
.wc-thread-item {
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    transition: border-color .15s;
}
.wc-thread-item:hover { border-color: var(--wc-accent); }
.wc-reply-card {
    background: var(--wc-bg);
    border: 1px solid var(--wc-border);
}

/* ---- Manifesto / Strikethrough ---- */
.wc-manifesto {
    background: var(--wc-accent-light);
    border: 1px solid #c9dbd1;
}
.wc-strike-badge {
    background: #fff;
    border: 1px solid var(--wc-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .9rem;
    color: var(--wc-muted);
    text-decoration: line-through;
}

/* ---- Misc ---- */
.wc-divider { border-color: var(--wc-border); }
.wc-icon { font-size: 2rem; }
.wc-in-progress-dot { color: var(--wc-warn); font-weight: 600; }
.wc-empty-state { color: var(--wc-muted); }
.wc-body-text { line-height: 1.75; }
.wc-footer { background: var(--wc-surface); border-top: 1px solid var(--wc-border); }

/* ---- Circle filter pills ---- */
.wc-filter-bar {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wc-border);
}
.wc-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.42rem 1.05rem;
    border-radius: 100px;         /* fully pill-shaped */
    border: none;
    outline: none;
    background: #edeae5;          /* warm resting state — distinct from page bg */
    color: var(--wc-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
    user-select: none;
}
.wc-filter-pill:hover {
    background: #dedad3;
    color: var(--wc-text);
}
.wc-filter-pill:active {
    transform: scale(0.97);
}

/* Count bubble — inherits color from parent so it always matches */
.wc-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 100px;
    background: rgba(0,0,0,0.10);
    color: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    transition: background .15s;
}

/* ── Active base (All tab) ──────────────────────────────────────────── */
.wc-filter-pill--active {
    background: var(--wc-text);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.wc-filter-pill--active .wc-filter-count {
    background: rgba(255,255,255,0.22);
}

/* ── Skill — forest green ──────────────────────────────────────────── */
.wc-filter-pill--skill:hover                        { background: #d8e8de; color: var(--wc-accent-hover); }
.wc-filter-pill--skill.wc-filter-pill--active       { background: var(--wc-accent); color: #fff; box-shadow: 0 2px 8px rgba(61,107,79,.30); }

/* ── Industry — amber ──────────────────────────────────────────────── */
.wc-filter-pill--industry:hover                     { background: #faebd4; color: #8a4d0f; }
.wc-filter-pill--industry.wc-filter-pill--active    { background: #b36512; color: #fff; box-shadow: 0 2px 8px rgba(179,101,18,.28); }

/* ── Company — slate blue ──────────────────────────────────────────── */
.wc-filter-pill--company:hover                      { background: #e4e5f4; color: #3a4591; }
.wc-filter-pill--company.wc-filter-pill--active     { background: #4a55a2; color: #fff; box-shadow: 0 2px 8px rgba(74,85,162,.28); }

/* ── Project — burgundy ────────────────────────────────────────────── */
.wc-filter-pill--project:hover                      { background: #f5dede; color: #752e2e; }
.wc-filter-pill--project.wc-filter-pill--active     { background: #8b3a3a; color: #fff; box-shadow: 0 2px 8px rgba(139,58,58,.28); }

/* ── My Circles — accent green (softer, personal) ──────────────────── */
.wc-filter-pill--mine:hover                         { background: var(--wc-accent-light); color: var(--wc-accent); }
.wc-filter-pill--mine.wc-filter-pill--active        { background: var(--wc-accent); color: #fff; box-shadow: 0 2px 8px rgba(61,107,79,.30); }

/* ---- Circle type category badges (on cards) ---- */
.wc-cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.wc-cat-badge--skill    { background: var(--wc-accent-light); color: var(--wc-accent); }
.wc-cat-badge--industry { background: #fef3e2; color: #a86010; }
.wc-cat-badge--company  { background: #eeedf6; color: #4a55a2; }
.wc-cat-badge--project  { background: #fce9e9; color: #8b3a3a; }
.wc-cat-badge--other    { background: var(--wc-border); color: var(--wc-muted); }

/* ---- Page navigation progress bar ---- */
#wc-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 3px;
    background: var(--wc-accent);
    z-index: 9999;
    transition: width .2s ease, opacity .3s ease;
    opacity: 0;
    pointer-events: none;
}
#wc-progress.wc-progress-active {
    opacity: 1;
}

/* ---- Skeleton shimmer ---- */
@keyframes wc-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.wc-skeleton {
    background: linear-gradient(90deg, #ece9e3 25%, #f4f2ee 50%, #ece9e3 75%);
    background-size: 600px 100%;
    animation: wc-shimmer 1.4s infinite linear;
    border-radius: 6px;
    display: block;
}

/* Circle detail skeleton */
.wc-detail-skeleton { display: none; }
.wc-detail-skeleton.wc-visible { display: block; }
.wc-detail-content { transition: opacity .2s; }
.wc-detail-content.wc-hidden { opacity: 0; }

/* ---- Company & Workspace cohesion ---- */
.wc-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--wc-muted);
}
.wc-section-card {
    border-style: solid;
}
.wc-company-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.wc-company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.wc-brand-summary {
    background: var(--wc-accent-light);
    border: 1px solid #dbe7df;
    border-radius: 8px;
}
.wc-subsection {
    border-top: 1px solid var(--wc-border);
}
.wc-workspace-card {
    border-left: 3px solid var(--wc-accent);
}
.wc-workboard-badge {
    background: var(--wc-accent-light);
    color: var(--wc-accent-hover);
    border: 1px solid #c9dbd1;
    font-weight: 600;
    font-size: .7rem;
}
