/* Custom styles for homepage enhancements */

/* ==========================================================================
   Research Interests / Skills Tag Cloud
   ========================================================================== */

.research-interests {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
}

.research-interests h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3em;
  color: #2c3e50;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.research-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  font-size: 0.95em;
  font-weight: 500;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: default;
}

.research-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.research-tag .emoji {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* Different colors for different categories */
.research-tag.ai {
  border-left: 4px solid #667eea;
}

.research-tag.medical {
  border-left: 4px solid #f093fb;
}

.research-tag.technique {
  border-left: 4px solid #4facfe;
}

.research-tag.tool {
  border-left: 4px solid #43e97b;
}

/* ==========================================================================
   Enhanced Publication Cards
   ========================================================================== */

.publication-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.publication-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.publication-card:hover::before {
  opacity: 1;
}

.publication-title {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.4;
}

.publication-meta {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.95em;
}

.publication-meta em {
  color: #667eea;
  font-weight: 500;
}

.publication-links {
  margin: 1rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  text-decoration: none !important;
  border-radius: 18px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pub-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pub-link.code-link {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  box-shadow: 0 2px 8px rgba(56, 239, 125, 0.3);
}

.pub-link.code-link:hover {
  box-shadow: 0 4px 12px rgba(56, 239, 125, 0.4);
}

/* Venue badge */
.venue-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   News Section Enhancement
   ========================================================================== */

.news-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.news-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid #667eea;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.news-item:hover {
  background: #e9ecef;
  border-left-width: 5px;
  transform: translateX(3px);
}

.news-date {
  margin-bottom: 0.25rem;
  font-size: 0.9em;
}

.news-text {
  color: #495057;
  line-height: 1.5;
}

/* Scrollbar styling */
.news-scroll::-webkit-scrollbar {
  width: 8px;
}

.news-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .research-interests {
    padding: 1rem;
  }

  .tags-container {
    gap: 0.5rem;
  }

  .research-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85em;
  }

  .publication-card {
    padding: 1rem;
  }

  .publication-links {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Language Toggle Button
   ========================================================================== */

.language-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
  color: #667eea;
}

.lang-icon {
  font-size: 1.2em;
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

html[data-theme="dark"] .research-interests {
  background: linear-gradient(135deg, #2d3436 0%, #000000 100%) !important;
  border: 1px solid #4a5568 !important;
}

html[data-theme="dark"] .research-interests h3 {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .research-tag {
  background: #2d3748 !important;
  color: #edf2f7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .publication-card {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .publication-title {
  color: #f7fafc !important;
}

html[data-theme="dark"] .publication-meta {
  color: #cbd5e0 !important;
}

html[data-theme="dark"] .publication-meta em {
  color: #a3bffa !important;
}

html[data-theme="dark"] .news-item {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
  border-left-color: #a3bffa !important;
}

html[data-theme="dark"] .news-item:hover {
  background: #4a5568 !important;
}

html[data-theme="dark"] .news-text {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .news-date {
  color: #a3bffa !important;
}

html[data-theme="dark"] .news-scroll::-webkit-scrollbar-track {
  background: #2d3748 !important;
}

html[data-theme="dark"] .news-scroll::-webkit-scrollbar-thumb {
  background: #4a5568 !important;
}

html[data-theme="dark"] .lang-btn {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .lang-btn:hover {
  border-color: #a3bffa !important;
  color: #a3bffa !important;
  background: #1a202c !important;
}