@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); }
  50% { box-shadow: 0 0 25px rgba(249, 115, 22, 0.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-reverse { animation: float-reverse 6s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.glass {
  background: rgba(45, 40, 68, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-twilight-900);
}
::-webkit-scrollbar-thumb {
  background: var(--color-senja-500);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-senja-400);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #fff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose p, .prose ul, .prose ol {
  margin-bottom: 1.25em;
  line-height: 1.75;
}
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose a {
  color: var(--color-senja-400);
  text-decoration: none;
  transition: all 0.2s;
}
.prose a:hover {
  text-decoration: underline;
  color: var(--color-senja-300);
}
.prose blockquote {
  border-left: 4px solid var(--color-senja-500);
  background: var(--color-twilight-800);
  padding: 1rem 1.5rem;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}
.prose img {
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  margin: 2em auto;
  display: block;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}
.prose th, .prose td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  text-align: left;
}
.prose th {
  background: var(--color-twilight-700);
  font-weight: 600;
}
.prose tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.prose code:not(pre code) {
  background: var(--color-twilight-700);
  color: var(--color-senja-300);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.prose pre {
  background: var(--color-twilight-900) !important;
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  position: relative;
  margin: 1.5em 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.prose pre code {
  background: transparent !important;
  padding: 0;
  font-size: 0.875em;
  color: inherit;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 0.375rem;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}
.prose pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--color-senja-500); }
