/* ============================================
   stickers.css — My Stickers view
   All rules scoped to .stickers-view or children
   ============================================ */

.stickers-view {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
}

/* ========== HEADER ========== */

.stickers-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.stickers-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stickers-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}

.stickers-count {
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
}

/* ========== SEARCH ========== */

.stickers-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(109,40,217,0.06);
  border: 1.5px solid rgba(109,40,217,0.3);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  width: 220px;
  flex-shrink: 0;
}

.stickers-search-icon {
  color: rgba(109,40,217,0.6);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.stickers-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  width: 100%;
}

.stickers-search input::placeholder {
  color: rgba(109,40,217,0.5);
}

/* ========== GRID ========== */

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

/* ========== STICKER CARD ========== */

.sticker-card {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sticker-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-canvas-elevated);
}

.sticker-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sticker-card-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.sticker-card-name {
  display: none;
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* ========== EMPTY STATE ========== */

.stickers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  color: var(--color-text-muted);
  text-align: center;
  flex: 1;
}

.stickers-empty-icon {
  color: var(--color-text-subtle);
  font-size: 40px;
}

.stickers-empty-text {
  font-size: 14px;
  font-family: var(--font-display);
}

/* ========== LOADING ========== */

.stickers-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-family: var(--font-display);
}

/* ========== MOBILE ========== */

@media (max-width: 768px) {
  .stickers-view {
    padding: 16px;
  }

  .stickers-header {
    flex-direction: column;
    align-items: stretch;
  }

  .stickers-header-left {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .stickers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .sticker-card {
    padding: 0;
  }
}

#main-content:has(.stickers-view) {
  overflow-y: auto;
}

#stickers-sentinel {
  height: 1px;
  width: 100%;
  display: block;
}
