/* ==========================================================================
   Library Data app - style.css
   Assignment 1, Part B (static prototype)
   Plain, neutral greys + single accent. Sans-serif. No effects.
   Bootstrap 4.6 supplies layout/components; this file supplies theme only.
   In Assignment 2 this file is served from /static/css/style.css.
   ========================================================================== */

:root {
  --ink:        #212529;  /* primary text            */
  --muted:      #6c757d;  /* secondary text          */
  --line:       #dee2e6;  /* borders / rules         */
  --surface:    #f5f5f5;  /* page background         */
  --card-bg:    #ffffff;  /* card / panel background */
  --accent:     #2c5d63;  /* single accent (muted teal) */
  --accent-ink: #ffffff;  /* text on accent          */
}

/* ---- Base ---------------------------------------------------------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--surface);
  line-height: 1.5;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent);
}

/* ---- Navbar -------------------------------------------------------------- */
.navbar-brand {
  font-weight: 600;
  letter-spacing: .2px;
}

.site-nav {
  background-color: var(--accent);
}

.site-nav .navbar-brand,
.site-nav .nav-link {
  color: var(--accent-ink);
}

.site-nav .nav-link:hover {
  color: #d8e4e5;
}

/* Logged-in user name / role shown in the navbar */
.site-nav .navbar-text {
  color: #d8e4e5;
  font-size: .9rem;
}

/* ---- Headings ------------------------------------------------------------ */
.page-title {
  font-weight: 600;
  margin-bottom: .25rem;
}

.page-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---- Cards (collection grid) -------------------------------------------- */
.item-card {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  height: 100%;
}

.item-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Grey placeholder box used in place of a real image */
.item-thumb {
  width: 100%;
  height: 180px;
  background-color: #e9ecef;
  /* centre the label text */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
}

/* ---- Status badges (neutral, no glow) ----------------------------------- */
.badge-status {
  font-weight: 500;
  font-size: .8rem;
  padding: .35em .6em;
}

.badge-public      { background-color: #495057; color: #fff; }
.badge-restricted  { background-color: var(--accent); color: #fff; }
.badge-review      { background-color: #adb5bd; color: #212529; }

/* ---- Detail page --------------------------------------------------------- */
/* Grey placeholder box used in place of a real image */
.detail-image {
  width: 100%;
  height: 300px;
  background-color: #e9ecef;
  border: 1px solid var(--line);
  /* centre the label text */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 600;
}

.meta-list dd {
  margin-bottom: .75rem;
}

/* ---- Panels (assessment) ------------------------------------------------- */
.panel {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

/* Comment thread */
.comment {
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
}

.comment:last-child {
  border-bottom: 0;
}

.comment-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

/* Restricted notice strip */
.restricted-strip {
  background-color: #eef3f3;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background-color: #e9ecef;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--accent);
}
