/* Custom Black Canyon Tickets branding - Modern Dark Theme */

/* Dark theme with glassmorphism */
:root {
  /* Dark theme colors matching main site */
  --sl-color-accent-low: rgba(59, 130, 246, 0.1);
  --sl-color-accent: #3b82f6;
  --sl-color-accent-high: #1d4ed8;
  --sl-color-white: #ffffff;
  --sl-color-gray-1: rgba(30, 41, 59, 0.8);
  --sl-color-gray-2: rgba(30, 41, 59, 0.6);
  --sl-color-gray-3: rgba(71, 85, 105, 0.5);
  --sl-color-gray-4: rgba(100, 116, 139, 0.6);
  --sl-color-gray-5: rgba(148, 163, 184, 0.7);
  --sl-color-gray-6: rgba(203, 213, 225, 0.8);
  --sl-color-black: #0f172a;
  
  /* Dark theme overrides */
  --sl-color-bg: transparent;
  --sl-color-bg-nav: rgba(255, 255, 255, 0.05);
  --sl-color-bg-sidebar: rgba(255, 255, 255, 0.05);
  --sl-color-text: rgba(255, 255, 255, 0.9);
  --sl-color-text-accent: #60a5fa;
  --sl-color-text-invert: #1e293b;
  --sl-color-bg-inline-code: rgba(255, 255, 255, 0.1);
  --sl-color-hairline: rgba(255, 255, 255, 0.2);
  --sl-color-hairline-light: rgba(255, 255, 255, 0.1);
  --sl-color-hairline-shade: rgba(255, 255, 255, 0.05);
  
  /* Custom gradient colors */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-bg: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 50%, #1e293b 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Main layout with animated background */
html {
  background: var(--gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  background: transparent;
  position: relative;
  overflow-x: hidden;
}

/* Animated background elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Glassmorphism effects */
.sl-nav,
.sidebar-pane,
.right-sidebar-container,
.sl-markdown-content,
.pagination-links,
.mobile-starlight-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Navigation styling */
.sl-nav {
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sl-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-weight: 500;
}

.sl-nav a:hover {
  color: #60a5fa;
  transform: translateY(-1px);
}

/* Sidebar styling */
.sidebar-pane {
  margin: 1rem;
  border-radius: 20px;
}

.sidebar-content {
  background: transparent;
}

.sidebar-content a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
}

.sidebar-content a:hover {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.sidebar-content a[aria-current="page"] {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
  border-left: 3px solid #60a5fa;
}

/* Content area styling */
.sl-markdown-content {
  margin: 1rem;
  padding: 2rem;
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
}

/* Typography with gradients */
.sl-markdown-content h1,
.sl-markdown-content h2,
.sl-markdown-content h3,
.sl-markdown-content h4 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.sl-markdown-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.sl-markdown-content h2 {
  font-size: 2rem;
  font-weight: 400;
}

.sl-markdown-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.sl-markdown-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Card styling with glassmorphism */
.sl-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.sl-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Code blocks with glassmorphism */
.sl-markdown-content pre {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sl-markdown-content code {
  background: rgba(255, 255, 255, 0.1);
  color: #60a5fa;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Links with gradient hover */
.sl-markdown-content a {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

.sl-markdown-content a:hover {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom-color: #60a5fa;
}

/* Buttons with gradients */
.sl-markdown-content .sl-link-button,
button,
.pagination-links a {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.sl-markdown-content .sl-link-button:hover,
button:hover,
.pagination-links a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Table styling */
.sl-markdown-content table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sl-markdown-content th {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sl-markdown-content td {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blockquotes */
.sl-markdown-content blockquote {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(8px);
}

/* Lists */
.sl-markdown-content ul,
.sl-markdown-content ol {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 1.5rem;
}

.sl-markdown-content li {
  margin: 0.5rem 0;
}

/* Search styling */
.sl-search-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.sl-search-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .sl-nav,
  .sidebar-pane,
  .sl-markdown-content {
    margin: 0.5rem;
    border-radius: 16px;
  }
  
  .sl-markdown-content {
    padding: 1rem;
  }
  
  .sl-markdown-content h1 {
    font-size: 2rem;
  }
  
  .sl-markdown-content h2 {
    font-size: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

/* Focus styles */
*:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Animation for page transitions */
.sl-markdown-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading states */
.sl-markdown-content img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.sl-markdown-content img:hover {
  transform: scale(1.02);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}