/*
 * Custom styles for Francisco N. Ramos' Quarto site.
 *
 * This stylesheet refines the dark theme with purple and green accents and
 * improves readability. It also ensures that the global footer (nav footer)
 * matches the header bar colour.
 */

/* Import a legible, professional font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Set CSS variables for base colours and typography */
:root {
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-bg: #261e49;
  --bs-body-color: #e6e6e6;
  --bs-primary: #8e44ad;
  --bs-link-color: #bb86fc;
  --bs-link-hover-color: #d2a8ff;
}

/* Headings on dark backgrounds */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

/* Hyperlink styles */
a {
  color: var(--bs-link-color);
  text-decoration: none;
}

a:hover {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

/* Navbar link hover styling */
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
}

/* Enlarge the hamburger (navbar toggler) icon */
.navbar-toggler-icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* Footer styling for page-footer */
.page-footer {
  background-color: #212529 !important;
  color: #b0b0b0 !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.9rem;
}

/* Hide dark/light mode toggle */
.quarto-appearance-toggle,
.navbar .quarto-color-scheme-toggle,
button[title="Appearance"],
button[data-bs-toggle="appearance"] {
  display: none !important;
}

/* Global footer styling */
footer.footer,
footer.footer .nav-footer,
footer.footer .nav-footer-left,
footer.footer .nav-footer-right {
  background-color: #212529 !important;
  color: #b0b0b0 !important;
}

footer.footer .nav-footer p,
footer.footer .nav-footer a {
  color: #b0b0b0 !important;
  margin-bottom: 0;
}

/* Right-floated profile image styling */
.profile-img-right {
  width: 280px;
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive layout for profile image on narrow screens */
@media screen and (max-width: 600px) {
  .profile-img-right {
    display: block;
    float: none;
    margin: 0 auto 20px auto;
  }
}

/* Increase GitHub icon size in navbar */
.navbar .bi-github {
  font-size: 1.4rem !important;
  color: #ffffff !important;
}

/* Increase search icon size in navbar */
#quarto-search .bi-search {
  font-size: 1.4rem !important;
  color: #ffffff !important;
}
