@import url("../../colors_and_type.css");

body { margin: 0; background: var(--ink-050); color: var(--calluna-black); font-family: var(--font-body); }

.st-app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

/* sidebar */
.st-sidebar { background: var(--calluna-black); color: var(--calluna-white); padding: 22px 18px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; align-self: flex-start; height: 100vh; }
.st-sidebar__brand { display: flex; align-items: center; gap: 10px; }
.st-sidebar__mark { width: 22px; height: 22px; }
.st-sidebar__word { height: 18px; }
.st-sidebar__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.st-sidebar__item { background: transparent; border: 0; color: rgba(255,255,255,.7); text-align: left; padding: 10px 12px; border-radius: 10px; font-family: var(--font-body); font-size: 14px; font-weight: 500; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.st-sidebar__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.st-sidebar__item.is-active { background: var(--calluna-purple); color: #fff; }
.st-sidebar__glyph { width: 18px; text-align: center; font-family: var(--font-mono); opacity: .9; }
.st-sidebar__foot { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.st-avatar { width: 36px; height: 36px; border-radius: 9999px; background: var(--calluna-purple); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.st-sidebar__name { font-size: 13px; font-weight: 500; }
.st-sidebar__role { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: 0.04em; }

/* topbar */
.st-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ink-200); position: sticky; top: 0; z-index: 10; }
.st-top__crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; }
.st-top__crumb--curr { color: var(--calluna-black); }
.st-top__sep { opacity: .5; }
.st-top__actions { display: flex; align-items: center; gap: 10px; }
.st-search { display: flex; align-items: center; gap: 10px; background: var(--ink-100); border-radius: 10px; padding: 8px 12px; min-width: 320px; }
.st-search input { background: transparent; border: 0; outline: none; font-family: var(--font-body); font-size: 14px; flex: 1; }
.st-search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); background: #fff; border: 1px solid var(--ink-200); border-radius: 4px; padding: 1px 6px; }
.st-search__icon { color: var(--ink-500); }

/* buttons */
.st-btn { font-family: var(--font-body); font-weight: 500; font-size: 14px; padding: 9px 14px; border-radius: 9px; border: 0; cursor: pointer; transition: all 160ms cubic-bezier(.22,1,.36,1); }
.st-btn--lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; }
.st-btn--primary { background: var(--calluna-purple); color: #fff; }
.st-btn--primary:hover { background: var(--purple-600); box-shadow: 0 4px 12px rgba(105,51,217,.24); }
.st-btn--primary:disabled { background: var(--purple-200); cursor: wait; }
.st-btn--ghost { background: transparent; color: var(--calluna-black); box-shadow: inset 0 0 0 1px var(--ink-300); }
.st-btn--ghost:hover { background: var(--ink-100); }

/* hello */
.st-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--calluna-purple); }
.st-h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; margin: 6px 0 0; }
.st-hello { padding: 40px 32px 24px; }
.st-hello__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.st-hello__title { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1.02; letter-spacing: -0.03em; margin: 8px 0 0; }
.st-hello__p { color: var(--ink-600); font-size: 17px; margin: 12px 0 0; }
.st-hello__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.st-stat { background: #fff; border: 1px solid var(--ink-200); border-radius: 14px; padding: 18px; }
.st-stat__n { font-family: var(--font-display); font-weight: 900; font-size: 32px; letter-spacing: -0.02em; }
.st-stat__l { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* grid */
.st-grid { padding: 32px 32px 64px; }
.st-grid__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.st-filters { display: flex; gap: 6px; background: #fff; border: 1px solid var(--ink-200); padding: 4px; border-radius: 10px; }
.st-filter { font-family: var(--font-body); font-size: 13px; font-weight: 500; background: transparent; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--ink-600); }
.st-filter.is-active { background: var(--calluna-black); color: #fff; }
.st-grid__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

/* project card */
.st-proj { background: #fff; border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: all 200ms cubic-bezier(.22,1,.36,1); }
.st-proj:hover { box-shadow: var(--shadow-3); transform: translateY(-1px); border-color: var(--ink-300); }
.st-proj__preview { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.st-proj__motif { width: 70%; opacity: .8; }
.st-proj__meta { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.st-proj__name { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; }
.st-proj__sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; }
.st-proj__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.st-chip { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 9999px; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; background: var(--ink-100); color: var(--ink-700); }
.st-chip__dot { width: 6px; height: 6px; border-radius: 9999px; }
.st-proj__pct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.st-proj__bar { height: 3px; background: var(--ink-100); border-radius: 9999px; overflow: hidden; }
.st-proj__fill { height: 100%; transition: width 300ms cubic-bezier(.22,1,.36,1); }

/* modal */
.st-modal { position: fixed; inset: 0; background: rgba(10,9,20,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.st-modal__panel { background: #fff; border-radius: 20px; padding: 28px; width: min(560px, 92vw); box-shadow: 0 20px 60px rgba(10,9,20,.25); }
.st-modal__head { display: flex; justify-content: space-between; align-items: center; }
.st-modal__title { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; margin: 12px 0 20px; }
.st-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.st-field__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.st-field textarea, .st-field select { font-family: var(--font-body); font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ink-300); background: #fff; resize: vertical; }
.st-field textarea:focus, .st-field select:focus { outline: none; border-color: var(--calluna-purple); box-shadow: 0 0 0 4px rgba(105,51,217,.14); }
.st-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-slider { display: flex; align-items: center; gap: 10px; }
.st-slider input { flex: 1; accent-color: var(--calluna-purple); }
.st-slider__val { font-family: var(--font-mono); font-size: 13px; color: var(--calluna-purple-dark); }
.st-modal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.st-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
