/* Modern Academic Project Page Styles */
/* Optimized for research paper presentation */

:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #6366f1;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.container#main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Title */
.container#main > .row:first-child h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container#main > .row:first-child h2 small {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  -webkit-text-fill-color: #fff;
}

/* Author List */
.list-inline {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.list-inline > li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
}

.list-inline > li > a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.list-inline > li > a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.list-inline > li > br + *,
.list-inline > li::after {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Resource Links (Paper, Dataset, Code) */
.nav-pills {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}

.nav-pills > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.nav-pills > li > a:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.nav-pills > li > a image,
.nav-pills > li > a img {
  height: 48px !important;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.nav-pills > li > a h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Section Headings */
h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Content Paragraphs */
p.text-justify {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

p.text-justify b,
p.text-justify strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Images */
.img-responsive,
image[class*="img-responsive"] {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  margin: 1.5rem 0;
}

/* Video Section */
.text-center > div[style*="padding-top"] {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.text-center > div[style*="padding-top"] iframe {
  border-radius: 1rem;
}

/* Footer/Acknowledgements */
.container#main > .row:last-child {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.container#main > .row:last-child p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.container#main > .row:last-child a {
  color: var(--primary);
  text-decoration: none;
}

.container#main > .row:last-child a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container#main {
    padding: 2rem 1rem;
  }
  
  .container#main > .row:first-child h2 {
    font-size: 1.75rem;
  }
  
  .list-inline {
    gap: 1rem;
  }
  
  .nav-pills {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-pills > li > a {
    width: 100%;
    max-width: 200px;
  }
  
  h3 {
    font-size: 1.4rem;
  }
}

/* CodeMirror Overrides */
.CodeMirror {
  font-size: 0.85rem;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.CodeMirror-scroll {
  overflow-y: hidden;
  overflow-x: auto;
}

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