/* ============================================================
   Personal Tools styles (collectibles + notes)
   ============================================================ */

.tools-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1.25rem 5rem;
}

/* ---- Tools hub cards ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.tool-card {
  display: block;
  padding: 1.75rem 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  transition: background .15s, border-color .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover { background: rgba(255,45,149,.04); border-color: rgba(255,45,149,.2); transform: translateY(-2px); }
.tool-card-icon { font-size: 2.2rem; margin-bottom: .9rem; display: block; }
.tool-card-name { font-family: "Archivo Black", sans-serif; font-size: 1.1rem; color: var(--txt); margin-bottom: .4rem; }
.tool-card-desc { font-size: .82rem; color: var(--txt-faint); line-height: 1.5; }
.tool-card-soon {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.06); color: var(--txt-faint);
  padding: .15rem .5rem; border-radius: 999px;
}

/* ---- Shared page hero ---- */
.tools-hero { margin-bottom: 2.5rem; }
.tools-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ============================================================
   Collectibles Tracker
   ============================================================ */
.collect-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.collect-filter-row {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.collect-filter {
  padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--txt-dim);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.collect-filter.active,
.collect-filter:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Category section */
.collect-section { margin-bottom: 2rem; }
.collect-section-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; cursor: pointer;
}
.collect-section-title {
  font-family: "Archivo Black", sans-serif; font-size: .95rem; color: var(--txt); flex: 1;
}
.collect-section-progress {
  font-size: .78rem; color: var(--txt-faint); flex-shrink: 0;
}
.collect-progress-bar {
  height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; margin-bottom: .9rem; overflow: hidden;
}
.collect-progress-fill {
  height: 100%; border-radius: 2px;
  background: var(--grad-neon);
  transition: width .4s var(--ease);
}

/* Item list */
.collect-items { display: flex; flex-direction: column; gap: .25rem; }
.collect-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem; border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  transition: background .12s;
  cursor: pointer;
}
.collect-item:hover { background: rgba(255,45,149,.05); }
.collect-item.found { opacity: .5; }
.collect-item.found .collect-item-name { text-decoration: line-through; }

.collect-item input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0;
  accent-color: var(--cyan); cursor: pointer;
}
.collect-item-name { font-size: .88rem; color: var(--txt-dim); flex: 1; }
.collect-item-hint { font-size: .75rem; color: var(--txt-faint); }

/* ============================================================
   Notes
   ============================================================ */
.notes-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  height: calc(100vh - 200px);
  min-height: 500px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .notes-layout { grid-template-columns: 1fr; height: auto; }
  .notes-editor-col { display: none; }
  .notes-layout.note-open .notes-list-col { display: none; }
  .notes-layout.note-open .notes-editor-col { display: flex; }
}

.notes-list-col {
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.02);
}
.notes-list-header {
  padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.notes-list-title { font-weight: 700; font-size: .88rem; color: var(--txt); }
.notes-new-btn {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; cursor: pointer; border: none;
  transition: opacity .15s;
}
.notes-new-btn:hover { opacity: .8; }

.notes-list { flex: 1; overflow-y: auto; }
.notes-list::-webkit-scrollbar { width: 4px; }
.notes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.note-row {
  padding: .85rem 1rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.note-row:hover { background: rgba(255,255,255,.03); }
.note-row.active { background: rgba(255,45,149,.07); border-right: 2px solid var(--pink); }
.note-row-title { font-size: .88rem; font-weight: 600; color: var(--txt); margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-row-preview { font-size: .75rem; color: var(--txt-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-row-date { font-size: .68rem; color: var(--txt-faint); margin-top: .2rem; }
.notes-empty { padding: 2rem 1rem; text-align: center; font-size: .85rem; color: var(--txt-faint); }

.notes-editor-col {
  display: flex; flex-direction: column;
  background: rgba(0,0,0,.15);
}
.notes-editor-header {
  padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}
.note-title-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: "Archivo Black", sans-serif; font-size: 1rem; font-style: italic;
  color: var(--txt);
}
.note-title-input::placeholder { color: var(--txt-faint); }
.note-delete-btn {
  background: none; border: none; color: var(--txt-faint); cursor: pointer;
  font-size: .78rem; padding: .3rem .6rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.note-delete-btn:hover { color: var(--pink); background: rgba(255,45,149,.08); }

.note-body-input {
  flex: 1; background: transparent; border: none; outline: none; resize: none;
  padding: 1.25rem 1.25rem; color: var(--txt-dim); font-family: inherit;
  font-size: .92rem; line-height: 1.8;
}
.note-body-input::placeholder { color: var(--txt-faint); }
.notes-editor-footer {
  padding: .5rem 1rem; border-top: 1px solid rgba(255,255,255,.05);
  font-size: .72rem; color: var(--txt-faint); text-align: right; flex-shrink: 0;
}
.notes-placeholder {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--txt-faint); font-size: .9rem;
}
