/* Custom CSS to mimic evigbyen.github.io */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Quicksand:wght@400;700&display=swap');

:root {
  --bg-color: #f0f3f4;
  --text-color: #48545b;
  --primary-color: #4996c3;
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(10px);
}

body {
  font-family: 'Quicksand', 'Noto Serif SC', sans-serif;
  background-image: url('/images/background1.jpg'); /* Placeholder */
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  color: var(--text-color);
}

/* App Container */
.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-aside {
  width: 240px;
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Content Area */
.app-content {
  margin-left: 240px;
  flex: 1;
  padding: 40px;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Sidebar Elements */
.author-profile {
  text-align: center;
  margin-bottom: 30px;
}

/* Avatar container style */
.author-profile > a {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

/* Avatar image style */
.img-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  display: block;
}

/* "Hi" text style */
.author-profile > a::after {
  content: "Hi~";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover effect */
.author-profile > a:hover .img-circle {
  opacity: 0.1;
  transform: scale(1.1);
}

.author-profile > a:hover::after {
  opacity: 1;
}

/* Publication Block Styles */
.pub-block {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pub-block:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.5);
}

.pub-img-container {
  width: 300px;
  height: 180px;
  margin-right: 20px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background-color: white;
  display: flex; /* Enable flex layout */
  justify-content: center; /* Center images horizontally */
  align-items: center; /* Center images vertically */
}

/* Vertical stack modifier for image container */
.pub-img-container.vertical-stack {
  flex-direction: column;
}

.pub-img-container.vertical-stack .pub-img {
  width: 100%;
  height: 50%;
  object-fit: contain;
}

.pub-img-container.vertical-stack {
  flex-direction: column;
}

.pub-img-container.vertical-stack .pub-img {
  width: 100%;
  height: 50%;
  object-fit: contain; /* Ensure logos fit well */
}

.pub-content {
  flex: 1;
}

.pub-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border: 1px solid #fff;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: 0.85rem;
  color: #fff !important;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.pub-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pub-btn i {
  margin-right: 5px;
}

.pub-img {
  width: auto; /* Allow flex to control width */
  flex: 1;     /* Take available space */
  height: 100%;
  object-fit: cover;
}

.logo-img {
  object-fit: contain !important;
  background: white;
  padding: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pub-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .pub-img-container {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .pub-buttons {
    flex-wrap: wrap;
  }
}

/* Content Text Links (e.g., Prof. Huan Wang) */
.app-content p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: normal;
  transition: all 0.3s ease;
}

.app-content p a:hover {
  color: #48545b;
  font-weight: bold;
}

/* Contact Icons */
.contact-icons {
  text-align: center;
  margin: 20px 0 40px 0;
}

.contact-icons a {
  color: var(--text-color);
  font-size: 2rem;
  margin: 0 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-icons a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
  display: inline-block;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.pub-authors {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #eee;
}

.pub-venue {
  font-style: italic;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  align-items: center;
}

.pub-venue i {
  margin-right: 8px;
}

.author-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

.author-bio {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Navigation */
.nav-list {
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-item {
  margin-bottom: 5px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: #58666e;
  text-decoration: none;
  transition: background 0.3s;
  border-radius: 4px;
  font-weight: 600;
}

.nav-link:hover {
  background-color: rgba(0,0,0,0.05);
  color: #000;
  text-decoration: none;
}

.nav-link.active {
  background-color: rgba(0,0,0,0.1);
  color: #000;
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Main Content Styling */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 400;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
}

h1 { font-size: 2.5rem; border-bottom: none; }
h2 { font-size: 1.8rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* Cards / Panels */
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .app-aside {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  .app-content {
    margin-left: 0;
    padding: 20px;
  }
  
  /* Mobile Menu Button (needed later) */
  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
}