﻿/* ================================================
   Chicago City Roleplay — DEPARTMENT & EXTRA STYLES
   ================================================ */

/* ---- DEPT TOPBAR BADGES ---- */
.dept-topbar-badge {
  padding: .3rem .85rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.dept-topbar-badge.chp { background: rgba(59,130,246,.15); color: #3b82f6; }
.dept-topbar-badge.hp  { background: rgba(6,182,212,.15);  color: #06b6d4; }
.dept-topbar-badge.cpd { background: rgba(139,92,246,.15); color: #8b5cf6; }
.dept-topbar-badge.cfd { background: rgba(239,68,68,.15);  color: #ef4444; }
.dept-topbar-badge.dot { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ---- DEPT PAGES ---- */
.dept-page { display: none; }
.dept-page.active { display: block; }
.dept-nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text2);
  font-weight: 500;
  transition: all .15s;
  margin-bottom: .15rem;
  cursor: pointer;
  text-decoration: none;
}
.dept-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dept-nav-item.active { background: rgba(59,130,246,.12); color: var(--blue); }

/* ---- DEPT PUBLIC PAGE ---- */
.dept-page-wrap { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.dept-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.dept-hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
}
.dept-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.dept-hero-card.chp::before { background: #3b82f6; }
.dept-hero-card.hp::before  { background: #06b6d4; }
.dept-hero-card.cpd::before { background: #8b5cf6; }
.dept-hero-card.cfd::before { background: #ef4444; }
.dept-hero-card.dot::before { background: #f59e0b; }
.dept-hero-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.dhc-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  width: fit-content;
}
.dept-hero-card.chp .dhc-badge { background: rgba(59,130,246,.15); color: #3b82f6; }
.dept-hero-card.hp  .dhc-badge { background: rgba(6,182,212,.15);  color: #06b6d4; }
.dept-hero-card.cpd .dhc-badge { background: rgba(139,92,246,.15); color: #8b5cf6; }
.dept-hero-card.cfd .dhc-badge { background: rgba(239,68,68,.15);  color: #ef4444; }
.dept-hero-card.dot .dhc-badge { background: rgba(245,158,11,.15); color: #f59e0b; }
.dhc-icon { font-size: 2rem; }
.dept-hero-card h2 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.dept-hero-card p  { font-size: .875rem; color: var(--text2); line-height: 1.65; margin: 0; }
.dhc-stats { display: flex; gap: 1rem; font-size: .8rem; color: var(--text3); }
.dhc-link { font-size: .82rem; font-weight: 700; color: var(--blue); margin-top: auto; }
.dept-info-section { margin-top: 2rem; }
.dept-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.dept-info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.dept-info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.dept-info-card p  { font-size: .85rem; color: var(--text2); line-height: 1.65; }

/* ---- STATUS CHIPS ---- */
.status-chip {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-chip.online  { background: rgba(16,185,129,.15);  color: var(--green); }
.status-chip.idle    { background: rgba(245,158,11,.15);  color: #f59e0b; }
.status-chip.dnd     { background: rgba(239,68,68,.15);   color: var(--red); }
.status-chip.offline { background: rgba(255,255,255,.05); color: var(--text3); }

/* ---- DEPT CHIPS ---- */
.dept-chip {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(59,130,246,.1);
  color: var(--blue);
}
.plog-dept-tag {
  font-size: .7rem;
  color: var(--text3);
  background: rgba(255,255,255,.04);
  padding: .15rem .5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---- GUIDELINES SECTIONS ---- */
.guidelines-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.guideline-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.guideline-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: .85rem; }
.guideline-section ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.guideline-section li { font-size: .875rem; color: var(--text2); line-height: 1.65; }

/* ---- ANNOUNCEMENTS ---- */
.ann-banner {
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  flex-wrap: wrap;
}
.ann-banner.high   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.2); }
.ann-banner.medium { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); }
.ann-banner.low    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); }
.ann-badge { font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.ann-author { color: var(--text3); font-size: .8rem; margin-left: auto; }
.ann-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: .75rem;
}
.ann-card.high   { border-color: rgba(239,68,68,.25); }
.ann-card.medium { border-color: rgba(245,158,11,.25); }
.ann-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.ann-priority-badge { font-size: .7rem; font-weight: 700; }
.ann-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.ann-card p  { font-size: .875rem; color: var(--text2); line-height: 1.65; margin-bottom: .35rem; }

/* ---- NOTES ---- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.note-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .2s;
}
.note-card.blue   { border-color: rgba(59,130,246,.3); }
.note-card.green  { border-color: rgba(16,185,129,.3); }
.note-card.red    { border-color: rgba(239,68,68,.3); }
.note-card.yellow { border-color: rgba(245,158,11,.3); }
.note-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.note-card p { font-size: .875rem; color: var(--text2); line-height: 1.65; margin-bottom: .5rem; }

/* ---- NOTIFICATIONS PANEL ---- */
.notif-panel {
  position: absolute;
  top: 64px; right: 1rem;
  width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  display: none;
}
.notif-panel.open { display: block; }
.notif-header { padding: .75rem 1rem; font-size: .82rem; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem; color: var(--text2);
  cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.notif-empty { padding: 1.25rem; text-align: center; font-size: .82rem; color: var(--text3); }

/* ---- TOAST TYPES ---- */
.toast.success { border-color: rgba(16,185,129,.4); }
.toast.warn    { border-color: rgba(245,158,11,.4); }
.toast.error   { border-color: rgba(239,68,68,.4); }

/* ---- FORM ROW ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }

/* ---- TABLE ICON BUTTON ---- */
.tbl-icon-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: .25rem .5rem;
  border-radius: 5px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s;
}
.tbl-icon-btn:hover { border-color: var(--blue); color: var(--text); }

/* ---- EVIDENCE LINK ---- */
.evidence-link { color: var(--blue); font-size: .8rem; }
.evidence-link:hover { text-decoration: underline; }

/* ---- PLOG DELETE BUTTON ---- */
.plog-del-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: .9rem;
  padding: .3rem;
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: color .15s;
}
.plog-del-btn:hover { color: var(--red); }

/* ---- FEED EMPTY STATE ---- */
.feed-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text3);
  font-size: .875rem;
}

/* ---- NAV SECTION LABELS ---- */
.nav-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: .75rem .75rem .25rem;
  margin-top: .25rem;
}

/* ---- DEPT STATS BAR ---- */
.dept-stat-bar-wrap {
  flex: 1;
  background: var(--bg3);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}
.dept-stat-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width .3s ease;
}
.dept-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .4rem 0;
  font-size: .82rem;
}

/* ---- COMPACT MODE ---- */
.compact-mode .dash-stat-card { padding: .85rem 1rem; }
.compact-mode .dash-panel { padding: .85rem 1rem; }
.compact-mode .plog-item { padding: .85rem 1rem; }
.compact-mode .dash-content { padding: 1rem; }
.compact-mode .nav-section-label { padding: .4rem .75rem .15rem; }

/* ---- DCS ICON YELLOW ---- */
.dsc-icon.yellow { background: rgba(245,158,11,.15); }
.dsc-icon.red    { background: rgba(239,68,68,.15); }
.dsc-icon.cyan   { background: rgba(6,182,212,.15); }
