/* ========================================
   CADGrasp Project Page Styles
   ======================================== */

body {
  font-family: 'Noto Sans', sans-serif;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f5 100%);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.hero.is-light {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8f0 100%);
}

/* Footer Styles */
.footer {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef0f5 100%);
  padding: 3rem 1.5rem;
}

.footer .icon-link {
    font-size: 28px;
    color: #363636;
    margin: 0 12px;
    transition: all 0.3s ease;
}

.footer .icon-link:hover {
    color: #7B3FB4;
    transform: translateY(-3px);
}

/* Link Blocks */
.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.publication-links {
  margin-top: 20px;
}

.publication-links .button {
  margin: 5px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.publication-links .button.is-dark {
  background: linear-gradient(135deg, #363636 0%, #1a1a2e 100%);
}

.publication-links .button.is-dark:hover {
  background: linear-gradient(135deg, #7B3FB4 0%, #BA5E86 100%);
}

.dnerf {
  font-variant: small-caps;
}

/* Teaser Section */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.teaser-image {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.teaser-image:hover {
  transform: scale(1.01);
}

/* Publication Styles */
.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
    line-height: 1.3;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
    margin-top: 15px;
    margin-bottom: 10px;
}

.publication-venue {
    color: #555;
    font-weight: bold;
    font-family: 'Google Sans', sans-serif;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.venue-badge {
    background: linear-gradient(135deg, #7B3FB4 0%, #BA5E86 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: #7B3FB4 !important;
   transition: color 0.2s ease;
}

.publication-authors a:hover {
    text-decoration: underline;
    color: #BA5E86 !important;
}

.author-block {
  display: inline-block;
}

.publication-authors sup {
  color: #7B3FB4;
  font-weight: 600;
}

/* Video Section */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Results Carousel */
.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  padding: 0;
  font-size: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.results-carousel .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.results-carousel video {
  margin: 0;
  height: 303px;
  width: 800px;
}

/* Interpolation Panel */
.interpolation-panel {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8f0 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 8px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 8px;
}

/* Two HTML Sections - Container Width */
.two-html {
  display: flex;
  gap: 20px;
  padding: 0;
}

.two-html .column {
  flex: 1;
  padding: 0;
  margin: 0;
}

.two-html iframe {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: white;
  width: 100%;
}

/* Responsive: stack vertically on narrow screens */
@media screen and (max-width: 1024px) {
  .two-html {
    flex-direction: column;
    gap: 10px;
  }
  
  .two-html .column {
    width: 100%;
  }
  
  .two-html iframe {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

/* Color Theme */
.richpurple {
  color: #7B3FB4;
  font-weight: bold;
}

.mauve {
  color: #BA5E86;
  font-weight: bold;
}

.softcoral {
  color: #FA8072;
  font-weight: bold;
}

/* Section Titles */
.section .title {
  position: relative;
  display: inline-block;
}

.section .title.is-3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7B3FB4, #BA5E86, #FA8072);
  border-radius: 2px;
}

/* Content Cards */
.content.has-text-justified {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Pipeline Image */
.column.is-full-width .teaser-image {
  margin-bottom: 20px;
}

.column.is-full-width h3 {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

/* Select Dropdown */
.select select {
  border-radius: 8px;
  border: 2px solid #7B3FB4;
  font-weight: 600;
  transition: all 0.3s ease;
}

.select select:hover {
  border-color: #BA5E86;
}

.select select:focus {
  border-color: #7B3FB4;
  box-shadow: 0 0 0 3px rgba(123, 63, 180, 0.2);
}

/* BibTeX Section */
#BibTeX pre {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e8e8e8;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#BibTeX pre code {
  color: #a8d8a8;
}

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

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

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.8rem !important;
  }
  
  .publication-links .button {
    margin: 3px;
    font-size: 0.85rem;
  }
}

/* Highlight Cards */
.highlight-card {
  background: white;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(123, 63, 180, 0.1);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(123, 63, 180, 0.15);
  border-color: rgba(123, 63, 180, 0.3);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.highlight-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #7B3FB4, #BA5E86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7B3FB4, #BA5E86);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Subtitle styling */
.subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Pipeline Section */
.pipeline-container {
  margin-bottom: 25px;
}

.pipeline-description {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 20px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #7B3FB4, #BA5E86, #FA8072) 1;
}

.pipeline-description p,
.pipeline-description li {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* Loading animation for iframes */
iframe {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

iframe:not([src=""]) {
  background: white;
  animation: none;
}