/* Synced from VenusBench-GD-Project/static/css/index.css */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--background-primary);
}

/* Hero Section */
.hero.is-light {
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border-color);
}

.publication-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin-bottom: 2rem !important;
  line-height: 1.1 !important;
}

.publication-authors {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Leaderboard Specific Styles */
.leaderboard-box {
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.table thead th {
  background-color: #e6f7ff;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center !important;
  vertical-align: middle !important;
  border-bottom: 2px solid var(--border-color);
}

.table td {
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-color: var(--border-color);
}

.model-name {
  font-weight: 600;
  text-align: left !important;
  color: var(--primary-color);
}

.overall-avg-value {
  font-weight: 700;
  color: var(--text-primary);
  background-color: #f0f9ff;
}

.sub-avg-value {
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
}

/* Button Styles */
.button.is-rounded {
  border-radius: 290486px !important;
}

.button.is-dark {
  background: var(--text-primary) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

/* Notes Section */
.notes-box {
  background-color: #f0f9ff !important;
  border-left: 4px solid var(--primary-color) !important;
  padding: 1.5rem !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: var(--shadow-sm) !important;
}

.notes-box .title.is-4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Citation & Pre */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* Table Sorting */
th.sortable {
  cursor: pointer;
  position: relative;
}

th.sortable:hover {
  background-color: #d1ecff !important;
}

th.sorted-asc::after {
  content: " ▲";
  font-size: 0.7em;
}

th.sorted-desc::after {
  content: " ▼";
  font-size: 0.7em;
}

/* Table Group Emphasis */
.header-group-basic {
  background-color: #f8fafc !important; /* Slightly darker background */
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--border-color) !important;
}

.header-group-advanced {
  background-color: #f0f7ff !important; /* Light blue background for Advanced */
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--border-color) !important;
}

.border-left-strong {
  border-left: 2px solid var(--border-color) !important;
}

.column-avg-highlight {
  font-weight: 700 !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
}
