
/* MMST Leader Board */
body { font-family: sans-serif; }

/* Enhanced Color Palette */
:root {
  --primary-color: #3273dc;
  --secondary-color: #00d1b2;
  --accent-color: #ff3860;
  --success-color: #23d160;
  --warning-color: #ffdd57;
  --info-color: #3298dc;
  --light-bg: #f5f7fa;
  --dark-text: #363636;
  --border-color: #dbdbdb;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
}

/* Enhanced Hero Section */
.hero {
  background: linear-gradient(135deg, #ffd4a3 0%, #ffe4b5 50%, #ffe4b5 100%) !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero .title {
  color: #2c3e50;
  text-shadow: 0 2px 4px rgba(255,255,255,0.8);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  color: #34495e;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Enhanced Logo Section */
.hero .mt-4 {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero img {
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

/* Enhanced Buttons */
.external-link.button {
  background: linear-gradient(135deg, var(--primary-color), #4a90e2);
  border: none;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.external-link.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

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

.external-link.button:hover::before {
  left: 100%;
}

/* Enhanced Section Styling */
.section {
  padding: 4rem 1.5rem;
}

.sectionsubtitle {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark-text);
  position: relative;
  padding-bottom: 1rem;
}

.sectionsubtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Enhanced Box Styling */
.box {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

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

/* Enhanced Error Analysis Section */
#error-analysis .box {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

#error-analysis .title.is-5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

#error-analysis img {
  border-radius: 8px;
  transition: var(--transition);
}

#error-analysis img:hover {
  transform: scale(1.02);
}

/* Enhanced Leaderboard */
.lb-wrapper {
  max-width: 1200px;
  margin: 40px auto 60px;
}

.legend {
  text-align: center;
  margin-bottom: 2rem;
}

.legend-item {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.legend-open {
  background: linear-gradient(135deg, #e6f0ff, #d1e7ff);
  color: #1a5f7a;
}

.legend-proprietary {
  background: linear-gradient(135deg, #ffe6e6, #ffd1d1);
  color: #7a1a1a;
}

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

/* Enhanced Table Styling */
#lb thead th {
  text-align: center;
  vertical-align: middle;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
  color: var(--dark-text);
}

#lb tbody tr {
  transition: var(--transition);
}

#lb tbody tr:hover {
  background-color: rgba(50, 115, 220, 0.05);
  transform: scale(1.01);
}

/* Enhanced Description Wrapper */
.description-wrapper {
  margin-top: 48px;
  padding: 2rem;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: var(--shadow-light);
}

/* Enhanced Slider Section */
.slider-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: content-box;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  z-index: 20;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-heavy);
  background: white;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px;
  height: 600px;
  transition: var(--transition);
}

.swiper-slide img {
  max-width: 80%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.swiper-slide img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* Prominent CropWizard Button */
.cropwizard-button {
  background: linear-gradient(135deg, #3273dc, #4a90e2) !important;
  color: white !important;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(50, 115, 220, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: none;
}

.cropwizard-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cropwizard-button:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 25px rgba(50, 115, 220, 0.7);
  color: white !important;
}

.cropwizard-button:hover::before {
  left: 100%;
}

.cropwizard-button:active {
  transform: translateY(-2px) scale(1.05);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Adjust scroll offset for sections */
section[id] {
  scroll-margin-top: 20px;
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Improvements */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero .title {
    font-size: 1.5rem;
  }
  
  .hero .title img {
    height: 3em !important;
  }
  
  .hero .subtitle {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 1rem;
  }
  
  .hero .publication-authors {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }
  
  .hero .publication-authors .author-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  /* Institutional Logos Mobile */
  .hero .mt-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .hero .mt-4 a {
    margin: 5px;
  }
  
  .hero .mt-4 img {
    height: 40px !important;
    margin-right: 0 !important;
  }
  
  /* Buttons Mobile */
  .buttons.is-centered {
    flex-direction: column;
    align-items: center;
  }
  
  .link-block {
    margin: 0.25rem;
    width: 100%;
    max-width: 280px;
  }
  
  .external-link.button {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  /* Section Titles Mobile */
  .sectionsubtitle {
    font-size: 1.5em;
    padding: 0 1rem;
    line-height: 1.3;
  }
  
  /* Error Analysis Mobile */
  #error-analysis .columns {
    margin: 0;
  }
  
  #error-analysis .column {
    padding: 0.5rem;
  }
  
  #error-analysis .box {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }
  
  #error-analysis .title.is-5 {
    font-size: 1rem;
  }
  
  #error-analysis img {
    max-width: 100%;
    height: auto;
  }
  
  /* Slider Section Mobile */
  .slider-section {
    padding: 0 20px;
    max-width: 100%;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  
  .swiper-slide {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  
  .swiper-slide img {
    max-width: 95%;
    max-height: 80%;
  }
  
  /* Table Mobile */
  .lb-wrapper {
    margin: 20px auto 40px;
    padding: 0 10px;
  }
  
  .description-wrapper {
    padding: 1rem;
    margin-top: 24px;
    font-size: 0.9rem;
  }
  
  /* Section Spacing Mobile */
  .section {
    padding: 2rem 1rem;
  }
  
  /* Container Mobile */
  .container.is-max-desktop {
    padding: 0 1rem;
  }
  
  /* Box Mobile */
  .box {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }
  
  /* Audio Player Mobile */
  #audioPlayerSection .box {
    padding: 1rem;
  }
  
  /* CropWizard Button Mobile */
  .cropwizard-button {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    width: 100%;
    max-width: 300px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero .title {
    font-size: 1.2rem;
  }
  
  .hero .title img {
    height: 2.5em !important;
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  .hero .publication-authors {
    font-size: 0.8rem !important;
  }
  
  .hero .mt-4 img {
    height: 35px !important;
  }
  
  .external-link.button {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .sectionsubtitle {
    font-size: 1.3em;
    padding: 0 0.5rem;
  }
  
  .slider-section {
    padding: 0 15px;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
  }
  
  .swiper-slide {
    min-height: 250px;
  }
  
  .swiper-slide img {
    max-width: 98%;
    max-height: 75%;
  }
  
  .lb-wrapper {
    padding: 0 5px;
  }
  
  .description-wrapper {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .section {
    padding: 1.5rem 0.5rem;
  }
  
  .container.is-max-desktop {
    padding: 0 0.5rem;
  }
  
  .box {
    padding: 0.8rem;
  }
}

/* Tablet Improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero .title img {
    height: 4em !important;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
    padding: 0 2rem;
  }
  
  .hero .mt-4 img {
    height: 50px !important;
  }
  
  .slider-section {
    padding: 0 60px;
  }
  
  .swiper-slide {
    width: 500px;
    height: 500px;
  }
  
  .sectionsubtitle {
    font-size: 2em;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero .title img {
    height: 2.5em !important;
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
  }
  
  .hero .publication-authors {
    font-size: 0.8rem !important;
  }
  
  .hero .mt-4 img {
    height: 30px !important;
  }
  
  .swiper-slide {
    min-height: 200px;
  }
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer a {
  color: #74b9ff;
  transition: var(--transition);
}

.footer a:hover {
  color: #0984e3;
  text-decoration: none;
}

/* Enhanced Audio Player */
#audioPlayerSection .box {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  padding: 2rem;
}

#audioPlayerSection audio {
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

/* Enhanced Key Findings Section */
#error-analysis .content {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-light);
}

#error-analysis .title.is-4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#error-analysis .title.is-5 {
  color: var(--dark-text);
  margin-bottom: 1rem;
}

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

#error-analysis ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

#error-analysis ul li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Enhanced Table Colors */
tr.open-col td {
  background: linear-gradient(135deg, #e6f0ff, #d1e7ff) !important;
}

tr.proprietary-col td {
  background: linear-gradient(135deg, #ffe6e6, #ffd1d1) !important;
}

td.best {
  font-weight: bold;
  background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
  color: #155724;
}

/* Enhanced Section Headers */
.hero.is-light.is-small {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 3px solid var(--primary-color);
}

.hero.is-light.is-small .title {
  color: var(--dark-text);
  text-shadow: none;
}

/* Enhanced Links */
.publication-authors a {
  color: var(--primary-color) !important;
  transition: var(--transition);
  text-decoration: none;
}

.publication-authors a:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline;
}

/* Enhanced Buttons Container */
.buttons.is-centered {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.link-block {
  margin: 0.5rem;
  transition: var(--transition);
}

.link-block:hover {
  transform: translateY(-2px);
}

/* Enhanced Institutional Logos */
.hero .mt-4 a {
  transition: var(--transition);
  display: inline-block;
}

.hero .mt-4 a:hover {
  transform: translateY(-3px) scale(1.05);
}

.hero .mt-4 img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  transition: var(--transition);
}

.hero .mt-4 img:hover {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

/* Enhanced Publication Buttons */
.publication-item .button {
  margin: 0.25rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

.publication-item .button:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.publication-item .button:active:not([disabled]) {
  transform: translateY(0);
}

.publication-item .button .icon {
  margin-right: 0.5rem;
}
