/* Custom styles for the tutorial website */

:root {
  --tutorial-primary: #2c3e50;
  --tutorial-secondary: #3498db;
  --tutorial-accent: #e74c3c;
  --tutorial-light: #ecf0f1;
}

/* Header styling */
.quarto-title-block {
  border-bottom: 3px solid var(--tutorial-secondary);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

/* Section spacing */
section {
  margin-bottom: 3rem;
}

h2 {
  color: var(--tutorial-primary);
  border-bottom: 2px solid var(--tutorial-secondary);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  color: var(--tutorial-primary);
  margin-top: 1.5rem;
}

/* Speaker cards */
.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.speakers h3 {
  color: var(--tutorial-secondary);
  margin-top: 0;
}

/* Abstract box */
.abstract {
  background-color: var(--tutorial-light);
  padding: 1.5rem;
  border-left: 4px solid var(--tutorial-secondary);
  border-radius: 4px;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Outline styling */
ul {
  line-height: 1.8;
}

ul li {
  margin-bottom: 0.5rem;
}

/* References section */
.references {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
}

/* Material links */
a[href*="slides"],
a[href*="handout"],
a[href*="demo"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--tutorial-secondary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin: 0.25rem;
  transition: background-color 0.3s;
}

a[href*="slides"]:hover,
a[href*="handout"]:hover,
a[href*="demo"]:hover {
  background-color: var(--tutorial-primary);
}

/* Code blocks */
pre {
  background-color: #f4f4f4;
  border-left: 4px solid var(--tutorial-secondary);
  padding: 1rem;
  border-radius: 4px;
}

/* Alert boxes */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.alert-info {
  background-color: #d1ecf1;
  border-left: 4px solid #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border-left: 4px solid #856404;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--tutorial-light);
  text-align: center;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .speakers {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* ESWC branding accent */
.eswc-brand {
  color: var(--tutorial-secondary);
  font-weight: bold;
}

/* Navigation bar menu items */
.navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link.active {
  color: white !important;
  font-weight: 500;
}

/* Schedule table styling */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: var(--tutorial-primary);
  color: white;
}

table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--tutorial-secondary);
}

table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}

table tbody tr:hover {
  background-color: #f8f9fa;
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody td {
  padding: 1rem;
  vertical-align: top;
}

table tbody td:first-child {
  font-weight: 600;
  color: var(--tutorial-primary);
  width: 120px;
  background-color: #f8f9fa;
}

table tbody tr:nth-child(4) {
  background-color: #fff3cd;
  font-weight: 600;
}

table tbody tr:nth-child(4):hover {
  background-color: #ffeaa7;
}

table tbody em {
  color: #6c757d;
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

table tbody ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

table tbody li {
  margin-bottom: 0.25rem;
}

/* References section styling */
#refs {
  margin-top: 3rem;
}

.csl-entry {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-left: 3px solid var(--tutorial-secondary);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.csl-entry:hover {
  background-color: #e9ecef;
}

.csl-entry a {
  color: var(--tutorial-secondary);
  text-decoration: none;
}

.csl-entry a:hover {
  text-decoration: underline;
}

/* Citation styling */
.citation {
  color: var(--tutorial-secondary);
  font-weight: 500;
}

/* References section headers */
#references h3 {
  color: var(--tutorial-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tutorial-secondary);
}

#references h4 {
  color: var(--tutorial-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

#references ul {
  list-style: none;
  padding-left: 0;
}

#references li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

#references li:before {
  content: "• ";
  color: var(--tutorial-secondary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Reference list items with titles */
#references ul li a[href^="#ref-"] {
  color: var(--tutorial-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--tutorial-secondary);
  transition: all 0.2s;
}

#references ul li a[href^="#ref-"]:hover {
  color: var(--tutorial-secondary);
  border-bottom: 1px solid var(--tutorial-secondary);
}

#references ul li .citation {
  color: var(--tutorial-secondary);
  font-size: 0.9em;
  margin-left: 0.5rem;
}
