/* ============================================================
   Co-Skill — Dark Developer Theme
   ============================================================ */

/* ---- Base ---- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at top, rgba(45, 212, 191, 0.15), transparent 50%),
    #0b1120;
  background-size: 50px 50px, 50px 50px, 100% 100%, auto;
  color: #e2e8f0;
  min-height: 100vh;
}

/* ---- Accent utility ---- */
.accent {
  color: #2dd4bf;
}

/* ---- Section containers — transparent, no card ---- */
.section {
  background: transparent !important;
  padding: 2rem 1.5rem;
}

.section .container.is-max-desktop {
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

/* ---- Inner content cards ---- */
.content-card {
  background: #1e293b;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---- Media card: flush image + dark body ---- */
.media-card {
  padding: 0;
  overflow: hidden;
}

.media-card-img {
  width: 100%;
  background: #ffffff;
}

.media-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.media-card-body {
  background: #1e293b;
  padding: 24px;
}

.media-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem;
}

.media-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* Ensure Bulma columns in sections stretch cards equally */
.section .columns {
  align-items: stretch !important;
}

/* Override: vcentered columns should also stretch cards inside */
.section .columns.is-vcentered {
  align-items: stretch !important;
}

/* Grid parent: equal-height row */
.equal-height-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.equal-height-row > .content-card {
  margin-bottom: 0;
}

/* ---- Typography ---- */
.title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff !important;
}

h2.title.is-3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

h3.title {
  color: #e2e8f0 !important;
}

p {
  color: #b0bcd0;
  line-height: 1.7;
}

strong {
  color: #f1f5f9;
}

.content.has-text-justified {
  color: #b0bcd0;
}

/* ---- Links ---- */
a {
  color: #2dd4bf;
}

a:hover {
  color: #5eead4;
}

/* ============================================================
   Hero — Massive left-aligned title
   ============================================================ */
section.hero:not(.is-light):not(.teaser) .hero-body .container {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

.hero-body {
  padding: 3rem 1.5rem 1.5rem;
}

.hero-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2dd4bf;
  margin-bottom: 0.75rem;
}

.publication-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  text-align: left;
  margin-bottom: 1.5rem;
}

.publication-authors {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #94a3b8 !important;
  text-align: left;
}

.publication-authors a {
  color: #2dd4bf !important;
}

.author-block {
  display: inline-block;
  color: #94a3b8;
}

/* ---- Badge buttons — pill shaped ---- */
.publication-links {
  text-align: left;
  margin-top: 1.25rem;
}

.link-block .button.is-dark {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 9999px;
  padding: 0.55rem 1.5rem;
  transition: all 0.25s ease;
}

/* Primary: cyan-to-purple gradient */
.link-block .btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #a855f7);
  border: none;
  color: #0b1120 !important;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.25), 0 0 40px rgba(168, 85, 247, 0.15);
}

.link-block .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.4), 0 0 56px rgba(168, 85, 247, 0.22);
  color: #0b1120 !important;
}

.link-block .btn-primary .icon {
  color: inherit;
}

/* Secondary: transparent outline */
.link-block .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1 !important;
}

.link-block .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.link-block .btn-secondary .icon {
  color: inherit;
}

/* ---- Teaser section ---- */
.teaser .container.is-max-desktop {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
}

.teaser .hero-body {
  padding: 0;
}

.teaser video {
  border-radius: 16px;
}

.teaser .subtitle {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.dnerf {
  font-variant: small-caps;
  color: #2dd4bf;
}

/* ---- Navbar (top) ---- */
.navbar {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-item,
.navbar-link {
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif;
}

.navbar-item:hover,
.navbar-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.navbar-dropdown {
  background: #11192b !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
}

.navbar-dropdown .navbar-item {
  color: #94a3b8 !important;
}

.navbar-dropdown .navbar-item:hover {
  color: #ffffff !important;
  background: rgba(45, 212, 191, 0.1) !important;
}

.navbar-burger {
  color: #94a3b8 !important;
}

/* ============================================================
   Quick Navigation Bar
   ============================================================ */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.quick-nav .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-nav .nav-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  background: transparent;
}

.quick-nav .nav-link:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(94, 234, 212, 0.08));
  color: #2dd4bf;
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(45, 212, 191, 0.12);
}

.quick-nav .nav-link:active {
  transform: translateY(0);
}

/* ---- Smooth scroll ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ---- Overview point labels ---- */
.point-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2dd4bf;
  margin-bottom: 0.35em;
  letter-spacing: -0.01em;
}

/* ---- Content strong tags — accent highlight ---- */
.content strong {
  color: #f1f5f9;
}

/* ---- Figures & captions ---- */
figure figcaption {
  color: #94a3b8;
  font-size: 0.88rem;
}

figure figcaption strong {
  color: #e2e8f0;
}

/* ---- Image wrappers — no white edges, rounded corners ---- */
.card-img {
  overflow: hidden;
  border-radius: 14px;
}

.card-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Experiments dashboard grid ---- */
.experiments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.dashboard-header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.dashboard-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

.dashboard-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.dashboard-card .card-img {
  border-radius: 0 0 14px 14px;
  margin: 0 1.25rem 1.25rem;
}

/* Ensure dashboard cards have equal height */
.experiments-grid .dashboard-card {
  height: 100%;
}

/* ---- Section headings accent bar ---- */
h2.title.is-3::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #2dd4bf;
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* Override for hero/publication title */
.publication-title::after {
  display: none;
}

/* ---- Citation code block ---- */
.code-block-wrapper {
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 620px;
  width: 100%;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.copy-btn:hover {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.3);
}

.copy-btn.copied {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.4);
}

.citation-pre {
  background: #0d1525;
  color: #cbd5e1;
  padding: 20px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.citation-pre code {
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
}

/* ---- Footer ---- */
.footer {
  background: transparent !important;
  padding: 2rem 1.5rem 3rem;
}

.footer p {
  color: #64748b;
  font-size: 0.85rem;
}

.footer a {
  color: #94a3b8;
}

.footer a:hover {
  color: #2dd4bf;
}

.footer .icon-link {
  font-size: 22px;
  color: #64748b;
  transition: color 0.2s;
}

.footer .icon-link:hover {
  color: #2dd4bf;
}

/* ---- Override Bulma content ---- */
.content h1, .content h2, .content h3, .content h4 {
  color: #ffffff;
}

/* ---- Video ---- */
video {
  border-radius: 10px;
}

/* ---- Fix legacy ---- */
.publication-venue {
  color: #94a3b8;
}

/* ---- Data Dropdown ---- */
.data-dropdown-btn {
  user-select: none;
}

.data-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.data-dropdown:hover .data-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.data-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.data-dropdown-menu a:hover {
  background: #334155;
  color: #ffffff;
}

.data-dropdown-menu a:first-child {
  border-radius: 6px 6px 0 0;
}

.data-dropdown-menu a:last-child {
  border-radius: 0 0 6px 6px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2.8rem;
  }

  .hero-body {
    padding: 2rem 1rem 1rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .content-card {
    padding: 1.25rem;
  }

  .section .columns.is-vcentered {
    flex-direction: column;
  }

  .section .columns.is-vcentered .column {
    width: 100%;
  }

  /* Overview: stack vertically on mobile */
  #overview .columns .column.is-one-third {
    order: -1;
  }

  /* Equal height grid: single column on mobile */
  .equal-height-row {
    grid-template-columns: 1fr;
  }

  /* Experiments grid: single column */
  .experiments-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    padding: 1rem 1.25rem 0.5rem;
  }

  .dashboard-card .card-img {
    margin: 0 1rem 1rem;
  }

  .code-block-wrapper {
    max-width: 100%;
  }

  .citation-pre {
    font-size: 0.7rem;
    padding: 14px 12px;
  }

  .copy-btn {
    top: 6px;
    right: 6px;
    font-size: 0.68rem;
    padding: 3px 10px;
  }
}
