/* Site-specific styles on top of paranoia.css */

/* Home page 3-column layout */
.pm-page.home {
  max-width: 1000px;
}
.pm-page.home > .col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 799px) {
  .pm-page.home {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 800px) {
  .pm-page.home {
    display: grid;
    align-items: start;
    gap: 8px;
    grid-template-columns: 260px 1fr 280px;
    grid-template-rows: auto 1fr;
  }
  .pm-page.home > .bulletin { grid-column: 1 / -1; grid-row: 1; }
  .pm-page.home > .c1 { grid-column: 1; grid-row: 2; }
  .pm-page.home > .c2 { grid-column: 2; grid-row: 2; }
  .pm-page.home > .c3 { grid-column: 3; grid-row: 2; }
}

/* Bulletin */
.bulletin .body { line-height: 1.5; }
.bulletin-time {
  text-align: right;
  font-size: 10px;
  color: var(--text-off);
  margin-top: 8px;
}
.bulletin-edit-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all var(--t);
}
.bulletin-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Profile */
.pm-profile { align-items: center; gap: 8px; text-align: center; }
.pm-avatar {
  width: 80px; height: 80px;
  border: 1px solid var(--border);
  object-fit: cover;
  border-radius: 0;
}
#site-name { color: var(--accent-hi); font-size: 16px; margin-top: 4px; }
.pm-bio { font-size: 11px; color: var(--text-dim); line-height: 1.4; max-width: 280px; }

/* Discord/Lanyard */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-user { color: var(--text); }
.status-tag { font-size: 11px; }

/* Spotify */
#spotify-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.spotify-art {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.spotify-art-placeholder {
  width: 40px;
  height: 40px;
  background: var(--field);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotify-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.spotify-track {
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-artist {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Page header */
.page-header { margin-bottom: 12px; }
.page-header h1 { font-size: 16px; color: var(--accent-hi); margin-bottom: 4px; }
.page-header p { font-size: 11px; color: var(--text-dim); }

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.tool-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--t);
  animation: pm-rise .42s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 50ms);
}
.tool-card:nth-child(2) { --n: 1; }
.tool-card:nth-child(3) { --n: 2; }
.tool-card:nth-child(4) { --n: 3; }
.tool-card:nth-child(5) { --n: 4; }
.tool-card:nth-child(6) { --n: 5; }

.tool-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .2s var(--ease);
}
.tool-card:hover { background: var(--hover); }
.tool-card:hover::before { transform: scaleY(1); }

a.tool-card { color: inherit; text-decoration: none; }

.tool-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.tool-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: bold;
  color: var(--accent);
  background: linear-gradient(color-mix(in srgb, var(--accent-lo) 30%, var(--panel)), var(--panel));
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tool-meta { flex: 1; min-width: 0; }
.tool-name { font-size: var(--size); font-weight: bold; color: var(--accent-hi); font-family: var(--font-mono); }
.tool-version { font-size: 10px; color: var(--text-off); margin-top: 1px; }
.tool-desc { font-size: 11px; color: var(--text-dim); line-height: 1.4; margin-bottom: 6px; flex: 1; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }

/* Section title */
.section-title {
  font-size: var(--size);
  font-weight: bold;
  color: var(--text);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.section-title:first-child { margin-top: 0; }

/* Disclosure grid */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.disclosure-item {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--pad);
  position: relative;
  transition: background var(--t);
  animation: pm-rise .42s var(--ease) both;
}
.disclosure-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--warn); transform: scaleY(0); transition: transform .2s var(--ease);
}
.disclosure-item:hover { background: var(--hover); }
.disclosure-item:hover::before { transform: scaleY(1); }
.disclosure-title { font-weight: bold; margin-bottom: 4px; }
.disclosure-desc { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

/* Contributor cards */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.contributor-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--pad);
  text-align: center;
  position: relative;
  transition: background var(--t);
  animation: pm-rise .42s var(--ease) both;
}
.contributor-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .2s var(--ease);
}
.contributor-card:hover { background: var(--hover); }
.contributor-card:hover::before { transform: scaleY(1); }

.contributor-avatar {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: bold;
  color: var(--accent);
  background: linear-gradient(color-mix(in srgb, var(--accent-lo) 30%, var(--panel)), var(--panel));
  border: 1px solid var(--border);
  margin: 0 auto 8px;
}
.contributor-name { font-weight: bold; margin-bottom: 2px; }
.contributor-handle { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 6px; }
.contributor-bio { font-size: 11px; color: var(--text-dim); line-height: 1.4; margin-bottom: 8px; }
.contributor-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
.contributor-status { font-size: 10px; color: var(--good); }

/* Contact links */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--pad);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background var(--t);
}
.contact-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .2s var(--ease);
}
.contact-item:hover { background: var(--hover); }
.contact-item:hover::before { transform: scaleY(1); }
.contact-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--accent);
  background: linear-gradient(color-mix(in srgb, var(--accent-lo) 30%, var(--panel)), var(--panel));
  border: 1px solid var(--border);
}
.contact-info { flex: 1; }
.contact-title { font-weight: bold; }
.contact-desc { font-size: 11px; color: var(--text-dim); }

/* Notes wall */
.pm-wall { list-style: none; margin: 0; padding: 0; }
.pm-note-row { display: flex; flex-direction: column; gap: var(--gap); padding: var(--pad); border-bottom: 1px solid var(--border); }
.pm-note-row:last-child { border-bottom: 0; }
.pm-note-head { display: flex; align-items: center; gap: var(--pad); font-size: 11px; }
.pm-note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--size); color: var(--text-dim); }

/* Note delete button */
.note-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-off);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--t);
}
.note-delete:hover { color: var(--bad); }

/* Mobile adjustments */
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .disclosure-grid { grid-template-columns: 1fr; }
  .contributors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
