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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #34274f;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(105, 43, 212, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 97, 113, 0.08) 0%,
      transparent 55%
    );
  min-height: 100vh;
  color: white;
  line-height: 1.6;
}

/* Container classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

/* Spacing utilities */
.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pt-20 {
  padding-top: 5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

/* Sizing utilities */
.w-2 {
  width: 0.5rem;
}

.w-5 {
  width: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.w-full {
  width: 100%;
}

.h-2 {
  height: 0.5rem;
}

.h-5 {
  height: 1.25rem;
}

.h-8 {
  height: 2rem;
}

.min-h-screen {
  min-height: 100vh;
}

/* Text utilities */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-green-400 {
  color: #34d399;
}

.text-blue-400 {
  color: #60a5fa;
}

.text-yellow-400 {
  color: #fbbf24;
}

.text-red-400 {
  color: #f87171;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

/* Position utilities */
.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Display utilities */
.hidden {
  display: none;
}

.inline-flex {
  display: inline-flex;
}

.block {
  display: block;
}

/* Custom styles */
.navbar-blur {
  background: rgba(54, 40, 82, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-ultra-dark {
  background: rgba(54, 40, 82, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(105, 43, 212, 0.2);
}

.glass-card {
  background: rgba(54, 40, 82, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient-animated {
  background: linear-gradient(135deg, #692bd4, #ff6171, #692bd4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #692bd4, #ff6171);
  border: 1px solid rgba(105, 43, 212, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: white;
  background-clip: padding-box;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #692bd4, #ff6171);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(105, 43, 212, 0.35);
  color: white;
  background-clip: padding-box;
}

.btn-secondary {
  background: rgba(54, 40, 82, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: white;
  background-clip: padding-box;
}

.btn-secondary:hover {
  background: rgba(54, 40, 82, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(105, 43, 212, 0.25);
  transform: translateY(-1px);
  color: white;
  background-clip: padding-box;
}

/* Logo styles */
.logo-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.logo-link {
  text-decoration: none;
  transition: none !important;
}

.logo-link:hover {
  color: inherit !important;
  background: transparent !important;
}

/* Mobile menu button fixes */
.mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Readability on dark foreground surfaces */
.glass-card .text-gray-500,
.glass-ultra-dark .text-gray-500 {
  color: #cbd5e1;
}

.glass-card .text-gray-600,
.glass-ultra-dark .text-gray-600 {
  color: #a8b1c4;
}

/* Footer contrast overrides for readability on dark backgrounds */
footer .text-gray-500,
footer .text-gray-600 {
  color: #cbd5e1;
}

footer .footer-link,
footer .footer-link:visited,
footer .footer-link:hover,
footer .footer-link:active {
  color: #cbd5e1 !important;
  text-decoration: none;
}

/* Changelog specific styles */
.changelog-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.changelog-item {
  margin-bottom: 2rem;
}

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

.changelog-version {
  color: #ff6171;
  font-size: 1.5rem;
  font-weight: 700;
}

.changelog-date {
  color: #9ca3af;
  font-size: 0.875rem;
}

.changelog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

.category-new {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.category-improved {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.category-fixed {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.category-removed {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.changelog-changes {
  list-style: none;
  padding: 0;
}

.changelog-changes li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #9ca3af;
}

.changelog-changes li::before {
  content: '•';
  color: #692bd4;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.footer-link,
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
  color: #e6e6e6;
  text-decoration: none;
}

/* Navigation animation */
.nav-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav-visible {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .container-sm {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .changelog-content {
    padding: 0 1rem;
  }

  /* Navbar mobile fixes */
  nav .container-sm {
    padding: 0 0.5rem;
  }

  .navbar-blur {
    margin: 0 0.5rem;
    padding: 0.75rem 1rem;
    width: calc(100% - 1rem);
    box-sizing: border-box;
  }

  /* Typography scaling */
  .text-5xl {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }

  .text-4xl {
    font-size: 2rem !important;
    line-height: 1.1;
  }

  .text-3xl {
    font-size: 1.75rem !important;
  }

  .text-2xl {
    font-size: 1.5rem !important;
  }

  .text-xl {
    font-size: 1.25rem !important;
  }

  /* Visibility utilities */
  .hidden-mobile {
    display: none !important;
  }

  .block-mobile {
    display: block !important;
  }

  /* Spacing adjustments */
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .p-12 {
    padding: 2rem;
  }

  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none !important;
  }

  .block-mobile {
    display: none !important;
  }

  .hidden-mobile {
    display: flex !important;
  }
}

a.no-underline {
  text-decoration: none !important;
}
