/* TraveLLaMA Project Page - Custom Styles */
/* Unique travel-inspired design with warm earth tones */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #0d5c63;
  --primary-light: #1a8f9a;
  --accent: #e85d04;
  --accent-light: #f48c06;
  --dark: #1a1a2e;
  --text: #2d3436;
  --text-light: #636e72;
  --bg-cream: #fdf6e3;
  --bg-warm: #fff8f0;
  --gradient-travel: linear-gradient(135deg, #0d5c63 0%, #1a8f9a 50%, #44cfcb 100%);
  --gradient-sunset: linear-gradient(135deg, #e85d04 0%, #f48c06 50%, #faa307 100%);
  --shadow-soft: 0 4px 20px rgba(13, 92, 99, 0.15);
  --shadow-accent: 0 4px 25px rgba(232, 93, 4, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-warm);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.serif-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Hero Section */
.hero-travel {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 100%);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-travel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 92, 99, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-travel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Title Styling */
.publication-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  background: var(--gradient-travel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.publication-title .highlight {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Conference Badge */
.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.venue-badge::before {
  content: '🏆';
}

/* Author Styling */
.publication-authors {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.publication-authors a {
  color: var(--primary) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.author-block {
  display: inline-block;
  margin: 0 0.2rem;
}

.affiliations {
  color: var(--text-light);
  font-size: 1rem;
}

/* Button Links */
.publication-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-travel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-travel.primary {
  background: var(--gradient-travel);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-travel.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 92, 99, 0.3);
}

.btn-travel.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-travel.secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-travel.accent {
  background: var(--gradient-sunset);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-travel.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Teaser Section */
.teaser-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.teaser-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  background: white;
  padding: 1rem;
  margin: 2rem 0;
}

.teaser-image img {
  width: 100%;
  border-radius: 12px;
}

.teaser-caption {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

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

.section-alt {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Abstract Box */
.abstract-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.abstract-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-travel);
}

.abstract-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-travel);
}

.stat-card:nth-child(2)::before {
  background: var(--gradient-sunset);
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(135deg, #44cfcb 0%, #0d5c63 100%);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card:nth-child(2) .stat-number {
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Contribution Cards */
.contribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.contribution-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.contribution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.contribution-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--gradient-travel);
  color: white;
}

.contribution-card:nth-child(2) .contribution-icon {
  background: var(--gradient-sunset);
}

.contribution-card:nth-child(3) .contribution-icon {
  background: linear-gradient(135deg, #44cfcb 0%, #0d5c63 100%);
}

.contribution-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.contribution-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Method Figure */
.method-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.method-figure {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin: 2rem 0;
}

.method-figure img {
  width: 100%;
  border-radius: 12px;
}

.method-caption {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CoT Steps */
.cot-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.cot-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  transition: all 0.3s ease;
}

.cot-step:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.cot-step .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--gradient-travel);
  color: white;
}

.cot-step:nth-child(2) .icon { background: var(--gradient-sunset); }
.cot-step:nth-child(3) .icon { background: linear-gradient(135deg, #44cfcb 0%, #0d5c63 100%); }

/* Results Table */
.results-table-container {
  max-width: 1000px;
  margin: 2rem auto;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.results-table th {
  background: var(--dark);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}

.results-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

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

.results-table .highlight-row {
  background: linear-gradient(90deg, rgba(13, 92, 99, 0.08) 0%, rgba(232, 93, 4, 0.08) 100%);
  font-weight: 600;
}

.results-table .highlight-row td {
  color: var(--primary);
}

.improvement {
  color: var(--primary);
  font-weight: 600;
}

/* User Study Section */
.user-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.sus-score-card {
  background: var(--gradient-travel);
  color: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.sus-score-card.baseline {
  background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

.sus-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.sus-score {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.sus-rating {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Comparison Figure */
.comparison-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.comparison-figure {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.comparison-figure img {
  width: 100%;
  border-radius: 12px;
}

/* BibTeX Section */
.bibtex-section {
  background: var(--dark);
  padding: 4rem 0;
}

.bibtex-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bibtex-title {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bibtex-box {
  background: #2d3436;
  border-radius: 16px;
  padding: 1.5rem;
  overflow-x: auto;
  position: relative;
}

.bibtex-box pre {
  margin: 0;
  color: #dfe6e9;
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-light);
}

/* Footer */
.footer-travel {
  background: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

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

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .publication-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contribution-grid {
    grid-template-columns: 1fr;
  }
  
  .abstract-box {
    padding: 1.5rem;
  }
  
  .publication-links {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-travel {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* World Map Background Pattern */
.map-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'%3E%3Cpath fill='%230d5c63' d='M150 200c30-20 60-10 90 0s60 30 90 20c30-10 50-40 80-50s70 10 100 30c30 20 40 50 70 60s80-10 110-30c30-20 50-50 80-40s50 50 80 70c30 20 70 10 100-10'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

