/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --accent:        #e2cc7a; /* Warmer gold */
  --accent-dim:    rgba(226, 204, 122, 0.1);
  --bg:            #0d0d12;
  --card-bg:       #17171e;
  --border:        rgba(255, 255, 255, 0.05);
  --text-main:     #f8fafc;
  --text-muted:    #94a3b8;
  --radius:        1rem;
  --shadow:        0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ── Base overrides ─────────────────────────────────────────────────────── */
[v-cloak] { display: none; }

body { 
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  font-size: .9375rem;
}

.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: .75rem;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(226, 204, 122, 0.35);
  box-shadow: 0 0 0 .25rem rgba(226, 204, 122, 0.12);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

a, .btn-link { color: var(--accent); text-decoration: none; }
.btn-primary { 
  background: var(--accent); 
  border: none; 
  color: #000; 
  font-weight: 600; 
  border-radius: .75rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover { 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 204, 122, 0.3);
  filter: brightness(1.05);
}
.btn-outline-secondary { 
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
#sidebar {
  width: 260px;
  background: #09090b;
  min-height: 100vh;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar.collapsed { margin-left: -260px; }

#main-content { 
  flex: 1; 
  overflow-y: auto; 
  height: 100vh; 
  scroll-behavior: smooth; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-sidebar-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.toggle-sidebar-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.toggle-sidebar-btn svg { width: 22px; height: 22px; }

/* ── Advanced filters ───────────────────────────────────────────────────── */
.advanced-filters {
  padding: .5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.filter-chip-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  padding: .35rem .5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.filter-chip-btn:hover {
  background: rgba(255,255,255,0.05);
}
.filter-chip-x {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: .2rem .4rem;
  border-radius: 999px;
  line-height: 1;
}
.filter-chip-x:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.filter-menu {
  min-width: 240px;
}
.filter-menu-title {
  font-size: .75rem;
  color: var(--text-muted);
  padding: .25rem .5rem .5rem;
}
.filter-menu-body {
  max-height: 280px;
  overflow: auto;
}
.text-accent { color: var(--accent) !important; }

@media (max-width: 991.98px) {
  #sidebar { display: none !important; }
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #main-content { padding-bottom: 100px !important; }
}

.bottom-nav { display: none; }
.bottom-nav .nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-muted);
}
.bottom-nav .nav-link.active { color: var(--accent); }
.bottom-nav svg { width: 22px; height: 22px; margin-bottom: 4px; }

.sidebar-nav .nav-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .875rem;
  border-radius: .75rem;
  padding: .75rem 1rem;
  transition: all 0.2s;
  font-weight: 500;
}
.sidebar-nav .nav-link svg { width: 20px; height: 20px; opacity: 0.7; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.03); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--accent-dim); color: var(--accent); }
.sidebar-nav .nav-link.active svg { opacity: 1; }

/* ── Item/Look Cards ────────────────────────────────────────────────────── */
.item-card, .look-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.item-card:hover, .look-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 204, 122, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
}

.item-img-wrap, .look-img-wrap {
  aspect-ratio: 3/4;
  background: #111115;
  position: relative;
}
.item-img-wrap img, .look-img-wrap img { 
  width: 100%; height: 100%; object-fit: cover; 
}

/* Collage view for looks */
.look-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5px;
  width: 100%;
  height: 100%;
  background: #111115;
}
.collage-slot { background: #0a0a0c; overflow: hidden; position: relative; }
.collage-slot img { width: 100%; height: 100%; object-fit: cover; }

.collage-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.look-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* ── Modals ───────────────────────────────────────────────────────────── */
.modal-content {
  background: #141419;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }

/* ── NotionSelect ───────────────────────────────────────────────────────── */
.ns { position: relative; }
.ns.disabled { opacity: .65; pointer-events: none; }
.ns-control {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ns.open .ns-control,
.ns-control:focus-visible {
  outline: none;
  border-color: rgba(226, 204, 122, 0.35);
  box-shadow: 0 0 0 .25rem rgba(226, 204, 122, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.ns-placeholder { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.ns-placeholder.muted { color: var(--text-muted); }
.ns-caret { color: var(--text-muted); flex-shrink: 0; }
.ns-chips { display: flex; flex-wrap: wrap; gap: .375rem; flex: 1; min-width: 0; }
.ns-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .5rem;
  border-radius: .6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
}
.ns-chip-label { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-chip-x { color: var(--text-muted); padding: 0 .2rem; line-height: 1; }
.ns-chip-x:hover { color: #fff; }
.ns-dot { width: 12px; height: 12px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); flex-shrink: 0; }
.ns-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1060;
  background: #0f0f14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: .9rem;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.75);
  overflow: hidden;
}
.ns-search { padding: .6rem .6rem .4rem .6rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ns-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: .7rem;
  color: var(--text-main);
  padding: .45rem .6rem;
}
.ns-search-input:focus { outline: none; border-color: rgba(226, 204, 122, 0.35); }
.ns-list { max-height: 220px; overflow: auto; padding: .35rem; }
.ns-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .55rem;
  border-radius: .7rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
}
.ns-option:hover { background: rgba(255,255,255,0.05); }
.ns-option.active { background: rgba(226, 204, 122, 0.14); }
.ns-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--accent);
  flex-shrink: 0;
}
.ns-option.active .ns-check { border-color: rgba(226, 204, 122, 0.35); background: rgba(226, 204, 122, 0.08); }
.ns-option-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-empty { padding: .9rem .7rem; color: var(--text-muted); font-size: .85rem; text-align: center; }

/* ── ImageDropzone ───────────────────────────────────────────────────────── */
.dropzone {
  background: rgba(255,255,255,0.02);
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-height: 200px;
  transition: all 0.2s;
}
.dropzone:hover { border-color: var(--accent); background: rgba(226, 204, 122, 0.03); }

/* ── Item Picker ───────────────────────────────────────────────────────── */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}
.picker-item {
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.picker-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.picker-item .thumb { aspect-ratio: 1; background: #0a0a0c; }
.picker-item .check {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #000;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: bold;
  opacity: 0; transform: scale(0.5); transition: all 0.2s;
}
.picker-item.selected .check { opacity: 1; transform: scale(1); }

/* ── Filter Row ───────────────────────────────────────────────────────── */
.filter-pill {
  padding: 0.4rem 1rem;
  font-weight: 500;
  border-radius: 12px;
}

/* ── Misc ───────────────────────────────────────────────────────────────── */
.view-header h1 { font-family: 'Outfit', sans-serif; font-weight: 700; }
.color-dot { width: 14px; height: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
.text-muted { color: var(--text-muted) !important; }

/* ── Manage (Notion-ish) ───────────────────────────────────────────────── */
.manage-toolbar { max-width: 520px; }
.manage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.manage-card-header {
  padding: 1rem 1.1rem .75rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.manage-card-title { font-family: 'Outfit', sans-serif; font-weight: 700; }
.manage-card-subtitle { color: var(--text-muted); font-size: .85rem; margin-top: .15rem; }
.manage-card-form { padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.manage-list { padding: .35rem; }
.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .75rem;
  border-radius: .9rem;
}
.manage-row:hover { background: rgba(255,255,255,0.03); }
.manage-row-main {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.manage-row-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.manage-empty {
  padding: 1.2rem .7rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
