/* Custom Stylesheet for Digital Store Modern Theme - Version 14.0 Rich Ambient Dark Theme */

body {
  background-color: #0b0f19 !important;
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* Ambient Radial Glow Backdrops across all pages */
body::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

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

.animate-pulse-glow {
  animation: pulseGlow 6s ease-in-out infinite;
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.glass-card {
  background: rgba(19, 27, 46, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 41, 59, 0.8);
}

.glass-header {
  background: rgba(11, 15, 25, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

/* Single Blog Article Syntax Highlighting & Rich HTML Typography */
.prose-article {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose-article h1,
.prose-article h2,
.prose-article h3,
.prose-article h4 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  letter-spacing: -0.02em;
}

.prose-article h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.4em;
}

.prose-article h3 {
  font-size: 1.3rem;
  color: #818cf8;
}

.prose-article p {
  margin-bottom: 1.25em;
}

.prose-article a {
  color: #818cf8;
  text-decoration: underline;
  font-weight: 600;
}

.prose-article a:hover {
  color: #a5b4fc;
}

.prose-article strong {
  color: #ffffff;
}

.prose-article blockquote {
  border-left: 4px solid #6366f1;
  background: rgba(30, 41, 59, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #e2e8f0;
}

.prose-article pre {
  background: #060911 !important;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #38bdf8;
  margin: 1.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.prose-article code {
  background: #1e293b;
  color: #f43f5e;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose-article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.prose-article ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-article ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-article li {
  margin-bottom: 0.5rem;
}

.wds-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
