/* Site_Meirfar — shared base styles. */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Chakra Petch', system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: #171717;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='%23080808' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E");
    color: #fff;
    min-height: 100vh;
}

/* Form controls don't inherit body font by default. Force them to. */
input, button, select, textarea {
    font-family: inherit;
}

a { color: #a30008; text-decoration: none; }
a:hover { color: #c8000a; }

/* Top action bar shown on workspace pages. */
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #0a0a0a;
    border-bottom: 1px solid #1f1f1f;
    font-size: 0.85rem;
}
.topbar a { margin-left: 1rem; }

/* Workspace banner — natural size up to 602px, scales down to fit narrow
   screens while keeping its aspect ratio (never upscaled past 602px). */
.banner {
    width: 602px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Rounded corners + a soft coloured glow. The glow colour is supplied per
   page via the --banner-glow custom property (e.g. style="--banner-glow:#db0000").
   color-mix keeps the glow subtle; the first box-shadow is a fallback for
   browsers without color-mix support. */
.banner--glow {
    border-radius: 22px;
    box-shadow: 0 0 28px 4px var(--banner-glow, transparent);
    box-shadow:
        0 0 22px 2px color-mix(in srgb, var(--banner-glow, transparent) 45%, transparent),
        0 0 55px 12px color-mix(in srgb, var(--banner-glow, transparent) 22%, transparent);
}

/* Workspace category tabs (Kanban / Docs / Files), centred under the banner. */
.ws-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem auto 1.5rem;
    padding: 0 1rem;
}
.ws-tab {
    background: #141414;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    color: #aaa;
    padding: 0.5rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ws-tab:hover {
    color: #fff;
    border-color: #333;
}
.ws-tab.is-active {
    color: #fff;
    background: #1c1c1c;
    border-color: #a30008;
    box-shadow: 0 0 14px -2px rgba(163, 0, 8, 0.6);
}

/* Category panels. Only the active one is shown; the rest carry [hidden]. */
.ws-panel[hidden] { display: none; }
.ws-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
    color: #666;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

/* Banner picker shown to admins (and multi-workspace users). */
.picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}
.picker .pick {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #1f1f1f;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.picker .pick:hover {
    border-color: #a30008;
    transform: translateY(-2px);
}
.picker .pick img {
    width: 602px;
    height: 252px;
    display: block;
}
