@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #525252;
}

body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #111111;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* Text Transitions */
.text-transition {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Timeline Custom Styles */
.timeline-dot::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #111111;
  border: 2px solid #ffffff;
  left: -6px;
  top: 6px;
  transition: all 0.3s ease;
}

.group:hover .timeline-dot::after {
  background-color: #ffffff;
  border-color: #111111;
  transform: scale(1.2);
}

/* BibBase Override Styles to match template */
#bibbase_wrapper {
  font-family: 'Inter', sans-serif !important;
  color: #525252 !important;
}

#bibbase_wrapper a {
  color: #111111 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

#bibbase_wrapper a:hover {
  color: #525252 !important;
}

.bibbase_paper {
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid #f5f5f5 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.bibbase_paper_title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 0.4rem !important;
  color: #111111 !important;
}

.bibbase_paper_author {
  color: #525252 !important;
  font-size: 0.9rem !important;
}

.bibbase_paper_booktitle, .bibbase_paper_journal {
  font-style: italic !important;
  color: #737373 !important;
}

.bibbase_paper_year {
  font-weight: 600 !important;
  color: #111111 !important;
}

/* Translation animation */
[data-i18n] {
  transition: opacity 0.2s ease-in-out;
}

.fade-out {
  opacity: 0;
}

/* Prevent BibBase from hiding header/nav/footer */
header {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

nav {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

footer {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Custom Responsive Classes to prevent conflicts with third-party libraries (e.g. Bootstrap's .hidden) */
.menu-desktop-container {
  display: none !important;
}
@media (min-width: 1024px) {
  .menu-desktop-container {
    display: flex !important;
  }
}

.timeline-line-custom {
  display: none !important;
}
@media (min-width: 640px) {
  .timeline-line-custom {
    display: block !important;
  }
}


