/*
Theme Name: Explorer AI Hub
Theme URI: https://exploreraihub.com
Author: Explorer AI Hub Team
Author URI: https://exploreraihub.com
Description: Modern AI-focused blogging theme with integrated AI tools section, optimized for SEO, AEO, and GEO
Version: 2.0.0
License: GPL v2 or later
Text Domain: exploreraihub
Tags: ai-tools, blog, dark-mode, responsive, seo-friendly, accessibility-ready
*/

/* =====================
   TABLE OF CONTENTS
   1. CSS Variables & Base
   2. CSS Reset & Normalize
   3. Typography & Headings
   4. Accessibility & AEO
   5. Layout & Grid
   6. Components
      6.1 Glass Morphism
      6.2 Cards
      6.3 Buttons
      6.4 Forms & Inputs
      6.5 Dropdowns/Selects
   7. Navigation
   8. WordPress Specific
   9. AI Tools Styling
   10. Animations
   11. Utilities
   12. Responsive
   13. Print Styles
   ===================== */

/* =====================
   1. CSS Variables & Base
   ===================== */
:root {
  /* Brand Colors */
  --primary-purple: #8b5cf6;
  --primary-purple-dark: #7c3aed;
  --primary-cyan: #06b6d4;
  --primary-cyan-dark: #0891b2;
  --primary-pink: #ec4899;
  --primary-pink-dark: #db2777;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Dark Mode Colors */
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* =====================
   2. CSS Reset & Normalize
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.dark body {
  color: #f3f4f6;
  background-color: var(--dark-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================
   3. Typography & Headings (AEO Optimized)
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: inherit;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: var(--space-12);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
  line-height: 1.75;
}

/* AEO: Answer-first paragraph styling */
.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

.dark .lead {
  color: var(--gray-400);
}

/* =====================
   4. Accessibility & AEO
   ===================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-purple);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 100000;
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =====================
   5. Layout & Grid
   ===================== */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* =====================
   6. Components
   ===================== */

/* 6.1 Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 6.2 Cards */
.card {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.dark .card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.card-hover {
  transition: all var(--transition-slow);
  will-change: transform, box-shadow;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.dark .card-hover:hover {
  box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2);
}

/* 6.3 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  color: white;
  box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
}

.dark .btn-secondary {
  background: var(--dark-surface);
  color: white;
  border-color: var(--dark-border);
}

.btn-secondary:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* 6.4 Forms & Inputs */
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: white;
  color: inherit;
  transition: all var(--transition-base);
  outline: none;
}

.dark input,
.dark textarea,
.dark select {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: white;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 6.5 Custom Selects (Enhanced Dropdowns) */
.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}

.dark .custom-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.custom-select:hover {
  border-color: var(--primary-purple);
}

/* =====================
   7. Navigation
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  color: var(--gray-600);
  font-weight: 500;
  padding: var(--space-2) 0;
  transition: color var(--transition-base);
}

.dark .nav-link {
  color: var(--gray-400);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-4);
}

.dark .mobile-menu {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--dark-border);
}

.mobile-menu.active {
  display: block;
}

/* =====================
   8. WordPress Specific
   ===================== */
/* Alignment */
.alignleft {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Captions */
.wp-caption {
  max-width: 100%;
  margin-bottom: var(--space-4);
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: var(--space-2);
}

/* Block Editor Styles */
.wp-block-quote {
  border-left: 4px solid var(--primary-purple);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--gray-600);
}

.dark .wp-block-quote {
  color: var(--gray-400);
}

.wp-block-code {
  background: var(--gray-900);
  color: #10b981;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.wp-block-preformatted {
  background: var(--gray-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.dark .wp-block-preformatted {
  background: var(--dark-surface);
}

/* Gallery */
.gallery {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Sticky Post */
.sticky {
  position: relative;
}

.sticky::before {
  content: 'Featured';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================
   9. AI Tools Styling
   ===================== */
.tool-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-slow);
}

.tool-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.tool-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

.tool-output {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  min-height: 100px;
  display: none;
}

.dark .tool-output {
  background: var(--dark-surface);
}

.tool-output.active {
  display: block;
}

.tool-result {
  line-height: 1.8;
  font-size: 0.95rem;
}

.tool-result pre {
  background: var(--gray-900);
  color: #10b981;
  padding: var(--space-3);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--space-3) 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* =====================
   10. Animations
   ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* =====================
   11. Utilities
   ===================== */

/* Text Colors */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent-purple {
  color: var(--primary-purple);
}

.text-accent-cyan {
  color: var(--primary-cyan);
}

.text-accent-pink {
  color: var(--primary-pink);
}

/* Background Colors */
.bg-accent-purple {
  background-color: var(--primary-purple);
}

.bg-accent-cyan {
  background-color: var(--primary-cyan);
}

.bg-accent-pink {
  background-color: var(--primary-pink);
}

/* Gradients */
.gradient-purple-cyan {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
}

.gradient-cyan-pink {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-pink) 100%);
}

.gradient-purple-pink {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
}

/* Line Clamp */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* Aspect Ratios */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* Scroll Behavior */
.scroll-smooth {
  scroll-behavior: smooth;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Transitions */
.transition-colors {
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-all {
  transition: all var(--transition-base);
}

.transition-shadow {
  transition: box-shadow var(--transition-base);
}

/* Transforms */
.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

/* Shadows */
.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

.hover\:shadow-xl:hover {
  box-shadow: var(--shadow-xl);
}

/* =====================
   12. Load More Button (Specific)
   ===================== */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

.load-more-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3rem;
  transition: all var(--transition-slow);
  box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.3);
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.4);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.load-more-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =====================
   13. FAQ Accordion (AEO)
   ===================== */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.dark .faq-item {
  border-color: var(--dark-border);
}

.faq-item:hover {
  border-color: var(--primary-purple);
}

.faq-summary {
  padding: var(--space-6);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: transform var(--transition-base);
  color: var(--primary-purple);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-600);
  line-height: 1.75;
}

.dark .faq-content {
  color: var(--gray-400);
}

.faq-item[open] .faq-content {
  animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   14. Notification/Toast
   ===================== */
.notification-toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast.success {
  background: linear-gradient(135deg, var(--color-success), #059669);
}

.notification-toast.error {
  background: linear-gradient(135deg, var(--color-error), #dc2626);
}

.notification-toast.info {
  background: linear-gradient(135deg, var(--color-info), #2563eb);
}

/* =====================
   15. Hero Section
   ===================== */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* =====================
   16. Article Styling
   ===================== */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content a {
  color: var(--primary-purple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--primary-purple-dark);
}

.article-content blockquote {
  border-left: 4px solid var(--primary-purple);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--gray-600);
}

.dark .article-content blockquote {
  color: var(--gray-400);
}

/* =====================
   17. Reading Progress Bar
   ===================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
  z-index: 9999;
  transition: width 0.1s;
}

/* =====================
   18. Search Input Enhancement
   ===================== */
.search-container {
  position: relative;
}

.search-input {
  padding-left: 2.5rem;
  padding-right: 3rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-submit {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-purple);
  color: white;
  border: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-base);
}

.search-submit:hover {
  background: var(--primary-purple-dark);
  transform: translateY(-50%) scale(1.05);
}

/* =====================
   19. Responsive Design
   ===================== */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .grid-responsive {
    grid-template-columns: 1fr !important;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .stack-mobile {
    flex-direction: column !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-tablet-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1025px) {
  .grid-desktop-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .grid-desktop-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* =====================
   20. Print Styles
   ===================== */
@media print {
  .no-print,
  nav,
  footer,
  .load-more-container,
  .reading-progress,
  .notification-toast,
  .skip-link {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .glass,
  .card,
  .tool-card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  
  a {
    text-decoration: underline;
    color: #000 !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* =====================
   21. Reduced Motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-pulse,
  .animate-spin,
  .animate-float,
  .animate-gradient {
    animation: none !important;
  }
}

/* =====================
   22. Dark Mode Specific
   ===================== */
.dark .prose {
  color: #e2e8f0;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4 {
  color: #f8fafc;
}

.dark .prose a {
  color: #a78bfa;
}

.dark .prose strong {
  color: #f8fafc;
}

.dark .prose blockquote {
  border-left-color: var(--primary-purple);
  color: #94a3b8;
}

.dark .prose code {
  background: #1e293b;
  color: #e2e8f0;
}

.dark .prose pre {
  background: #0f172a;
}

/* =====================
   23. Custom Scrollbar
   ===================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.dark ::-webkit-scrollbar-track {
  background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--dark-border);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* =====================
   24. Selection Styles
   ===================== */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: inherit;
}

/* =====================
   25. Focus Visible Polyfill
   ===================== */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* =====================
   26. Utility Classes (Tailwind-like)
   ===================== */
/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.contents { display: contents; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Flex */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.m-0 { margin: 0; }
.m-4 { margin: 1rem; }
.m-8 { margin: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Width/Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }

.min-h-screen { min-height: 100vh; }
.min-h-\[100px\] { min-height: 100px; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-900 { color: var(--gray-900); }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-0 { border-width: 0; }

.border-solid { border-style: solid; }
.border-dashed { border-style: dashed; }
.border-none { border-style: none; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.translate-y-20 { --tw-translate-y: 5rem; }
.translate-y-0 { --tw-translate-y: 0; }
.scale-95 { --tw-scale-x: 0.95; --tw-scale-y: 0.95; }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.rotate-180 { --tw-rotate: 180deg; }

/* Transition */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover States */
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-gray-800:hover { background-color: var(--gray-800); }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-accent-purple:hover { color: var(--primary-purple); }

.hover\:border-accent-purple:hover { border-color: var(--primary-purple); }

.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-accent-purple:focus { border-color: var(--primary-purple); }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-accent-purple\/20:focus { --tw-ring-color: rgba(139, 92, 246, 0.2); }

/* Dark Mode */
.dark .dark\:bg-slate-800 { background-color: #1e293b; }
.dark .dark\:bg-slate-900 { background-color: #0f172a; }
.dark .dark\:border-slate-600 { border-color: #475569; }
.dark .dark\:border-slate-700 { border-color: #334155; }
.dark .dark\:text-white { color: #ffffff; }
.dark .dark\:text-gray-100 { color: #f3f4f6; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:block { display: block; }
.dark .dark\:hidden { display: none; }
.dark .dark\:hover\:bg-slate-700:hover { background-color: #334155; }
.dark .dark\:hover\:bg-slate-800:hover { background-color: #1e293b; }

/* Responsive Variants */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}