/* ============================================================
   site.css — yliu.eng.wayne.edu custom styles
   Framework: Bootstrap 5 (loaded via CDN)
   ============================================================ */

/* ---- WSU Brand Variables ---------------------------------- */
:root {
  --wsu-black:    #000000;
  --wsu-green:    #00693E;        /* WSU official green */
  --wsu-gold:     #C99700;        /* accent */
  --wsu-gray:     #f8f9fa;
  --wsu-border:   #dee2e6;
  --link-color:   #005a9c;
  --text-muted:   #6c757d;
  --nav-height:   56px;
}

/* ---- Base ------------------------------------------------- */
body {
  font-family: 'Lato', 'Noto Sans', sans-serif;
  font-size: 0.95rem;
  color: #212529;
  padding-top: var(--nav-height);   /* offset for fixed navbar */
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---- WSU Wordmark Bar ------------------------------------- */
.wsu-topbar {
  background: var(--wsu-black);
  padding: 6px 0;
}
.wsu-topbar img {
  height: 28px;
  width: auto;
}
.wsu-topbar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.wsu-topbar-links a {
  color: #ccc;
  font-size: 0.78rem;
  text-decoration: none;
}
.wsu-topbar-links a:hover {
  color: #fff;
}

/* ---- Personal Navbar -------------------------------------- */
.site-navbar {
  background: var(--wsu-green);
  border-bottom: 3px solid var(--wsu-gold);
}
.site-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
}
.site-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(0,0,0,.15);
  border-radius: 4px;
}
.site-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero / Profile Section ------------------------------- */
.hero-section {
  background: var(--wsu-gray);
  border-bottom: 1px solid var(--wsu-border);
  padding: 2.5rem 0 2rem;
}
.profile-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.hero-badge {
  display: inline-block;
  background: var(--wsu-gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 4px;
  margin-bottom: 4px;
  letter-spacing: .02em;
}

/* ---- Section Headings ------------------------------------- */
.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wsu-black);
  border-left: 4px solid var(--wsu-green);
  padding-left: 0.6rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* ---- Publication List ------------------------------------- */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub-item {
  border-bottom: 1px solid var(--wsu-border);
  padding: 0.85rem 0;
}
.pub-item:last-child {
  border-bottom: none;
}
.pub-year-badge {
  display: inline-block;
  background: var(--wsu-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 6px;
  white-space: nowrap;
  vertical-align: middle;
}
.pub-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
}
.pub-title a {
  color: var(--link-color);
}
.pub-authors {
  font-size: 0.85rem;
  color: #444;
}
.pub-venue {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}
.pub-note {
  font-size: 0.8rem;
  color: var(--wsu-gold);
  font-weight: 600;
}
.pub-links {
  margin-top: 4px;
}
.pub-links .btn {
  font-size: 0.75rem;
  padding: 1px 8px;
  margin-right: 3px;
  margin-top: 2px;
}

/* ---- BibTeX collapsible ----------------------------------- */
.bibtex-block {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 0.5rem;
  position: relative;
}
.bibtex-text {
  display: block;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.bibtex-copy-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.72rem;
  padding: 2px 8px;
  opacity: 0.8;
}
.bibtex-copy-btn:hover {
  opacity: 1;
}

/* ---- Filter tabs (publications page) ---------------------- */
.pub-filter-tabs .nav-link {
  color: var(--link-color);
  border-radius: 0;
}
.pub-filter-tabs .nav-link.active {
  background: var(--wsu-green);
  border-color: var(--wsu-green);
  color: #fff;
}
.pub-count-badge {
  background: rgba(0,0,0,.12);
  color: inherit;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ---- Software cards --------------------------------------- */
.software-card {
  border: 1px solid var(--wsu-border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  height: 100%;
  transition: box-shadow .15s;
}
.software-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.software-card .pkg-name {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--wsu-green);
}
.software-card .pkg-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ---- News list -------------------------------------------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  border-bottom: 1px solid var(--wsu-border);
  padding: 0.65rem 0;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item a {
  font-size: 0.88rem;
  color: var(--link-color);
}
.news-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* ---- Recruiting alert ------------------------------------- */
.recruiting-alert {
  background: #fff8e1;
  border-left: 4px solid var(--wsu-gold);
  padding: 0.85rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
}
.recruiting-alert strong {
  color: #7a5800;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--wsu-black);
  color: #aaa;
  padding: 2rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.82rem;
}
.site-footer a {
  color: #ccc;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-footer .footer-divider {
  border-color: #333;
  margin: 1rem 0 0.75rem;
}

/* ---- Responsive tweaks ------------------------------------ */
@media (max-width: 767px) {
  body {
    padding-top: calc(var(--nav-height) + 4px);
  }
  .hero-section {
    text-align: center;
  }
  .profile-photo {
    max-width: 160px;
    margin-bottom: 1rem;
  }
  .wsu-topbar-links {
    display: none;
  }
}

/* ---- Teaching project grid -------------------------------- */
.project-card {
  border: 1px solid var(--wsu-border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.project-card:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
}
.project-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.project-card-body {
  padding: 0.75rem 0.85rem;
}
.project-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.project-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Research area cards ---------------------------------- */
.research-card {
  border: none;
  border-top: 4px solid var(--wsu-green);
  border-radius: 0 0 6px 6px;
  padding: 1.2rem;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  height: 100%;
}
.research-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wsu-green);
  margin-bottom: 0.5rem;
}

/* ---- Contact page ----------------------------------------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-info-item .ci-icon {
  font-size: 1.1rem;
  color: var(--wsu-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.profile-links .btn {
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
