﻿/* Personal academic homepage styles */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.theme-tzz,
body.theme-tzz *,
body.theme-tzz *::before,
body.theme-tzz *::after {
  box-sizing: border-box;
}

:root {
  --luka-bg: #faf9f7;
  --luka-text: #3d3929;
  --luka-accent: #c2714f;
  --luka-secondary: #8c8577;
  --luka-border: rgba(194, 113, 79, 0.2);
  --luka-shadow: rgba(194, 113, 79, 0.15);
  --luka-social-bg: #ffffff;
  --luka-social-text: #8b7355;
  --luka-footer-border: rgba(194, 113, 79, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --luka-bg: #1a1917;
    --luka-text: #d1cec7;
    --luka-accent: #e28a67;
    --luka-secondary: #9b9488;
    --luka-border: rgba(226, 138, 103, 0.2);
    --luka-shadow: rgba(0, 0, 0, 0.3);
    --luka-social-bg: #22211e;
    --luka-social-text: #d1cec7;
    --luka-footer-border: rgba(226, 138, 103, 0.15);
  }
}

[data-theme="dark"] {
  --luka-bg: #1a1917;
  --luka-text: #d1cec7;
  --luka-accent: #e28a67;
  --luka-secondary: #9b9488;
  --luka-border: rgba(226, 138, 103, 0.2);
  --luka-shadow: rgba(0, 0, 0, 0.3);
  --luka-social-bg: #22211e;
  --luka-social-text: #d1cec7;
  --luka-footer-border: rgba(226, 138, 103, 0.15);
}

[data-theme="light"] {
  --luka-bg: #faf9f7;
  --luka-text: #3d3929;
  --luka-accent: #c2714f;
  --luka-secondary: #8c8577;
  --luka-border: rgba(194, 113, 79, 0.2);
  --luka-shadow: rgba(194, 113, 79, 0.15);
  --luka-social-bg: #ffffff;
  --luka-social-text: #8b7355;
  --luka-footer-border: rgba(194, 113, 79, 0.15);
}

body.theme-tzz {
  background: var(--luka-bg);
  color: var(--luka-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-tzz a {
  color: var(--luka-accent);
  text-decoration: none;
}

body.theme-tzz a:hover {
  filter: brightness(1.15);
}

body.theme-tzz .image.avatar:hover {
  filter: none;
}

body.theme-tzz .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--luka-bg);
  border-bottom: 1px solid var(--luka-footer-border);
  z-index: 1000;
}


body.theme-tzz .nav-container {
  width: 100%;
  max-width: 1120px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



body.theme-tzz .nav-left {
  justify-self: start;
}

body.theme-tzz .nav-left a {
  color: var(--luka-accent);
  font-size: 18px;
  font-weight: 600;
}

body.theme-tzz .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}



body.theme-tzz .nav-right a {
  position: relative;
  color: var(--luka-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

body.theme-tzz .nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--luka-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

body.theme-tzz .nav-right a:hover,
body.theme-tzz .nav-right a.active {
  color: var(--luka-accent);
}

body.theme-tzz .nav-right a:hover::after,
body.theme-tzz .nav-right a.active::after {
  transform: scaleX(1);
}

body.theme-tzz .theme-toggle {
  border: none;
  background: transparent;
  color: var(--luka-text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.theme-tzz .theme-toggle:hover {
  background: var(--luka-border);
  color: var(--luka-accent);
}

body.theme-tzz .wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 100vh;
}

body.theme-tzz .sidebar {
  width: 320px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  left: calc(50% - 560px);
  height: auto;
  overflow: visible;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 60px;
  z-index: 100;
}


body.theme-tzz .profile-card {
  width: 100%;
  padding: 0 20px;
  text-align: center;
}



body.theme-tzz .image.avatar {
  display: block;
  margin: 0 auto 24px;
}

body.theme-tzz .image.avatar img {
  width: 234px;
  height: 234px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: none;
}

body.theme-tzz .image.avatar img,
body.theme-tzz .institution-logo,
body.theme-tzz .media-thumb img {
  transition: transform 0.24s ease;
  transform-origin: center center;
}

body.theme-tzz .image.avatar:hover img,
body.theme-tzz .institution-logo:hover,
body.theme-tzz .media-thumb:hover img {
  transform: scale(1.03);
}

body.theme-tzz .site-name {
  margin: 0 0 6px;
  color: var(--luka-accent);
  font-size: 30px;
  line-height: 1.2;
}

body.theme-tzz .site-name-en {
  margin: 0 0 10px;
  color: var(--luka-secondary);
  font-size: 15px;
  letter-spacing: 0.02em;
}

body.theme-tzz .site-role {
  margin: 0 auto 12px;
  max-width: 280px;
  color: var(--luka-secondary);
  font-size: 14px;
  line-height: 1.6;
}

body.theme-tzz .site-email {
  margin: 0 0 40px;
  color: var(--luka-secondary);
  font-size: 13px;
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  word-break: break-all;
}

body.theme-tzz .social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}



body.theme-tzz .social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--luka-social-bg);
  color: var(--luka-social-text) !important;
  box-shadow: 0 2px 8px rgba(61, 57, 41, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  font-size: 18px;
}


body.theme-tzz .social-icons a:hover {
  background: var(--luka-accent);
  color: #fff !important;
  transform: translateY(-2px);
}

body.theme-tzz .content {
  flex: 1;
  min-width: 0;
  margin-left: 320px;
  padding: 120px 40px 80px 60px;
}

body.theme-tzz .section {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.theme-tzz .section.visible {
  opacity: 1;
  transform: translateY(0);
}

body.theme-tzz .section-title {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--luka-accent);
  color: var(--luka-accent);
  font-size: 19px;
  font-weight: 600;
}

body.theme-tzz #about .section-body {
  max-width: 760px;
}

body.theme-tzz .section-body p {
  margin: 0 0 14px;
}

body.theme-tzz .card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.theme-tzz .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.theme-tzz .news-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--luka-footer-border);
}

body.theme-tzz .news-list li:last-child {
  border-bottom: none;
}

body.theme-tzz .news-date {
  color: var(--luka-accent);
  font-size: 13px;
  font-weight: 600;
}

body.theme-tzz .news-text {
  color: var(--luka-text);
  font-size: 14px;
}

body.theme-tzz .timeline-item {
  position: relative;
  margin-left: 34px;
  padding: 8px 16px 28px 18px;
  border: 1px dashed transparent;
  border-radius: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

body.theme-tzz .timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--luka-accent), rgba(194, 113, 79, 0.12));
}

body.theme-tzz .timeline-item:last-child::before {
  bottom: 50%;
}

body.theme-tzz .timeline-item::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--luka-accent);
  border: 2px solid var(--luka-bg);
}

body.theme-tzz .experience-item {
  display: flex;
  align-items: center;
  gap: 22px;
}

body.theme-tzz .institution-logo {
  width: 210px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

body.theme-tzz .experience-content {
  flex: 1;
}

body.theme-tzz .experience-content p {
  margin: 0 0 6px;
}

body.theme-tzz .exp-title {
  font-size: 15px;
  color: var(--luka-text);
}

body.theme-tzz .exp-detail {
  font-size: 14px;
  color: var(--luka-secondary);
}

body.theme-tzz .exp-period {
  font-size: 13px;
  color: var(--luka-accent);
  font-weight: 500;
}

body.theme-tzz .media-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.theme-tzz .media-card {
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 26px;
  align-items: stretch;
  padding: 18px 16px 22px;
  border: 1px dashed transparent;
  border-bottom: 1px solid var(--luka-footer-border);
  border-radius: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

body.theme-tzz .media-card:last-child {
  border-bottom: none;
}

body.theme-tzz .media-card:hover,
body.theme-tzz .timeline-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--luka-accent) 12%, var(--luka-border));
  background: color-mix(in srgb, var(--luka-bg) 97%, var(--luka-accent) 3%);
}

body.theme-tzz .media-thumb {
  height: 100%;
  min-height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
}


body.theme-tzz .media-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(61, 57, 41, 0.08);
}


body.theme-tzz .media-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.theme-tzz .media-title {
  margin: 0 0 8px;
  color: var(--luka-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

body.theme-tzz .media-author {
  margin-bottom: 8px;
  color: var(--luka-secondary);
  font-size: 14px;
  line-height: 1.7;
}

body.theme-tzz .media-meta {
  margin-bottom: 10px;
  color: var(--luka-accent);
  font-size: 13px;
  font-weight: 500;
}

body.theme-tzz .media-meta,
body.theme-tzz .media-meta em,
body.theme-tzz .media-meta strong {
  color: var(--luka-accent) !important;
}

body.theme-tzz .media-summary {
  margin-bottom: 10px;
  color: var(--luka-secondary);
  font-size: 14px;
  line-height: 1.75;
}

body.theme-tzz .media-note {
  margin-bottom: 12px;
  color: var(--luka-secondary);
  font-size: 13px;
  font-style: italic;
}

body.theme-tzz .media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-tzz .media-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--luka-border);
  border-radius: 999px;
  color: var(--luka-text);
  background: color-mix(in srgb, var(--luka-social-bg) 86%, transparent);
  font-size: 13px;
  font-weight: 500;
}

body.theme-tzz .media-links a:hover {
  background: var(--luka-accent);
  color: #fff;
}
body.theme-tzz .github-stars {
  display: none;
  margin-left: 6px;
  padding-left: 7px;
  border-left: 1px solid color-mix(in srgb, var(--luka-border) 68%, transparent);
  color: var(--luka-secondary);
  font-size: 12px;
  line-height: 1;
}

body.theme-tzz .github-stars.is-visible {
  display: inline-flex;
  align-items: center;
}

body.theme-tzz .media-links a:hover .github-stars {
  border-left-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}


body.theme-tzz .awards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-tzz .award-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
  padding: 4px 0;
}

body.theme-tzz .award-year {
  color: var(--luka-accent);
  font-size: 13px;
  font-weight: 600;
}

body.theme-tzz .award-text {
  color: var(--luka-text);
  font-size: 14px;
}

body.theme-tzz .site-footer {
  width: 100%;
  flex-basis: 100%;
  padding: 32px 24px 40px 380px;
  text-align: center;
}

body.theme-tzz .site-footer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--luka-footer-border);
  color: var(--luka-secondary);
  font-size: 13px;
  line-height: 1.7;
}

body.theme-tzz .template-credit {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}

body.theme-tzz h1,
body.theme-tzz h2,
body.theme-tzz h3,
body.theme-tzz h4,
body.theme-tzz strong {
  color: var(--luka-text);
}

body.theme-tzz .research-card {
  margin-top: 36px;
}

body.theme-tzz .visitor-card {
  width: min(100%, 266px);
  margin: 32px auto 0;
  padding: 24px 22px;
  border: 1px dashed rgba(194, 113, 79, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--luka-social-bg) 74%, transparent) 0%, color-mix(in srgb, var(--luka-bg) 86%, var(--luka-accent) 14%) 100%);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--luka-shadow) 55%, transparent);
}

body.theme-tzz .visitor-card-title {
  margin: 0 0 16px;
  color: var(--luka-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-tzz .visitor-card-body {
  color: var(--luka-secondary);
  font-size: 14px;
  line-height: 1.9;
}

body.theme-tzz .research-intro {
  margin: 0 0 16px;
  color: var(--luka-secondary);
}

body.theme-tzz .interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

body.theme-tzz .interest-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(194, 113, 79, 0.2);
  background: color-mix(in srgb, var(--luka-social-bg) 88%, transparent);
  color: var(--luka-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--luka-shadow) 38%, transparent);
}

@media (max-width: 1180px) {
  body.theme-tzz .nav-container {
    width: 100%;
    max-width: 1120px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.theme-tzz .site-sidebar {
    width: 300px;
    padding: 120px 28px 48px;
  }

  body.theme-tzz .content {
    margin-left: 300px;
    padding: 120px 32px 72px 44px;
  }

  body.theme-tzz .site-footer {
    padding-left: 332px;
  }
}

@media (max-width: 820px) {
  body.theme-tzz .top-nav {
    height: auto;
    align-items: stretch;
  }

  body.theme-tzz .nav-container {
    padding: 10px 16px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.theme-tzz .nav-left {
    width: 100%;
  }

  body.theme-tzz .nav-right {
    width: 100%;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.theme-tzz .nav-right::-webkit-scrollbar {
    display: none;
  }

  body.theme-tzz .nav-right a,
  body.theme-tzz .theme-toggle {
    flex: 0 0 auto;
  }

  body.theme-tzz .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 132px 24px 36px;
    border-right: none;
    left: auto;
    top: auto;
  }

  body.theme-tzz .content {
    margin-left: 0;
    padding: 36px 24px 56px;
  }

  body.theme-tzz .site-footer {
    padding: 24px 24px 36px;
  }

  body.theme-tzz .institution-logo {
    width: 160px;
    height: 52px;
  }

  body.theme-tzz .news-list li,
  body.theme-tzz .award-item,
  body.theme-tzz .media-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.theme-tzz .media-thumb {
    min-height: 220px;
  }

  body.theme-tzz .media-content {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  body.theme-tzz .section {
    margin-bottom: 34px;
  }

  body.theme-tzz .section-title {
    font-size: 18px;
  }

  body.theme-tzz .social-icons {
    gap: 10px;
  }

  body.theme-tzz .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  body.theme-tzz .experience-item {
    gap: 16px;
  }

  body.theme-tzz .institution-logo {
    width: 132px;
    height: 44px;
  }

  body.theme-tzz .visitor-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}


















body.theme-tzz .visitor-map-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-tzz .visitor-map-embed {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.theme-tzz .visitor-map-embed iframe,
body.theme-tzz .visitor-map-embed img,
body.theme-tzz .visitor-map-embed svg,
body.theme-tzz .visitor-map-embed canvas {
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

body.theme-tzz .visitor-map-embed img,
body.theme-tzz .visitor-map-embed svg,
body.theme-tzz .visitor-map-embed canvas {
  filter: sepia(0.12) saturate(0.9) hue-rotate(338deg) brightness(1.05);
}

body.theme-tzz .visitor-map-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #9f7a5b;
}

@media (max-width: 480px) {
  body.theme-tzz .visitor-map-embed iframe,
  body.theme-tzz .visitor-map-embed img {
    width: 100% !important;
    max-width: 260px;
  }
}



body.theme-tzz .visitor-map-embed a,
body.theme-tzz .visitor-map-embed iframe,
body.theme-tzz .visitor-map-embed img,
body.theme-tzz .visitor-map-embed canvas,
body.theme-tzz .visitor-map-embed svg {
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.theme-tzz .visitor-map-embed a:hover,
body.theme-tzz .visitor-map-embed iframe:hover,
body.theme-tzz .visitor-map-embed img:hover,
body.theme-tzz .visitor-map-embed canvas:hover,
body.theme-tzz .visitor-map-embed svg:hover {
  transform: translateY(-3px);
  filter: none !important;
}
