/* ============================================
   PROJECT CARD (on history page)
   ============================================ */
.project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 15%, var(--card)),
    var(--card)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 24px var(--glow);
}
.project-card:hover::before { opacity: 1; }

.project-card__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  position: relative;
  z-index: 1;
}
.project-card__icon svg { width: 24px; height: 24px; }

.project-card__body {
  flex: 1; min-width: 0;
  position: relative; z-index: 1;
}
.project-card__title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 2px;
}
.project-card__desc {
  font-size: 12px;
  color: var(--text-secondary);
}
.project-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.project-card__arrow {
  width: 20px; height: 20px;
  color: var(--text-secondary);
  opacity: 0.4;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: all 0.3s;
}
.project-card:hover .project-card__arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateX(2px);
}

/* ============================================
   CHANGELOG PAGE — Brand Book Style
   ============================================ */
.changelog {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.changelog__header {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}
.changelog__logo-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 20px;
}
.changelog__logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  animation: changelogPulse 3s ease-in-out infinite;
}
@keyframes changelogPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.changelog__logo-bg {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
  color: #fff;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent);
  position: relative;
}
.changelog__logo-bg svg { width: 36px; height: 36px; }

.changelog__brand {
  font-size: 36px; font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.changelog__brand em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.changelog__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.changelog__version-badge {
  display: inline-flex;
  padding: 6px 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 15%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 13px; font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* Timeline */
.changelog__timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 40px;
}
.changelog__timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    color-mix(in srgb, var(--accent) 30%, transparent)
  );
  border-radius: 1px;
}

.changelog__entry {
  position: relative;
  margin-bottom: 28px;
}
.changelog__entry:last-child { margin-bottom: 0; }

.changelog__entry-dot {
  position: absolute;
  left: -24px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--text-secondary);
  z-index: 2;
}
.changelog__entry-dot--accent {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent);
}
.changelog__entry-dot--start {
  background: color-mix(in srgb, var(--accent) 40%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.changelog__entry-content {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.changelog__entry-content:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.changelog__entry-date {
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.changelog__entry-title {
  font-size: 18px; font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.changelog__entry-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.changelog__tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 8px;
  font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.changelog__tag--new {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}
.changelog__tag--improved {
  background: rgba(0, 122, 255, 0.15);
  color: #5ac8fa;
}
.changelog__tag--fix {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
}

.changelog__entry-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.changelog__entry-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.changelog__entry-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

/* Tech stack */
.changelog__tech {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 28px;
}
.changelog__tech-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.changelog__tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.changelog__tech-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.changelog__tech-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.changelog__tech-icon {
  font-size: 24px;
}
.changelog__tech-name {
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Story / intro */
.changelog__story {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 32px;
  line-height: 1.7;
}
.changelog__story p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.changelog__story p + p {
  margin-top: 12px;
}
.changelog__story strong {
  color: var(--accent);
  font-weight: 700;
}

/* Stats counters */
.changelog__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.changelog__stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 20px 8px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.changelog__stat:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.changelog__stat-num {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.changelog__stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Tech stack SVG icons */
.changelog__tech-icon-svg {
  width: 28px; height: 28px;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.changelog__tech-icon-svg svg {
  width: 24px; height: 24px;
}
.changelog__tech-desc {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.5;
  text-align: center;
}

/* Footer */
.changelog__footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.changelog__footer strong {
  color: var(--accent);
  font-weight: 700;
}
.changelog__footer-sub {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 4px;
}
.changelog__footer-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 16px;
  border-radius: 1px;
}

/* ============================================
   CHANGELOG RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .changelog__header { padding: 32px 16px 28px; }
  .changelog__logo-bg { width: 56px; height: 56px; border-radius: 16px; }
  .changelog__logo-bg svg { width: 28px; height: 28px; }
  .changelog__brand { font-size: 28px; }
  .changelog__subtitle { font-size: 13px; }
  .changelog__version-badge { font-size: 12px; padding: 5px 14px; }

  .changelog__story { padding: 18px; margin-bottom: 24px; }
  .changelog__story p { font-size: 13px; }

  .changelog__timeline { padding-left: 24px; }
  .changelog__entry-dot { left: -20px; width: 10px; height: 10px; }
  .changelog__entry-content { padding: 16px; border-radius: 14px; }
  .changelog__entry-title { font-size: 16px; }
  .changelog__entry-list li { font-size: 12px; }
  .changelog__tag { font-size: 9px; padding: 2px 8px; }

  .changelog__stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .changelog__stat { padding: 16px 8px; }
  .changelog__stat-num { font-size: 28px; }

  .changelog__tech { padding: 18px; }
  .changelog__tech-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .changelog__tech-item { padding: 10px 6px; }
  .changelog__tech-icon-svg { width: 24px; height: 24px; }
  .changelog__tech-icon-svg svg { width: 20px; height: 20px; }
  .changelog__tech-name { font-size: 10px; }

  /* Project card */
  .project-card { padding: 14px 16px; gap: 12px; border-radius: 14px; margin-bottom: 16px; }
  .project-card__icon { width: 40px; height: 40px; border-radius: 12px; }
  .project-card__icon svg { width: 20px; height: 20px; }
  .project-card__title { font-size: 14px; }
  .project-card__desc { font-size: 11px; }
}

@media (max-width: 400px) {
  .changelog__header { padding: 24px 12px 20px; }
  .changelog__logo-bg { width: 48px; height: 48px; border-radius: 14px; }
  .changelog__brand { font-size: 24px; }

  .changelog__story { padding: 14px; }
  .changelog__story p { font-size: 12px; }

  .changelog__timeline { padding-left: 20px; }
  .changelog__entry-content { padding: 14px; }
  .changelog__entry-title { font-size: 15px; }
  .changelog__entry-list li { font-size: 11px; padding-left: 16px; }

  .changelog__stats { gap: 6px; }
  .changelog__stat { padding: 14px 6px; border-radius: 12px; }
  .changelog__stat-num { font-size: 24px; }
  .changelog__stat-label { font-size: 9px; }

  .changelog__tech-grid { grid-template-columns: repeat(2, 1fr); }

  .project-card { padding: 12px; gap: 10px; border-radius: 12px; }
  .project-card__icon { width: 36px; height: 36px; border-radius: 10px; }
  .project-card__title { font-size: 13px; }
  .project-card__desc { font-size: 10px; }
  .project-card__badge { padding: 3px 8px; font-size: 10px; }
}
