/* Simple Publications Styling */

/* Projects page styling */
body.portfolio .sidebar h3 {
  font-size: 1.4rem; /* Same as Recent Publications */
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Dark mode support for projects page content */
.projects-coming-soon {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.projects-coming-soon h2 {
  color: #666;
}

html[data-theme="dark"] .projects-coming-soon {
  color: #ffffff !important;
}

html[data-theme="dark"] .projects-coming-soon h2 {
  color: #ffffff !important;
}

/* Contact page styling */
.contact-info {
  font-size: 0.7rem!important;
  line-height: 1.8;
}

.contact-symbol {
  font-size: 1.2rem!important;
  margin-right: 0.3rem;
  vertical-align: middle;
  display: inline-block;
  width: 1.5rem;
  text-align: center;
}

.contact-info + hr + p {
  font-size: 0.6rem!important;
}

/* Reduce spacing above Journal Articles title only */
.archive h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.publications .archive h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Sidebar header styling */
.sidebar h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Dark mode support for sidebar headers */
html[data-theme="dark"] .sidebar h3 {
  color: #ffffff;
}

html[data-theme="dark"] body.portfolio .sidebar h3 {
  color: #ffffff;
}

/* Sidebar Google Scholar styling */
.sidebar-google-scholar {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.sidebar-google-scholar p {
  font-size: 0.58rem !important;
  line-height: 1.4 !important;
  color: #555 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.sidebar-google-scholar a {
  color: #3498db !important;
  text-decoration: none !important;
  word-break: break-word !important;
  display: inline !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
}

.sidebar-google-scholar a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Dark mode support for Google Scholar text */
html[data-theme="dark"] .sidebar-google-scholar p {
  color: #ffffff !important;
}

html[data-theme="dark"] .sidebar-google-scholar a {
  color: #0ea1c5 !important;
}

html[data-theme="dark"] .sidebar-google-scholar a:hover {
  color: #ffffff !important;
}

.publication-item {
  margin-bottom: 0.4rem;
  padding-bottom: 0.2rem;
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-title {
  margin-bottom: 0.5rem;
  color: #3498db;
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.3;
}

/* Dark mode support for publication titles */
html[data-theme="dark"] .publication-title {
  color: #0ea1c5 !important; /* Use the dark theme link color with !important */
}

html[data-theme="dark"] .publication-authors {
  color: #ffffff !important; /* Make authors text white in dark mode */
}

.publication-authors {
  margin-bottom: 0.3rem;
  color: #555;
  font-size: 0.55rem;
}


.publication-links {
  margin-top: 0.5rem;
}

.publication-item .publication-link {
  display: inline-block !important;
  margin-right: 1rem !important;
  color: #3498db !important;
  text-decoration: underline !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  transition: all 0.2s ease !important;
}

.publication-item .publication-link:hover {
  color: #ffffff !important;
  background-color: #3498db !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* Dark mode support for publication links */
html[data-theme="dark"] .publication-item .publication-link {
  color: #0ea1c5 !important;
}

html[data-theme="dark"] .publication-item .publication-link:hover {
  color: #ffffff !important;
  background-color: #0ea1c5 !important;
}

.publication-item .publication-link.cite-link {
  font-size: 0.55rem !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Simple responsive design */
@media (max-width: 768px) {
  .publication-title a {
    font-size: 1rem;
  }
  
  .publication-links {
    margin-top: 0.75rem;
  }
  
  .publication-link {
    display: block;
    margin-bottom: 0.3rem;
    margin-right: 0;
  }
}

/* BibTeX Modal Styling */
.bibtex-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.bibtex-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.bibtex-modal-header {
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bibtex-modal-header h3 {
  margin: 0;
  color: #2c3e50;
}

.bibtex-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.bibtex-close:hover {
  color: #000;
}

.bibtex-modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.bibtex-modal-body pre {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.bibtex-modal-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  text-align: right;
}

.btn {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}
