:root {
  --bg-card: #16213e;
  --bg-dark: #1a1a2e;
  --python-blue: #306998;
  --python-yellow: #ffd43b;
  --text-light: #eee;
  --text-muted: #aaa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  color: var(--text-light);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    avenir next,
    avenir,
    segoe ui,
    helvetica neue,
    helvetica,
    Cantarell,
    Ubuntu,
    roboto,
    noto,
    arial,
    sans-serif;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  margin: 0 auto;
  max-width: 900px;
}

header {
  margin-bottom: 2rem;
  text-align: center;
}

h1 {
  color: var(--python-yellow);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

a:hover {
  color: var(--python-yellow);
  text-decoration: underline;
}

#loading {
  color: var(--text-muted);
  padding: 3rem;
  text-align: center;
}

.spinner {
  animation: spin 1s linear infinite;
  border: 4px solid var(--bg-card);
  border-radius: 50%;
  border-top-color: var(--python-yellow);
  height: 40px;
  margin: 0 auto 1rem;
  width: 40px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.release-card {
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.release-card.next {
  border: 2px solid var(--python-yellow);
  position: relative;
}

.release-card.next::before {
  background: var(--python-yellow);
  border-radius: 4px;
  color: var(--bg-dark);
  content: "NEXT UP";
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  position: absolute;
  right: 16px;
  top: -10px;
}

.release-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.release-date {
  color: var(--python-yellow);
  font-size: 1.1rem;
  font-weight: 600;
}

.release-item {
  padding: 0.5rem 0;
}

.release-name {
  font-weight: 500;
}

.pep-link {
  color: var(--text-muted);
}

.days-until {
  background: var(--python-blue);
  border-radius: 20px;
  color: white;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
}

.days-until.soon {
  background: #b82318;
}

.days-until.near {
  background: #f39c12;
  color: var(--bg-dark);
}

.days-until.today {
  background: #27ae60;
}

.note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.5rem;
}

footer {
  border-top: 1px solid #333;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

footer a {
  color: var(--text-muted);
}

.no-releases {
  color: var(--text-muted);
  padding: 3rem;
  text-align: center;
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}
@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
}
