/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Main ===== */
.main {
  min-height: calc(100vh - 60px);
  padding: 3rem 2rem;
  background:
    radial-gradient(circle, rgba(37,99,235,0.12) 1px, transparent 1px) 0 0 / 24px 24px;
}

[data-theme="dark"] .main {
  background:
    radial-gradient(circle, rgba(59,130,246,0.15) 1px, transparent 1px) 0 0 / 24px 24px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease both;
}

.title {
  font-family: var(--site-font-mono, "JetBrains Mono", monospace);
  font-size: 2.2rem;
  color: var(--ifm-color-primary);
  margin-bottom: 0.25rem;
}

.subtitle {
  font-family: var(--site-font-mono, "JetBrains Mono", monospace);
  font-size: 0.95rem;
  color: var(--ifm-color-emphasis-600);
  margin-bottom: 2.5rem;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.workCard {
  display: block;
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--ifm-background-surface-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-left: 3px solid var(--ifm-color-primary);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  animation: fadeInUp 0.5s ease both;
}

.workCard:nth-child(1) { animation-delay: 0.1s; }
.workCard:nth-child(2) { animation-delay: 0.2s; }
.workCard:nth-child(3) { animation-delay: 0.3s; }
.workCard:nth-child(4) { animation-delay: 0.4s; }

.workCard:hover {
  border-color: var(--ifm-color-primary);
  border-left-color: var(--ifm-color-primary);
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(37,99,235,0.25);
  text-decoration: none;
  color: inherit;
}

[data-theme="dark"] .workCard:hover {
  box-shadow: 0 0 16px rgba(59,130,246,0.25);
}

.workName {
  font-family: var(--site-font-mono, "JetBrains Mono", monospace);
  font-size: 1.15rem;
  margin: 0 0 0.6rem 0;
}

.workDescription {
  font-size: 0.9rem;
  color: var(--ifm-color-emphasis-700);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.workTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workTag {
  font-family: var(--site-font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  background: transparent;
  color: var(--ifm-color-primary);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ifm-color-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .title { font-size: 1.8rem; }
  .main { padding: 2rem 1rem; }
}
