@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-bg: #161716;
  --color-surface: #1c1e1c;
  --color-surface-hover: #232623;
  --color-border: rgba(255, 246, 235, 0.08);
  --color-border-hover: rgba(255, 246, 235, 0.2);
  --color-cream: #FFF6EB;
  --color-muted: #a59f97;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: 'Inter', 'Roboto', sans-serif;
  overflow-x: hidden;
  selection-background-color: #3b82f6;
  selection-color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #111211;
}

::-webkit-scrollbar-thumb {
  background: #2f342f;
  border-radius: 9999px;
  border: 2px solid #111211;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a524a;
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(28, 30, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 246, 235, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(255, 246, 235, 0.2);
  background: rgba(35, 38, 35, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Divider with Subtle Gradient */
.subtle-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(255, 246, 235, 0.15), transparent);
}

/* Splide Custom Pagination & Arrows */
.splide__arrow {
  background: rgba(22, 23, 22, 0.8) !important;
  border: 1px solid rgba(255, 246, 235, 0.2) !important;
  color: var(--color-cream) !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
}

.splide__arrow:hover {
  background: rgba(35, 38, 35, 1) !important;
  border-color: rgba(255, 246, 235, 0.5) !important;
  transform: scale(1.08) !important;
}

.splide__arrow svg {
  fill: var(--color-cream) !important;
}

.splide__pagination__page {
  background: rgba(255, 246, 235, 0.25) !important;
  transition: all 0.3s ease !important;
}

.splide__pagination__page.is-active {
  background: var(--color-cream) !important;
  transform: scale(1.25) !important;
}

/* Dialog Backdrop & Animations */
dialog::backdrop {
  background: rgba(10, 11, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  animation: dialog-appear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Badge Glows */
.glow-emerald {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.25);
}

.glow-blue {
  box-shadow: 0 0 15px -3px rgba(59, 130, 246, 0.25);
}

.glow-rose {
  box-shadow: 0 0 15px -3px rgba(244, 63, 94, 0.25);
}