/* ==== FILTERS: Drawer + Backdrop ==== */

.filter-toolbar {
  margin-bottom: 10px;
  text-align: center;
}

/* Backdrop */
.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1400;
}
.filters-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Panel */
.filters-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: var(--pp-white);
  border-right: 3px solid var(--pp-black);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1rem;
}
.filters-drawer.open {
  transform: translateX(0);
}

/* Titles & Text */
.filters-drawer h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filters-drawer .hint {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Rows & Labels */
.filters-drawer .row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.filters-drawer label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pp-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Select Elements */
.filters-drawer select {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--pp-black);
  border-radius: var(--radius);
  background: var(--pp-white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.filters-drawer select:hover {
  background: var(--pp-yellow);
}

/* Action Buttons */
.filters-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}
.filters-actions .btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--pp-black);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: var(--pp-gray);
  color: var(--pp-black);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.filters-actions .btn:hover {
  background: var(--pp-yellow);
}
.filters-actions .btn:active {
  transform: translateY(1px);
}

/* Primary Action */
.filters-actions .btn.primary {
  background: var(--pp-blue);
  color: var(--pp-white);
}
.filters-actions .btn.primary:hover {
  background: var(--pp-red);
}

/* Hide unused status filter */
#statusFilter {
  display: none !important;
}


/* STRATEGY */
.strategy-heading {
  margin-bottom: 10px;
  text-align: center;
}
.strategy-note {
margin-bottom: 10px;
    width: 80%;
    padding: 10px;
    margin-left: 10%;
}

/* Chips container */
.active-filters { display:flex; gap:6px; flex-wrap:wrap; }

/* Chip look */
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  font-size:12px;
  color:#333;
  background:#f3f3f5;
  border:1px solid #e2e2e6;
  border-radius:999px;
  line-height:1;
}

/* Close button inside a chip: reset + tiny */
.chip .chip-close{
  all: unset;                /* wipe inherited button styles */
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  cursor:pointer;
  color:#666;
  line-height:1;
  font-weight:700;
}
.chip .chip-close:hover{ background:#e9e9ee; color:#111; }

/* Extra guard against global button rules in this area */
.filter-toolbar .chip button{
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  transform:none !important;
  color:inherit !important;
}

/* Toolbar can wrap to a new row */
.filter-toolbar{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;      /* ⬅️ allow wrapping */
  row-gap: 10px;        /* vertical space between rows */
}

/* Put chips on the next line with top margin */
.filter-toolbar .active-filters{
  flex-basis: 100%;     /* ⬅️ force onto its own line */
  margin-top: 4px;      /* extra space under the blue button */
}

/* Avatar must always be a perfect circle */
.profile-avatar{
  width: 80px;                 /* control size here */
  aspect-ratio: 1 / 1;         /* guarantees square */
  height: auto !important;     /* avoid inherited fixed heights */
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;              /* don't let flex stretch it */
  line-height: 0;              /* avoid inline-box vertical space */
  padding: 0;                  /* ensure no padding sneaks in */
  /* optional: visual border to match the UI */
  /* border: 2px solid #111; */
}

.profile-avatar img{
  position: absolute;          /* cover the circle */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-label {
    margin-bottom: 10px;
}
#assetUpload {
    margin-bottom: 10px;
}
