@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,300;1,400;1,700&display=swap');

:root {
  --font-global: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-obsidian: #070c09;
  --bg-emerald-deep: #0b1710;
  --gold-accent: #dfb76c;
  --gold-glow: rgba(223, 183, 108, 0.25);
  --emerald-translucent: rgba(16, 185, 129, 0.12);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-surface: rgba(18, 30, 24, 0.55);
}

* {
  font-family: var(--font-global);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  color: #f3f4f6;
  overflow-x: hidden;
  position: relative;
}

/* Translucent Background Gradients */
.bg-ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(22, 101, 52, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(223, 183, 108, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(20, 83, 45, 0.2) 0%, transparent 40%);
}

/* Classical Glassmorphism Surfaces */
.glass-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-panel-gold {
  background: rgba(35, 28, 16, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 183, 108, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(223, 183, 108, 0.2);
}

.glass-input {
  background: rgba(10, 18, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-input:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 20px var(--gold-glow);
  background: rgba(15, 26, 19, 0.8);
}

/* Translucent Button Effects */
.btn-gold-translucent {
  background: linear-gradient(135deg, rgba(223, 183, 108, 0.95), rgba(184, 138, 56, 0.9));
  color: #0d1611;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(223, 183, 108, 0.3);
  transition: all 0.3s ease;
}

.btn-gold-translucent:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(223, 183, 108, 0.45);
  background: linear-gradient(135deg, #ebd193, #c59746);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
  transition: all 0.25s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Subtle Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-shimmer {
  position: relative;
  overflow: hidden;
}

.animate-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 3s infinite;
}

/* Modal Animations */
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-animate-enter {
  animation: modalEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #09120c;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}
