/* =========================================================
   Veronica Merlone — custom academic styling
   ========================================================= */


/* ---------- Global typography ---------- */

body {
  color: #2f2a31;
  line-height: 1.65;
}

body {
  zoom: 0.8;
}


/* ---------- Homepage width ---------- */

.home-section .container {
  width: 100%;
  max-width: 1380px;
  padding-left: 4%;
  padding-right: 4%;
}


/* ---------- Main headings ---------- */

.home-section h1,
.home-section h2,
.home-section h3,
.article-title,
.card-title,
.pub-list-item .article-title {
  color: #4f2854 !important;
}


/* ---------- Profile name ---------- */

.portrait-title h2 {
  color: #4f2854;
  font-weight: 500;
  letter-spacing: -0.015em;
}


/* ---------- Profile subtitle / affiliation ---------- */

.portrait-title h3 {
  color: #6f6571;
  font-weight: 400;
}


/* ---------- Links ---------- */

a {
  color: #863c87;
}

a:hover,
a:focus {
  color: #6d306f;
  text-decoration: none;
}


/* ---------- Social/profile icons ---------- */

.network-icon li a,
.network-icon li a i {
  color: #863c87;
}

.network-icon li a:hover,
.network-icon li a:hover i {
  color: #6d306f;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
  min-height: 76px;
  background-color: #fbf8fc !important;
  border-bottom: 1px solid #eee6ef;
  box-shadow: 0 2px 10px rgba(70, 45, 75, 0.08);
}


/* Full-width navbar content */

.navbar .container,
.navbar .container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 4%;
  padding-right: 4%;
}


/* Site name */

.navbar-brand {
  font-size: 1.60rem !important;
  font-weight: 600;
  color: #4f2854 !important;
  letter-spacing: -0.015em;
  white-space: nowrap;
}


/* Center the menu */

.navbar-collapse {
  position: relative;
}

#navbar-content .navbar-nav {
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}


/* Menu items */

.navbar-light .navbar-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: #4f2854 !important;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  transition: color 0.2s ease;
}


/* Hover */

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #863c87 !important;
}


/* Active/current menu item */

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
  color: #863c87 !important;
  font-weight: 600;
}


/* Navbar icons */

.navbar .fa,
.navbar .fas,
.navbar .far,
.navbar .fab {
  color: #4f2854;
}

.navbar .fa:hover,
.navbar .fas:hover,
.navbar .far:hover,
.navbar .fab:hover {
  color: #863c87;
}


/* ---------- Biography text ---------- */

.home-section p {
  color: #342f35;
}


/* ---------- Interests and Education ---------- */

.home-section ul {
  line-height: 1.65;
}

.home-section li {
  margin-bottom: 0.15rem;
}


/* ---------- Education icons ---------- */

.fa-graduation-cap,
.fa-university {
  color: #4f2854;
}


/* ---------- Alternating homepage sections ---------- */

.home-section:nth-of-type(even) {
  background-color: #faf7fb;
}


/* ---------- Publication / project titles ---------- */

.article-title,
.card-title,
.pub-list-item .article-title {
  color: #4f2854;
  font-weight: 600;
}

.article-title:hover,
.card-title:hover,
.pub-list-item .article-title:hover {
  color: #863c87;
}


/* ---------- Buttons ---------- */

.btn-primary {
  background-color: #863c87;
  border-color: #863c87;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #6d306f;
  border-color: #6d306f;
}


/* ---------- Horizontal rules ---------- */

hr {
  border-color: #e9e1ea;
}


/* ---------- Vertical spacing ---------- */

.home-section {
  padding-top: 70px;
  padding-bottom: 70px;
}


/* ---------- Keep long text readable ---------- */

.home-section .col-lg-8 p,
.home-section .col-md-8 p {
  max-width: 850px;
}


/* ---------- Mobile adjustments ---------- */

@media (max-width: 768px) {

  .home-section .container {
    padding-left: 6%;
    padding-right: 6%;
  }

  .home-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .home-section h1 {
    font-size: 2.2rem;
  }

  .navbar {
    min-height: 64px;
  }

  .navbar-brand {
    font-size: 1.30rem !important;
  }

  .navbar-light .navbar-nav .nav-link {
    font-size: 1rem;
  }
}

/* ---------- Remove footer ---------- */

footer {
  display: none !important;
}

/* Links: bold on hover instead of underline */

a:hover,
a:focus {
  text-decoration: none !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(79, 40, 84, 0.18);
}

/* Awards card title */
#awards .card strong,
#awards .card b,
#awards .card h3,
#awards .card h4,
#awards .card .article-title,
#awards .card .card-title {
  color: #4F2854 !important;
}

/* Awards card title — dark mode */
.dark #awards .card strong,
.dark #awards .card b,
.dark #awards .card h3,
.dark #awards .card h4,
.dark #awards .card .article-title,
.dark #awards .card .card-title {
  color: #EEE7F0 !important;
}

/* Papers under review / Work in progress:
   plain text turns dark violet on hover */

.home-section .card:hover,
.home-section .media:hover,
.home-section .article-style:hover,
.home-section .pub-list-item:hover {
  color: #4F2854 !important;
}

.home-section .card:hover p,
.home-section .media:hover p,
.home-section .article-style:hover p,
.home-section .pub-list-item:hover p,
.home-section .card:hover .article-style,
.home-section .media:hover .article-style {
  color: #4F2854 !important;
}

/* Dark mode */
.dark .home-section .card:hover p,
.dark .home-section .media:hover p,
.dark .home-section .article-style:hover p,
.dark .home-section .pub-list-item:hover p,
.dark .home-section .card:hover .article-style,
.dark .home-section .media:hover .article-style {
  color: #E2C2E3 !important;
}

/* ---------- Animated underline for navbar links ---------- */

.navbar-light .navbar-nav .nav-link {
  position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  background: #863C87;

  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 65%;
}

/* ---------- Decorative line below main section titles ---------- */

.home-section h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.4rem;
}

.home-section h1::after {
  content: "";
  display: block;

  width: 72px;
  height: 4px;

  margin-top: 0.4rem;

  background: linear-gradient(
    90deg,
    #4F2854 0%,
    #863C87 55%,
    #B44A9A 100%
  );

  border-radius: 3px;
}

/* =========================================================
   NEWS PAGE — LIGHT MODE ONLY
   ========================================================= */

body:not(.dark) .universal-wrapper h1,
body:not(.dark) .article-container h1,
body:not(.dark) .page-header h1 {
  color: #4F2854 !important;
}

body:not(.dark) .media .article-title,
body:not(.dark) .media h3,
body:not(.dark) .media h4 {
  color: #4F2854 !important;
}

body:not(.dark) .media:hover,
body:not(.dark) .media:hover h3,
body:not(.dark) .media:hover h4,
body:not(.dark) .media:hover p,
body:not(.dark) .media:hover .article-title,
body:not(.dark) .media:hover .article-style,
body:not(.dark) .media:hover .article-metadata {
  color: #4F2854 !important;
}

.journal-under-review {
  color: #5A3A5F;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;
}

.dark .journal-under-review {
  color: #D8CDD9;
}

/* =========================================================
   CUSTOM BACK TO TOP BUTTON
   ========================================================= */

#custom_back_to_top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #4F2854;
  border-radius: 50%;

  color: #ffffff !important;
  text-decoration: none !important;

  box-shadow: 0 3px 10px rgba(79, 40, 84, 0.22);

  opacity: 0.88;

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

#custom_back_to_top:hover {
  background-color: #863C87;
  color: #ffffff !important;
  opacity: 1;
  transform: translateY(-3px);
}

#custom_back_to_top i {
  color: inherit !important;
  font-size: 1.1rem;
}


/* Dark mode */
.dark #custom_back_to_top {
  background-color: #D8CDD9;
  color: #292630 !important;
}

.dark #custom_back_to_top:hover {
  background-color: #F0E8F1;
}


/* Mobile */
@media (max-width: 768px) {
  #custom_back_to_top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   DARK MODE
   ========================================================= */

/* Main dark background */
.dark,
.dark body {
  background-color: #232530 !important;
  color: #f3edf5 !important;
}


/* Homepage sections */
.dark .home-section {
  background-color: #232530 !important;
}


/* Slightly alternating section */
.dark .home-section:nth-of-type(even) {
  background-color: #292b37 !important;
}


/* ---------- Main text ---------- */

.dark .home-section p,
.dark .home-section li,
.dark .home-section span,
.dark .article-style,
.dark .pub-list-item,
.dark .card-text {
  color: #eee8ef !important;
}


/* ---------- Main section headings ---------- */

.dark .home-section h1 {
  color: #e7dde9 !important;
}

.dark .home-section h2,
.dark .home-section h3 {
  color: #efe8f0 !important;
}


/* ---------- Profile name ---------- */

.dark .portrait-title h2 {
  color: #f6f0f6 !important;
}


/* Subtitle and affiliation */

.dark .portrait-title h3 {
  color: #d2cad4 !important;
}


/* ---------- Links ---------- */

.dark a {
  color: #d8c9dc !important;
}

.dark a:hover,
.dark a:focus {
  color: #f3ebf4 !important;
  text-decoration: none !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(243, 235, 244, 0.12);
}


/* ---------- Social icons ---------- */

.dark .network-icon li a,
.dark .network-icon li a i {
  color: #d6c7da !important;
}

.dark .network-icon li a:hover,
.dark .network-icon li a:hover i {
  color: #f2eaf3 !important;
}


/* ---------- Education icons ---------- */

.dark .fa-graduation-cap,
.dark .fa-university {
  color: #d9cddd !important;
}


/* =========================================================
   DARK NAVBAR
   ========================================================= */

.dark .navbar {
  background-color: #292630 !important;
  border-bottom: 1px solid #403744 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}


/* Site name */

.dark .navbar-brand {
  color: #f2eaf3 !important;
}


/* Menu items */

.dark .navbar-light .navbar-nav .nav-link {
  color: #ded7e0 !important;
}


/* Hover / active menu */

.dark .navbar-light .navbar-nav .nav-link:hover,
.dark .navbar-light .navbar-nav .nav-link:focus,
.dark .navbar-light .navbar-nav .nav-link.active,
.dark .navbar-light .navbar-nav .active > .nav-link {
  color: #f1e9f2 !important;
}


/* Navbar icons */

.dark .navbar .fa,
.dark .navbar .fas,
.dark .navbar .far,
.dark .navbar .fab {
  color: #d9d1db !important;
}

.dark .navbar .fa:hover,
.dark .navbar .fas:hover,
.dark .navbar .far:hover,
.dark .navbar .fab:hover {
  color: #f1e9f2 !important;
}


/* =========================================================
   CARDS / PUBLICATIONS / AWARDS
   ========================================================= */

.dark .card,
.dark .pub-list-item {
  background-color: #2c2e39 !important;
  border-color: #403a45 !important;
  color: #eee8ef !important;
}


/* Titles */

.dark .card-title,
.dark .card-title a,
.dark .article-title,
.dark .article-title a,
.dark .pub-list-item .article-title {
  color: #ece4ee !important;
}


/* Metadata / smaller text */

.dark .card-text,
.dark .article-metadata,
.dark .pub-list-item .article-metadata,
.dark .text-muted {
  color: #bfb5c1 !important;
}


/* ---------- Buttons ---------- */

.dark .btn-primary {
  background-color: #8f7a94 !important;
  border-color: #8f7a94 !important;
  color: #ffffff !important;
}

.dark .btn-primary:hover,
.dark .btn-primary:focus {
  background-color: #a695aa !important;
  border-color: #a695aa !important;
}


/* ---------- Decorative title line ---------- */

.dark .home-section h1::after {
  background: linear-gradient(
    90deg,
    #cbbdce 0%,
    #ddd1e0 55%,
    #f0e8f1 100%
  ) !important;
}


/* ---------- Horizontal rules ---------- */

.dark hr {
  border-color: #46404a !important;
}