/* CSS Variables */
:root {
  --green: #3AB574;
  --green-dark: #2d9660;
  --green-light: #e8f5ef;
  --purple: #6100FF;
  --purple-light: #f0e6ff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --white: #ffffff;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Body */
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  background: var(--white);
  padding: 3rem 0 2rem;
  animation: fadeIn 0.5s ease-out;
}

.header-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo-text {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-600);
  letter-spacing: -0.01em;
}

.page-title {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-subtitle {
  margin: 0.625rem 0 0 0;
  font-size: 1.0625rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* Main content */
.main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

.filter-btn {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--gray-300);
  color: var(--gray-800);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Entries - flat timeline */
.entries {
  display: flex;
  flex-direction: column;
}

/* Entry - no card, just content */
.entry {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.4s ease-out both;
}

.entry:nth-child(1) { animation-delay: 0.15s; }
.entry:nth-child(2) { animation-delay: 0.2s; }
.entry:nth-child(3) { animation-delay: 0.25s; }
.entry:nth-child(4) { animation-delay: 0.3s; }
.entry:nth-child(5) { animation-delay: 0.35s; }
.entry:nth-child(6) { animation-delay: 0.4s; }
.entry:nth-child(7) { animation-delay: 0.45s; }
.entry:nth-child(8) { animation-delay: 0.5s; }

.entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Entry header */
.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new {
  background: var(--green-light);
  color: var(--green-dark);
}

.badge-improved {
  background: var(--purple-light);
  color: var(--purple);
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.date {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 400;
}

.entry-title {
  margin: 0 0 1.25rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 8px;
  background: var(--gray-100);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Entry content */
.entry-content {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
  margin-top: 0;
}

.entry-content h2 {
  font-size: 1rem;
}

.entry-content h3 {
  font-size: 0.9375rem;
}

.entry-content p {
  margin: 0 0 1rem 0;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.entry-content ul:last-child,
.entry-content ol:last-child {
  margin-bottom: 0;
}

.entry-content li {
  margin-bottom: 0.25rem;
}

.entry-content li::marker {
  color: var(--green);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.entry-content a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.entry-content a:hover {
  text-decoration: underline;
}

.entry-content strong {
  color: var(--gray-800);
  font-weight: 600;
}

.entry-content code {
  background: var(--gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'SF Mono', Monaco, monospace;
}

.entry-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.entry-content blockquote {
  margin: 1.25rem 0;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  border-radius: 0 6px 6px 0;
}

.entry-content blockquote p {
  margin: 0;
}

/* Footer */
.footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8125rem;
  animation: fadeIn 0.4s ease-out 0.5s both;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    padding: 2rem 0 1.5rem;
  }

  .header-content,
  .main,
  .footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .entry {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .entry-title {
    font-size: 1.375rem;
  }

  .entry-header {
    gap: 0.375rem;
  }

  .badge,
  .category-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
