/* Modern Biolink Custom Styles */

:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: var(--font-family);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.glass-button {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Themes */
body.theme-dark_aurora {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%);
  color: #f8fafc;
}

body.theme-midnight {
  background-color: #090d16;
  background-image: 
    radial-gradient(at 50% 0%, rgba(30, 41, 59, 0.5) 0px, transparent 70%);
  color: #f1f5f9;
}

body.theme-sunset {
  background-color: #180d1e;
  background-image: 
    radial-gradient(at 0% 20%, rgba(244, 63, 94, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 80%, rgba(249, 115, 22, 0.2) 0px, transparent 50%);
  color: #fff1f2;
}

body.theme-cyberpunk {
  background-color: #080811;
  background-image: 
    radial-gradient(at 10% 10%, rgba(6, 182, 212, 0.2) 0px, transparent 40%),
    radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.2) 0px, transparent 40%);
  color: #f0fdf4;
}

body.theme-minimalist {
  background-color: #f8fafc;
  background-image: radial-gradient(at 50% 0%, rgba(226, 232, 240, 0.6) 0px, transparent 70%);
  color: #0f172a;
}

body.theme-minimalist .glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

body.theme-minimalist .glass-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.theme-minimalist .glass-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

body.theme-minimalist .glass-button {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-minimalist .glass-button:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Featured link glow animation */
@keyframes featuredGlow {
  0%, 100% {
    box-shadow: 0 0 15px -3px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 25px 2px rgba(59, 130, 246, 0.5);
  }
}

.link-featured {
  animation: featuredGlow 3s infinite ease-in-out;
  border-color: rgba(168, 85, 247, 0.45) !important;
}

/* Native dialog styling (Modern web standard) */
dialog {
  border: none;
  border-radius: 1rem;
  padding: 0;
  max-width: 90vw;
  width: 480px;
  background: transparent;
  color: inherit;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}
