/* FinSearchComp Benchmark - Modern CSS Styles */
/* Inspired by MARS-Bench design with Bulma framework integration */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming - MARS-Bench colors */
:root {
  --primary-color: #3273dc;
  --primary-light: #e8f4fd;
  --secondary-color: #00d1b2;
  --secondary-light: #e8fffa;
  --accent-color: #ff3860;
  --text-dark: #363636;
  --text-medium: #555;
  --text-light: #7a7a7a;
  --background-light: #f7f9fa;
  --background-white: #ffffff;
  --border-light: #dbdbdb;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --reasoning-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  --standard-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(253, 253, 253, 0.05));
  --human-expert-bg: rgba(255, 208, 80, 0.15);
  --random-frequent-bg: #f4f9fe;
  --scrollbar-color: #e0e0e0;
  --scrollbar-thumb-color: #c0c0c0;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Set all div backgrounds to pure white */
div {
  background-color: #ffffff;
}

/* Task Card Styles */
.task-card {
  border-radius: 16px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.task-card .card-content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Task Header */
.task-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.t1-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.t2-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.t3-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.task-info {
  flex: 1;
}

.task-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.task-subtitle {
  font-size: 14px;
  color: #718096;
  margin: 0;
  font-weight: 500;
}

/* Content Container */
.content-container {
  flex: 1;
  position: relative;
}

.task-description {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Example Section */
.example-section {
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #6366f1;
}

.example-label {
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.example-content {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.example-question {
  font-style: italic;
  font-weight: 500;
}

/* Answer Section */
.content-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 16px;
}

.task-card.expanded .content-full {
  max-height: 200px;
  opacity: 1;
}

.answer-section {
  background: rgba(16, 185, 129, 0.05);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #10b981;
}

.answer-label {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.answer-content {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.answer-text {
  font-weight: 600;
  color: #059669;
}

/* Expand Toggle */
.expand-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.expand-toggle:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expand-toggle i {
  font-size: 14px;
  color: #6b7280;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-card.expanded .expand-toggle i {
  transform: rotate(180deg);
}

/* Gradient overlay for collapsed state */
.task-card:not(.expanded) .content-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(248, 249, 250, 0.95));
  pointer-events: none;
  border-radius: 0 0 16px 16px;
}

/* Expandable Card Styles - Updated to match page style */
.expandable-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.expandable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.content-container {
  position: relative;
  transition: all 0.3s ease;
}

.content-preview {
  position: relative;
}

.content-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.expandable-card.expanded .content-full {
  max-height: 200px;
  opacity: 1;
}

.expand-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  z-index: 10;
}

.expand-arrow:hover {
  opacity: 0.7;
}

.expand-arrow i {
  font-size: 14px;
  color: #666;
  transition: transform 0.3s ease;
}

.expandable-card.expanded .expand-arrow i {
  transform: rotate(180deg);
}

/* Gradient blur effect for collapsed state */
.expandable-card:not(.expanded) .content-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Read More Button Styles - Updated to match page style */
.read-more-btn {
  text-align: center;
  margin: 15px auto 0 auto;
  padding: 8px 20px;
  background-color: #333333;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  width: fit-content;
  transition: all 0.3s ease;
  border: none;
  align-self: center;
}

.read-more-btn:hover {
  background-color: #555555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

/* Card Content Styles for Equal Height */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Ensure columns have equal height */
.columns.is-centered {
  align-items: stretch;
}

.column.is-one-third {
  display: flex;
  flex-direction: column;
}

/* Special styling for Data Distribution Card to match height */
.data-distribution-card {
  min-height: 280px;
}

.data-distribution-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

/* Removed duplicate .read-more-btn:hover and :active definitions - using the main definition above */

/* Leaderboard Box Styling */
.box {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: none;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Fixed Table Header Styles */
.table-container {
  position: relative;
}

.table-container thead th {
  position: sticky;
  top: 0;
  background: #f5f5f5 !important;
  z-index: 100;
  border-bottom: 2px solid #dbdbdb !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card hover effect */
.box:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Overview cards specific styling */
#overview .box {
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

#overview .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Title styling for overview cards */
#overview .title {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem !important;
  text-align: center;
}

#overview .title i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Introduction and Overview content styling */
#overview .content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

#overview .content p {
  margin-bottom: 1.2rem;
  text-align: left;
  text-indent: 0;
  word-spacing: normal;
  letter-spacing: 0.02em;
}

#overview .content strong {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0 0.1em;
}

/* Specific styling for list items in overview */
#overview .content ul {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

#overview .content ul li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Card content styling */
.card-content {
  position: relative;
}

/* Key Findings Section Styling */
.finding-box {
  width: 85%;
  margin: 0 auto 2.5rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.finding-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.finding-box .title {
  font-size: 1.5rem !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

.finding-content {
  max-width: 95%;
  margin: 0 auto;
}

.finding-content ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.finding-content ul li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.finding-content ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.finding-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Data Construction Process Section Styling */
.data-construction-box {
  width: 80%;
  margin: 0 auto;
}

/* Increase image container size */
#key-findings .image-container {
  max-width: 550px;
  margin: 0 auto;
}

#key-findings .columns {
  margin-bottom: 1rem;
}

#key-findings .column {
  padding: 0.5rem;
}

.card-body {
  position: relative;
}

.card-preview {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.card-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.card-full-content {
  display: none;
}

/* Removed duplicate .read-more-btn definition - using the main definition above */


.finding-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 12px;
  font-weight: bold;
}

.notification.is-primary.is-light,
.notification.is-info.is-light,
.notification.is-warning.is-light {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.notification.is-primary.is-light:hover,
.notification.is-info.is-light:hover,
.notification.is-warning.is-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image container and zoomable image styling */
.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.zoomable-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zoomable-image:hover {
  transform: scale(1.05);
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 80%;
  max-width: 800px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

/* Image modal specific styling */
.image-modal-content {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 90%;
  width: auto;
  text-align: center;
}

.zoomed-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1010;
}

.close-modal:hover {
  color: #333;
}

/* For image modal, make close button more visible */
.image-modal-content .close-modal {
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.image-modal-content .close-modal:hover {
  color: #f0f0f0;
}

/* Leaderboard Table Styling */
.table-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  border-bottom: 2px solid #e2e8f0;
  text-transform: none;
}

/* Enhanced number and percentage styling for leaderboard */
.table td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

/* Style for percentage values */
.table td:not(:first-child):not(:nth-child(2)) {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  color: #1e293b;
}

/* Style for model names (make them stand out) */
.table td:nth-child(2) {
  font-weight: 600;
  color: #1e293b;
}

/* Style for rank column */
.table td:first-child {
  font-weight: 600;
}

.table tr:hover {
  background-color: rgba(59, 130, 246, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table tr:hover td {
  color: #1e293b;
}

/* Medal Tags */
.tag.is-warning, .tag.is-light, .tag.is-info, .tag.is-success {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: none;
  font-family: 'Inter', sans-serif;
}

.tag.is-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
}

.tag.is-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.tag.is-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.tag.is-light {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #374151;
}

/* Hero Section Styles */
.hero {
  background: var(--reasoning-gradient);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

/* Leaderboard Hero Section - Override Bulma primary colors */
.hero.is-primary {
  background: white !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.hero.is-primary .title,
.hero.is-primary .subtitle {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .hero-body {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.publication-subtitle {
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-family: 'Google Sans', sans-serif;
}

/* Publication Links */
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto;
  text-align: center;
}

.publication-links .link-block {
  display: inline-block;
}

.publication-links .button {
  background: var(--text-dark);
  color: white;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.publication-links .button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .publication-links {
    flex-direction: column;
    align-items: center;
  }
  
  .publication-links .button {
    width: 200px;
  }
}

.external-link {
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.external-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Teaser Section */
.hero.teaser {
  background: var(--background-light);
  color: var(--text-dark);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.hero.teaser::before {
  display: none;
}

.teaser .content {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow-light);
  margin-bottom: 2rem;
}

/* Highlight Items */
.highlight-item {
  transition: var(--transition);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

/* Section Styles */
.section {
  padding: 3rem 1.5rem;
}

.hero.is-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-dark);
}

.hero.is-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Content Styles */
.content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content h2, .content h3, .content h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1.5rem;
}

.content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Box Styles */
.box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.box:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* MARS-Bench Model Row Styles */
.reasoning-model-row {
  background-image: var(--reasoning-gradient);
}

.standard-model-row {
  background-image: var(--standard-gradient);
}

.human-expert {
  background-color: var(--human-expert-bg);
}

.random-frequent {
  background-color: var(--random-frequent-bg);
  color: #808080;
}

/* Chart Styles */
#global-chart {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  min-height: 500px;
  margin: 20px 0;
}

/* Chart loading styles */
.chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chart-loading p {
  color: var(--text-medium);
  font-size: 14px;
  margin: 0;
}

/* Chart Container Animation */
#global-chart {
  animation: fadeIn 0.8s ease-out;
}

/* Box Animation */
.box {
  animation: fadeIn 0.6s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Lazy loading image styles */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
}

.table th,
.table td {
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  color: #334155;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  border-bottom: 2px solid #e2e8f0;
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.table tbody tr:nth-child(even):hover,
.table tbody tr:nth-child(odd):hover {
  background: rgba(59, 130, 246, 0.04);
}

/* Tag Styles */
.tag {
  font-weight: 600;
  border-radius: 20px;
  padding: 0.5rem 1rem;
}

.tag.is-warning {
  background: linear-gradient(135deg, #ffdd57 0%, #ffcd02 100%);
  color: #363636;
}

.tag.is-success {
  background: linear-gradient(135deg, #48c774 0%, #3ec46d 100%);
  color: white;
}

.tag.is-info {
  background: linear-gradient(135deg, #3273dc 0%, #2366d1 100%);
  color: white;
}

/* MARS-Bench Model Labels */
.reasoning-model-label {
  background-color: #e6fff0;
  color: #006400;
  border: 1px solid #b3ffcc;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.standard-model-label {
  background-color: #e6f7ff;
  color: #005f99;
  border: 1px solid #b3e5ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Image Styles */
.image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .title {
  color: white;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
}

.footer .content {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-title {
    font-size: 2.5rem;
  }
  
  
  .section {
    padding: 2rem 1rem;
  }
  
  .box {
    padding: 1.5rem;
  }
  
  .table-container {
    overflow-x: auto;
  }
}

@media screen and (max-width: 480px) {
  .publication-links .link-block {
    display: block;
    margin: 0.5rem 0;
  }
  
  .external-link {
    width: 100%;
    justify-content: center;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.nowrap {
  white-space: nowrap;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.button:hover {
  background-color: #00b89c;
  transform: translateY(-2px);
  box-shadow: 0 0 0 0.2em rgba(0,209,178,0.25);
}

/* Focus Styles for Accessibility */
.button:focus,
.external-link:focus {
  outline: 3px solid rgba(50, 115, 220, 0.5);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .hero,
  .footer,
  .publication-links {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .box {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
