/* Bitworks Modern Dark-Tech Design System */

:root {
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-primary-glow: rgba(245, 158, 11, 0.2);
  --color-dark-bg: #070a12;
  --color-card-bg: rgba(15, 23, 42, 0.75);
  --color-card-border: rgba(51, 65, 85, 0.7);
  --color-card-hover-border: rgba(245, 158, 11, 0.5);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--color-dark-bg);
  color: #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Glassmorphism Cards */
.tech-glass-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-glass-card:hover {
  border-color: var(--color-card-hover-border);
  box-shadow: 0 12px 30px -10px var(--color-primary-glow);
  transform: translateY(-3px);
}

/* Ambient Radial Mesh Background */
.bg-ambient-mesh {
  background-color: #070a12;
  background-image: 
    radial-gradient(at 10% 10%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(37, 99, 235, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.5) 0px, transparent 100%);
  background-attachment: fixed;
}

/* Subtle Grid Background Pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glowing text and buttons */
.text-glow-amber {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.btn-primary-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 25px 0px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

/* Hero Badge */
.hero-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Quill Editor Dark Theme Overrides */
.ql-toolbar.ql-snow {
  border-color: #334155 !important;
  background-color: #0f172a !important;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: #94a3b8 !important;
}

.ql-toolbar.ql-snow .ql-fill {
  fill: #94a3b8 !important;
}

.ql-toolbar.ql-snow .ql-picker {
  color: #94a3b8 !important;
}

.ql-container.ql-snow {
  border-color: #334155 !important;
  background-color: #090d16 !important;
  color: #f1f5f9 !important;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  font-family: inherit !important;
  font-size: 0.95rem;
  min-height: 220px;
}

.ql-editor.ql-blank::before {
  color: #64748b !important;
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
