/* =========================================================
   InversePrompt Project Page
   Clean CSS for static/css/index.css
   ========================================================= */

   :root {
    --primary-color: #3273b7;
    --primary-hover: #255f9e;
    --ku-crimson: #862633;
  
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
  
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-accent: #f1f5f9;
  
    --border-color: #e2e8f0;
  
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 18px 30px rgba(15, 23, 42, 0.14);
  
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
  }
  
  /* Global */
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--background-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-hover);
  }
  
  /* Layout */
  .hero {
    position: relative;
    overflow: hidden;
  }
  
  .hero.is-light {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero-body {
    padding: 4rem 1.5rem;
  }
  
  .publication-header .hero-body {
    padding: 5.5rem 1.5rem 3.6rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  /* Header */
  .title-wide {
    width: 96vw;
    max-width: 1500px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  
  .publication-title {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: 0.018em;
    margin-bottom: 1.8rem !important;
  }
  
  .publication-venue {
    display: inline-block;
    margin-bottom: 1.35rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  
  .publication-authors,
  .publication-affiliations {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.55;
    letter-spacing: 0.03em;
  }
  
  .publication-authors {
    margin-bottom: 0.7rem;
    font-weight: 500;
  }
  
  .publication-affiliations {
    margin-bottom: 1.65rem;
    font-weight: 500;
  }
  
  .publication-authors a {
    color: #2563eb !important;
    font-weight: 700;
  }
  
  .publication-authors a:hover {
    color: var(--primary-hover) !important;
  }
  
  .author-block {
    display: inline-block;
    margin-right: 0.45rem;
  }
  
  .affiliation-marker {
    margin-right: 0.25rem;
    font-weight: 400;
  }
  
  .cau {
    color: var(--primary-color);
  }
  
  .ku {
    color: var(--ku-crimson);
  }
  
  /* Buttons */
  .publication-links {
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
  }
  
  .link-block a {
    margin: 8px 5px;
  }
  
  .button {
    border: none !important;
    border-radius: var(--radius) !important;
    font-weight: 700 !important;
    transition: var(--transition) !important;
  }
  
  .button.is-dark {
    color: #ffffff !important;
    background: #111827 !important;
    box-shadow: var(--shadow-md);
  }
  
  .button.is-dark:hover {
    background: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  /* Keywords */
  .publication-keywords {
    margin-top: 1.3rem;
    text-align: center;
    font-size: 1.05rem;
  }
  
  .keyword-label {
    margin-right: 0.5rem;
    color: var(--text-primary);
    font-weight: 800;
  }
  
  .keyword-tag {
    display: inline-block;
    margin: 0.2rem 0.25rem;
    padding: 0.36rem 0.82rem;
    border-radius: 999px;
    background-color: var(--background-accent);
    color: #334155;
    font-weight: 600;
  }
  
  /* Summary box */
  .summary-box {
    max-width: min(880px, 92vw);
    margin: 1.35rem auto 0 auto;
    padding: 1.15rem 1.65rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--background-secondary);
    text-align: center;
  }
  
  .summary-label {
    display: inline-block;
    margin-bottom: 0.48rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  
  .summary-box p {
    margin: 0;
    color: #374151;
    font-size: 1.16rem;
    line-height: 1.45;
  }
  
  .summary-box b {
    color: var(--text-primary);
  }
  
  /* Section titles */
  .title.is-3 {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
    color: var(--text-primary);
    font-weight: 800 !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
  }
  
  .title.is-3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #a855f7, #ec4899);
  }
  
  /* Readable text */
  .readable-content {
    max-width: 820px;
    margin: 0 auto;
  }
  
  .content.has-text-justified {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.72;
    letter-spacing: 0;
    text-align: justify !important;
    text-justify: inter-word;
    word-break: normal;
    overflow-wrap: normal;
  }
  
  .content.has-text-justified p {
    margin-bottom: 1.15rem;
  }
  
  .content.has-text-justified b {
    color: var(--text-primary);
    font-weight: 700;
  }
  
  /* Ordered method steps: (1), (2), ... */
  ol.method-steps {
    list-style: none !important;
    counter-reset: step-counter;
    padding-left: 0 !important;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.72;
  }
  
  ol.method-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 0.85rem;
  }
  
  ol.method-steps li::before {
    content: "(" counter(step-counter) ")";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 800;
  }
  
  ol.method-steps b {
    color: var(--text-primary);
    font-weight: 800;
  }
  
  /* Figures */
  .figure-container {
    max-width: 820px;
    margin: 0 auto 1.4rem auto;
  }
  
  .center-img {
    display: block;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
  }
  
  .overview-img {
    width: 80%;
  }
  
  .method-img {
    width: 100%;
  }
  
  .figure-container img,
  .experiment-video video {
    box-shadow: var(--shadow-md);
  }
  
  /* YouTube embed */
  .publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl);
  }
  
  .publication-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
  }
  
  /* Experiment videos */
  .experiment-video {
    margin-bottom: 2.5rem;
  }
  
  .experiment-title {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
    text-align: left;
  }
  
  .experiment-video video {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
  }
  
  /* Poster */
  .poster-frame {
    width: 100%;
    height: 550px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  
  /* BibTeX */
  .bibtex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .bibtex-header .title {
    margin-bottom: 0 !important;
  }
  
  .copy-bibtex-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
  }
  
  .copy-bibtex-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .copy-bibtex-btn.copied {
    background: #10b981;
  }
  
  pre {
    padding: 1.4rem !important;
    overflow-x: auto;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    background: var(--background-accent) !important;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem !important;
  }
  
  code {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-family: "SF Mono", Monaco, Consolas, monospace !important;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-secondary);
  }
  
  .footer .content {
    color: var(--text-secondary);
    line-height: 1.7;
  }
  
  /* Scroll to top button */
  .scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  
  .scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
  }
  
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .hero-body {
      padding: 2.2rem 1rem;
    }
  
    .publication-header .hero-body {
      padding: 3rem 1rem 2rem;
    }
  
    .title-wide {
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      transform: none;
    }
  
    .publication-title {
      font-size: 2.4rem !important;
      line-height: 1.18 !important;
      margin-bottom: 1.4rem !important;
    }
  
    .publication-venue {
      font-size: 1.1rem;
    }
  
    .publication-authors,
    .publication-affiliations {
      font-size: 1rem !important;
    }
  
    .button {
      margin: 0.25rem !important;
      font-size: 0.9rem !important;
      padding: 0.7rem 1rem !important;
    }
  
    .publication-keywords {
      font-size: 0.98rem;
    }
  
    .summary-box {
      padding: 1rem 1.1rem;
    }
  
    .summary-box p {
      font-size: 1.02rem;
    }
  
    .content.has-text-justified,
    ol.method-steps {
      font-size: 1rem;
      line-height: 1.7;
    }
  
    ol.method-steps li {
      padding-left: 2.3rem;
    }
  
    .overview-img {
      width: 100%;
    }
  
    .poster-frame {
      height: 420px;
    }
  
    .bibtex-header {
      align-items: flex-start;
      flex-direction: column;
    }
  }
  
  @media screen and (max-width: 480px) {
    .publication-title {
      font-size: 2rem !important;
    }
  
    .section {
      padding: 3rem 1rem;
    }
  
    .link-block {
      display: block;
      margin-bottom: 0.5rem;
    }
  
    .button {
      width: 100%;
      justify-content: center;
    }
  
    .poster-frame {
      height: 360px;
    }
  }
  
  /* Remove border/shadow effect from figures */
  .figure-container img {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  
  /* Make In brief box wide enough for two lines */
  .summary-box {
    max-width: min(1100px, 92vw);
  }
  
  /* Keep first sentence on one line when possible */
  .summary-box p {
    font-size: 1.12rem;
    line-height: 1.5;
  }
  
  .section-light {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .method-figure {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .method-img {
    width: 100%;
    max-width: 820px;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  
  .experiment-note {
    margin-top: -0.8rem;
    margin-bottom: 1.8rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  /* Page navigation bar */
  .page-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
  }
  
  .page-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .page-nav-link {
    position: relative;
    display: inline-block;
    padding: 1rem 0;
    color: #555555;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
  }
  
  .page-nav-link:hover {
    color: var(--primary-color);
  }
  
  .page-nav-link.active {
    color: var(--primary-color);
  }
  
  .page-nav-link.active::after,
  .page-nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-color);
  }
  
  /* Prevent section titles from hiding behind sticky nav */
  #overview,
  #method,
  #experiments,
  #poster,
  #bibtex {
    scroll-margin-top: 90px;
  }
  