/* ========================================================
   Modern Academic Homepage Design v1.0
   Clean, card-based layout with modern aesthetics
   ======================================================== */

/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  background: #f5f7fa !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Navigation Bar --- */
.navigation-wrapper {
  background: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  padding: 1em 0 !important;
  margin-bottom: 2em;
  border-radius: 16px;
  margin: 1em auto;
  max-width: 95%;
}

.site-name a {
  font-size: 1.3em !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  letter-spacing: 0.5px;
}

.site-name a::after {
  content: ' ✨';
  font-size: 0.9em;
}

.top-navigation li a {
  font-size: 0.9em !important;
  font-weight: 500 !important;
  color: #666 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5em 1em !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.top-navigation li a:hover {
  background: #f0f4ff;
  color: #4a7cff !important;
  border-bottom: none !important;
}

.top-navigation-current {
  background: #e8f0fe !important;
  color: #4a7cff !important;
  border-bottom: none !important;
}

/* --- Main Layout --- */
#main {
  background: transparent !important;
}

/* --- Left Sidebar Card --- */
.article-author-top {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 2em 1.5em !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid #e8ecf0 !important;
  position: sticky;
  top: 2em;
}

.article-author-top .bio-photo {
  width: 140px !important;
  height: 140px !important;
  border: 4px solid #f0f4ff !important;
  outline: none !important;
  box-shadow: 0 4px 16px rgba(74, 124, 255, 0.15) !important;
  margin: 0 auto 1.2em !important;
  display: block !important;
}

.article-author-top .bio-photo:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 24px rgba(74, 124, 255, 0.25) !important;
}

/* Name and Title */
.article-author-top > p:first-of-type {
  text-align: center !important;
  font-size: 1.15em !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 0.3em !important;
}

.article-author-top > p:nth-of-type(2) {
  text-align: center !important;
  font-size: 0.88em !important;
  color: #6366f1 !important;
  font-weight: 500 !important;
  margin-bottom: 1.2em !important;
}

/* Location and Institution */
.article-author-top > p:nth-of-type(3),
.article-author-top > p:nth-of-type(4) {
  text-align: center !important;
  font-size: 0.82em !important;
  color: #666 !important;
  margin-bottom: 0.4em !important;
}

/* Links Section */
.article-author-top div:first-of-type {
  margin-top: 1.5em !important;
  padding-top: 1.5em !important;
  border-top: 1px solid #f0f0f0 !important;
}

.article-author-top div:first-of-type p {
  margin-bottom: 0.6em !important;
}

.article-author-top div:first-of-type a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.6em 0.8em !important;
  border-radius: 10px !important;
  background: #f8f9fa !important;
  color: #444 !important;
  font-size: 0.85em !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
}

.article-author-top div:first-of-type a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.article-author-top div:first-of-type a:hover {
  background: #e8f0fe !important;
  border-color: #4a7cff !important;
  color: #4a7cff !important;
  transform: translateX(2px) !important;
}

.article-author-top div:first-of-type a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Research Interests in Sidebar */
.article-author-top div:last-of-type {
  margin-top: 1.5em !important;
  padding-top: 1.5em !important;
  border-top: 1px solid #f0f0f0 !important;
}

.article-author-top div:last-of-type > p:first-child {
  font-size: 0.8em !important;
  font-weight: 600 !important;
  color: #8b5cf6 !important;
  margin-bottom: 0.8em !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.article-author-top div:last-of-type > p:first-child::before {
  content: '🎓';
}

.article-author-top div:last-of-type > p:last-child {
  font-size: 0.78em !important;
  color: #666 !important;
  line-height: 1.8 !important;
}

/* --- Main Content Card --- */
.article-wrap {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 2.5em 3em !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid #e8ecf0 !important;
  margin-bottom: 1.5em !important;
}

/* --- Headings --- */
.article-wrap h1 {
  font-size: 2em !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 0.5em !important;
  margin-top: 0 !important;
}

.article-wrap h2 {
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.8em !important;
  padding-left: 0 !important;
  border-bottom: none !important;
  position: relative !important;
  padding-left: 1em !important;
}

.article-wrap h2::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-radius: 2px !important;
}

/* Special styling for first h2 (Hi there) */
.article-wrap > h2:first-of-type {
  font-size: 1.6em !important;
  color: #333 !important;
  margin-top: 0.5em !important;
  padding-left: 0 !important;
}

.article-wrap > h2:first-of-type::before {
  display: none !important;
}

.article-wrap h3 {
  font-size: 1.15em !important;
  font-weight: 600 !important;
  color: #444 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.6em !important;
  padding-left: 0 !important;
  border-left: none !important;
}

/* --- Float Picture --- */
img.floatpic {
  float: right !important;
  margin-left: 2em !important;
  margin-bottom: 1.5em !important;
  width: 280px !important;
  max-width: 35% !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border: 4px solid #f0f4ff !important;
}

/* --- Research Interests Section --- */
.article-wrap > ul:first-of-type {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.5em 0 !important;
}

.article-wrap > ul:first-of-type > li {
  background: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 1.2em 1.5em !important;
  margin-bottom: 1em !important;
  border: 1px solid #e8ecf0 !important;
  position: relative !important;
  padding-left: 4em !important;
  transition: all 0.2s ease !important;
}

.article-wrap > ul:first-of-type > li:hover {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  transform: translateY(-2px) !important;
}

.article-wrap > ul:first-of-type > li::before {
  position: absolute !important;
  left: 1.2em !important;
  top: 1.2em !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3em !important;
}

.article-wrap > ul:first-of-type > li:nth-child(1)::before {
  content: '🔗' !important;
  background: #f0f4ff !important;
}

.article-wrap > ul:first-of-type > li:nth-child(2)::before {
  content: '🎨' !important;
  background: #e8f0fe !important;
}

.article-wrap > ul:first-of-type > li:nth-child(3)::before {
  content: '📸' !important;
  background: #e8f5e9 !important;
}

.article-wrap > ul:first-of-type > li strong {
  color: #1a1a2e !important;
  font-weight: 600 !important;
}

/* --- Publication Cards --- */
.pub-card {
  background: #ffffff !important;
  border: 1px solid #e8ecf0 !important;
  border-radius: 16px !important;
  padding: 1.8em 2em !important;
  margin-bottom: 1.2em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.pub-card::before {
  display: none !important;
}

.pub-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  transform: translateY(-4px) !important;
  border-color: #d0d4d8 !important;
}

.pub-card .pub-title {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
  margin-bottom: 0.6em !important;
}

.pub-card .pub-links a {
  background: #f8f9fa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.5em 1em !important;
  font-size: 0.85em !important;
  transition: all 0.2s ease !important;
}

.pub-card .pub-links a:hover {
  background: #e8f0fe !important;
  border-color: #4a7cff !important;
  color: #4a7cff !important;
  transform: translateY(-2px) !important;
}

/* --- Badges --- */
.badge {
  padding: 4px 12px !important;
  border-radius: 12px !important;
  font-size: 0.75em !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
}

.badge-red {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.badge-blue {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.badge-green {
  background: #d1fae5 !important;
  color: #059669 !important;
}

.badge-gold {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.badge-purple {
  background: #ede9fe !important;
  color: #7c3aed !important;
}

/* --- Award List --- */
.award-list li {
  background: #f8f9fa !important;
  border: 1px solid #e8ecf0 !important;
  border-radius: 10px !important;
  padding: 0.8em 1em 0.8em 2.5em !important;
  margin-bottom: 0.6em !important;
  position: relative !important;
}

.award-list li::before {
  content: '🏆' !important;
  position: absolute !important;
  left: 0.8em !important;
  top: 0.8em !important;
  font-size: 1em !important;
}

/* --- Photo Gallery --- */
.photo-gallery {
  gap: 12px !important;
  margin: 1.5em 0 !important;
}

.photo-gallery img {
  border-radius: 12px !important;
  border: 3px solid #f0f4ff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.photo-gallery img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 24px rgba(74, 124, 255, 0.2) !important;
  border-color: #4a7cff !important;
}

/* --- Dividers --- */
.article-wrap hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent) !important;
  margin: 2em 0 !important;
}

.article-wrap hr::before {
  display: none !important;
}

/* --- Footer --- */
.footer-wrap {
  background: #1a1a2e !important;
  border-radius: 16px !important;
  margin: 2em auto 1em !important;
  max-width: 95% !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-wrap {
    padding: 1.5em 1.2em !important;
  }

  img.floatpic {
    float: none !important;
    display: block !important;
    margin: 0 auto 1.5em !important;
    max-width: 80% !important;
  }

  .navigation-wrapper {
    border-radius: 12px !important;
  }
}

/* --- Selection --- */
::selection {
  background: #e8f0fe !important;
  color: #4a7cff !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 12px !important;
}

::-webkit-scrollbar-track {
  background: #f5f7fa !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-radius: 6px !important;
  border: 2px solid #f5f7fa !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%) !important;
}
