/* css styles */

/* Name Header */
.name-header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.name-icon {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.page-columns, .page-rows {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#quarto-content {
  padding-left: 0.5em !important;
  padding-right: 0.5em !important;
}

#quarto-content.quarto-container {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#quarto-content main {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.content {
  max-width: none !important;
  width: 100% !important;
}

body {
  max-width: 100% !important;
}

main.content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.columns {
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
}

.columns > .column:first-child {
  flex: 0 0 45% !important;
  max-width: 45% !important;
}

.columns > .column:last-child {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding-left: 0 !important;
}

.columns .column {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.columns .column h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.about-text {
  font-size: 0.9em;
}

.about-text strong {
  color: #94373c;
}

.columns .column p {
  margin-top: 0;
}

/* Education Section */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.edu-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.edu-info {
  font-size: 0.9em;
}

.edu-info p {
  margin: 4px 0;
}

/* Photo Gallery */
.gallery-container {
  column-count: 3;
  column-gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

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

.gallery-caption {
  padding: 8px 10px;
  background: #fff;
  color: #333;
  font-size: 0.8em;
  text-align: left;
}

/* Publications Section */
.publication-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.pub-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pub-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.pub-content {
  flex: 1;
}

.pub-tags {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.venue, .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
}

/* Venue colors */
.venue-icml {
  background: #e8f4fd;
  color: #1565c0;
}

.venue-icassp {
  background: #fff3e0;
  color: #e65100;
}

.venue-neurips {
  background: #f3e5f5;
  color: #7b1fa2;
}

.venue-tpami {
  background: #e0f2f1;
  color: #00695c;
}

.venue-acm {
  background: #fce4ec;
  color: #c2185b;
}

.venue-aaai {
  background: #e8eaf6;
  color: #303f9f;
}

.venue-interspeech {
  background: #e1f5fe;
  color: #0277bd;
}

/* Status colors */
.status-accepted {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-review {
  background: #fff8e1;
  color: #f9a825;
}

.status-oral {
  background: #ffebee;
  color: #c62828;
}

.status-workshop {
  background: #eceff1;
  color: #546e7a;
}

.status-working {
  background: #e3f2fd;
  color: #1976d2;
}

.pub-item p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #333;
}

.pub-item > p:first-of-type {
  font-weight: 500;
  color: #222;
}

.pub-item a {
  color: #666;
  text-decoration: none;
  font-size: 0.85em;
}

.pub-item a:hover {
  color: #333;
  text-decoration: underline;
}

/* Navbar styling */
.navbar {
  background-color: #94373c !important;
  font-family: "Arial Black", Gadget, sans-serif !important;
}

.navbar .nav-link,
.navbar .menu-text {
  font-family: "Arial Black", Gadget, sans-serif !important;
  color: #fff !important;
}

.navbar-logo {
  height: 60px !important;
  width: auto !important;
}

/* Dark mode education - white background, black text */
.quarto-dark .education-item {
  background: #fff;
}

.quarto-dark .edu-info,
.quarto-dark .edu-info p {
  color: #000 !important;
}

/* Professional Experience Section */
.experience-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.experience-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.exp-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-info {
  font-size: 0.9em;
}

.exp-info p {
  margin: 4px 0;
}

.quarto-dark .experience-item {
  background: #fff;
}

.quarto-dark .exp-info,
.quarto-dark .exp-info p {
  color: #000 !important;
}

/* Highlighted bold text */
.highlight-bold {
  color: #94373c;
  font-weight: bold;
}

/* Keyword tags */
.keyword {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f0f0;
  color: #555;
  border-radius: 15px;
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 8px;
}

/* Publications Page - Horizontal Layout */
.pub-page-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.pub-page-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.pub-page-img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.pub-img-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.pub-img-stack .pub-page-img {
  width: 280px;
  height: auto;
  object-fit: contain;
}

.pub-page-content {
  flex: 1;
}

.pub-page-content p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #333;
}

.pub-tldr {
  margin-top: 12px;
  padding: 12px;
  background: #e8f4fd;
  border-radius: 6px;
  border-left: 4px solid #1565c0;
}

.pub-tldr strong {
  color: #1565c0;
}

.pub-tldr p {
  margin: 4px 0;
  font-size: 0.85em;
  color: #333;
}

.pub-keypoints {
  margin-top: 10px;
}

.pub-keypoints ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.pub-keypoints li {
  font-size: 0.85em;
  color: #444;
  margin-bottom: 6px;
}

.pub-keypoints li strong {
  color: #222;
}

.quarto-dark .pub-page-item {
  background: #fff;
}

.quarto-dark .pub-page-content,
.quarto-dark .pub-page-content p,
.quarto-dark .pub-tldr p,
.quarto-dark .pub-keypoints li {
  color: #000 !important;
}

.quarto-dark .pub-tldr {
  background: #e8f4fd;
}

/* ICASSP style TL;DR (orange) */
.pub-tldr-icassp {
  margin-top: 12px;
  padding: 12px;
  background: #fff3e0;
  border-radius: 6px;
  border-left: 4px solid #e65100;
}

.pub-tldr-icassp strong {
  color: #e65100;
}

.pub-tldr-icassp p {
  margin: 4px 0;
  font-size: 0.85em;
  color: #333;
}

.quarto-dark .pub-tldr-icassp {
  background: #fff3e0;
}

.quarto-dark .pub-tldr-icassp p {
  color: #000 !important;
}

/* NeurIPS style TL;DR (purple) */
.pub-tldr-neurips {
  margin-top: 12px;
  padding: 12px;
  background: #f3e5f5;
  border-radius: 6px;
  border-left: 4px solid #7b1fa2;
}

.pub-tldr-neurips strong {
  color: #7b1fa2;
}

.pub-tldr-neurips p {
  margin: 4px 0;
  font-size: 0.85em;
  color: #333;
}

.quarto-dark .pub-tldr-neurips {
  background: #f3e5f5;
}

.quarto-dark .pub-tldr-neurips p {
  color: #000 !important;
}

/* TPAMI style TL;DR (teal/green) */
.pub-tldr-tpami {
  margin-top: 12px;
  padding: 12px;
  background: #e0f2f1;
  border-radius: 6px;
  border-left: 4px solid #00695c;
}

.pub-tldr-tpami strong {
  color: #00695c;
}

.pub-tldr-tpami p {
  margin: 4px 0;
  font-size: 0.85em;
  color: #333;
}

.quarto-dark .pub-tldr-tpami {
  background: #e0f2f1;
}

.quarto-dark .pub-tldr-tpami p {
  color: #000 !important;
}

/* ACM style TL;DR (pink) */
.pub-tldr-acm {
  margin-top: 12px;
  padding: 12px;
  background: #fce4ec;
  border-radius: 6px;
  border-left: 4px solid #c2185b;
}

.pub-tldr-acm strong {
  color: #c2185b;
}

.pub-tldr-acm p {
  margin: 4px 0;
  font-size: 0.85em;
  color: #333;
}

.quarto-dark .pub-tldr-acm {
  background: #fce4ec;
}

.quarto-dark .pub-tldr-acm p {
  color: #000 !important;
}

/* Section header links - no underline by default */
h2 a {
  color: inherit;
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0 25px 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-link:hover {
  background: #94373c;
  transform: scale(1.1);
}

.quarto-dark .social-link {
  background: #444;
  color: #fff;
}

.quarto-dark .social-link:hover {
  background: #94373c;
}

/* Quick Links under photo */
.quick-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-links p {
  margin: 0;
}

.quick-links a {
  color: #94373c;
  text-decoration: none;
  font-weight: 500;
}

.quick-links a:hover {
  text-decoration: underline;
}

/* ========== Mobile Responsive Styles ========== */
@media (max-width: 768px) {
  /* Navbar red background on mobile */
  .navbar {
    background-color: #94373c !important;
  }

  .navbar .nav-link,
  .navbar .menu-text {
    color: #fff !important;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Dropdown menu when expanded */
  .navbar-collapse {
    background-color: #94373c !important;
  }

  .navbar-collapse .nav-link,
  .navbar-collapse .menu-text {
    color: #fff !important;
  }
  /* Two-column layout becomes single column */
  .columns {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  .columns > .column:first-child,
  .columns > .column:last-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .columns > .column:first-child img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  /* Publications grid becomes single column */
  .publication-list {
    grid-template-columns: 1fr;
  }

  /* Publication page horizontal layout becomes vertical */
  .pub-page-item {
    flex-direction: column;
  }

  .pub-page-img {
    width: 100%;
    height: auto;
  }

  .pub-img-stack .pub-page-img {
    width: 100%;
  }

  /* Gallery becomes 2 columns on tablet, 1 on phone */
  .gallery-container {
    column-count: 2;
  }

  /* Education and experience items stack better */
  .education-item,
  .experience-item {
    flex-direction: column;
    text-align: center;
  }

  .edu-logo,
  .exp-logo {
    margin-bottom: 10px;
  }

  /* Name header adjustments */
  .name-header h1 {
    font-size: 1.8em;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Navbar logo smaller on mobile */
  .navbar-logo {
    height: 40px !important;
  }

  /* Content padding */
  #quarto-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .gallery-container {
    column-count: 1;
  }

  .name-header h1 {
    font-size: 1.5em;
  }

  .pub-tags {
    justify-content: center;
  }

  .venue, .status {
    font-size: 0.7em;
    padding: 3px 8px;
  }

  .keyword {
    font-size: 0.65em;
    padding: 2px 8px;
  }
}
