/* ==========================================================================
   Accent enhancements — visual polish layered on top of the base theme.
   Builds on the existing --global-* theme variables so it follows the
   site's light/dark toggle instead of fighting it.
   ========================================================================== */

:root {
  --accent-1: var(--global-link-color);
  --accent-2: #7c6cf0;
  --accent-1-rgb: 82, 173, 200;
  --accent-2-rgb: 124, 108, 240;
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
}

html[data-theme="dark"] {
  --accent-2: #a89bff;
  --accent-1-rgb: 14, 161, 197;
  --accent-2-rgb: 168, 155, 255;
}

/* --- Body links: no permanent underline, accent color on hover --------- */

.page__content a,
.archive__item-excerpt a,
.author__bio a,
.news-box a {
  color: var(--accent-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-1-rgb), 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page__content a:hover,
.archive__item-excerpt a:hover,
.author__bio a:hover,
.news-box a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
  text-decoration: none;
}

.paper-box-text a,
.archive__item-title a {
  border-bottom: none;
}

/* --- Mouse-follow geometric network background ------------------------- */

#geo-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.masthead {
  z-index: 10;
}

#main,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

/* --- Top accent bar --------------------------------------------------- */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 20;
}

/* --- Gradient text ------------------------------------------------------ */

.accent-text,
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* --- Sidebar / author profile ------------------------------------------ */

.sidebar .author__avatar img {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(var(--accent-1-rgb), 0.25);
  border: 3px solid var(--global-bg-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .author__avatar img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(var(--accent-1-rgb), 0.35);
}

.sidebar .author__name {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar .author__motto {
  position: relative;
  margin-top: 0.9em;
  padding: 0.7em 0.9em 0.7em 1.1em;
  border-left: 3px solid var(--accent-1);
  border-radius: 6px;
  background: rgba(var(--accent-1-rgb), 0.06);
  font-style: italic;
  font-size: 0.92em;
}

.author__urls-wrapper .btn--inverse {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.sidebar .author__urls a:hover i,
.author__urls.social-icons li i:hover {
  color: var(--accent-2);
}

/* --- Section headings --------------------------------------------------- */

.page__content h2 {
  position: relative;
  padding: 0.15em 0 0.15em 0.7em;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-left: 4px solid transparent;
  border-image: var(--accent-gradient) 1;
  border-bottom: 1px solid var(--global-border-color);
}

/* --- Highlight / floating cards ----------------------------------------- */

.highlight-blocks {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}

.floating-card {
  position: relative;
  background: var(--global-bg-color);
  border: 1px solid var(--global-border-color);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(var(--accent-1-rgb), 0.15);
}

.floating-card:hover::before {
  opacity: 1;
}

.floating-card h3 {
  margin-top: 0;
  font-size: 1.05em;
}

/* --- Interest / tag pills ------------------------------------------------ */

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.4em 0 0;
  padding: 0;
}

.interest-tags li {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--accent-1-rgb), 0.1);
  border: 1px solid rgba(var(--accent-1-rgb), 0.25);
  font-size: 0.88em;
  font-weight: 600;
  line-height: 1.3;
}

/* --- Quote / callout box -------------------------------------------------- */

.quote-accent {
  position: relative;
  margin: 1.4rem 0;
  padding: 1rem 1.4rem 1rem 1.8rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.06);
}

.quote-accent::before {
  content: "\201C";
  position: absolute;
  top: -0.35rem;
  left: 0.5rem;
  font-size: 2.6rem;
  font-family: Georgia, serif;
  color: var(--accent-2);
  opacity: 0.35;
}

/* --- News box ------------------------------------------------------------- */

.news-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 18px 12px 22px;
  margin-bottom: 1.5em;
  border: 1px solid var(--global-border-color);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(var(--accent-1-rgb), 0.07) 0%, rgba(var(--accent-1-rgb), 0.02) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-box ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}

.news-box li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 0.2em;
  font-size: 0.95em;
  line-height: 1.55;
}

.news-box li::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.85;
}

.news-box li strong {
  color: var(--accent-1);
  font-weight: 600;
}

.news-box::-webkit-scrollbar {
  width: 6px;
}

.news-box::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-1-rgb), 0.4);
  border-radius: 3px;
}

/* --- Publication cards (paper-box) --------------------------------------- */

.archive__item {
  border-radius: 10px;
  transition: none;
}

.paper-box {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--global-border-color);
  background: var(--global-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.paper-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.paper-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(var(--accent-1-rgb), 0.18);
  border-color: rgba(var(--accent-1-rgb), 0.3);
}

.paper-box:hover::before {
  opacity: 1;
}

.paper-box-image {
  position: relative;
  flex: 0 0 34%;
  max-width: 260px;
  height: 180px;
  align-self: flex-start;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(var(--accent-1-rgb), 0.05);
  display: flex;
  align-items: center;
}

.paper-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paper-box-image .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.32em 0.8em;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff !important;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(var(--accent-2-rgb), 0.4);
  white-space: nowrap;
}

.paper-box-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.paper-box-text h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.15em;
  line-height: 1.35;
}

.paper-box-text .archive__item-title {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.35;
}

.paper-box-text .archive__item-authors {
  margin: 0;
  font-size: 0.95em;
}

.paper-box-text .archive__item-authors .self-author {
  font-weight: 700;
  color: var(--accent-1);
}

.paper-box-text .archive__item-venue {
  margin: 0;
  font-style: italic;
  opacity: 0.85;
}

.archive__item-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff !important;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 3px 10px rgba(var(--accent-2-rgb), 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--accent-2-rgb), 0.4);
  color: #fff !important;
}

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-1) !important;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none !important;
  border: 1.5px solid rgba(var(--accent-1-rgb), 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-accent:hover {
  background: rgba(var(--accent-1-rgb), 0.1);
  border-color: var(--accent-1);
}

.archive__item-abstract,
.archive__item-bibtex {
  border-radius: 8px;
  border: 1px solid var(--global-border-color);
  background: rgba(var(--accent-1-rgb), 0.04);
}

/* --- Responsive: stack paper-box on small screens ------------------------ */

@media (max-width: 600px) {
  .paper-box {
    flex-direction: column;
  }

  .paper-box-image {
    max-width: 100%;
    max-height: 180px;
  }
}

/* --- Education / experience timeline -------------------------------------- */

.about-section-list {
  margin: 0 0 1.2rem 0;
  padding-left: 0;
  list-style: none;
}

.about-section-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.3rem;
}

.about-section-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.about-section-list ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.about-section-list ul li {
  margin-bottom: 0.3rem;
  padding-left: 0;
}

.about-section-list ul li::before {
  content: none;
}

.entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.2rem 1rem;
}

.entry-date {
  flex-shrink: 0;
  font-size: 0.88em;
  opacity: 0.75;
  white-space: nowrap;
}

/* --- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .paper-box,
  .sidebar .author__avatar img,
  .btn-accent,
  .btn-outline-accent {
    transition: none;
  }
}
