/* Pixelverse Blog Styles */
/* Uses Tailwind-compatible classes with custom CSS fallbacks */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --editor-bg: #1a1a2e;
  --editor-panel: #16213e;
  --editor-accent: #0f3460;
  --editor-highlight: #e94560;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: var(--editor-bg);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utility Classes (Tailwind-compatible) */
.bg-editor-bg { background-color: var(--editor-bg); }
.bg-editor-panel { background-color: var(--editor-panel); }
.bg-editor-accent { background-color: var(--editor-accent); }
.bg-editor-highlight { background-color: var(--editor-highlight); }

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

.border-editor-accent { border-color: var(--editor-accent); }
.border-editor-highlight { border-color: var(--editor-highlight); }

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.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-auto { margin-top: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sizing */
.w-1 { width: 0.25rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-full { width: 100%; }
.h-1 { height: 0.25rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-none { max-width: none; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* Grid */
.grid { display: grid; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: 1fr; }
  .md\:grid-cols-3 { grid-template-columns: 1fr; }
  .md\:flex-row { flex-direction: column; }
}

/* Effects */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-transform { transition: transform 0.3s ease; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-editor-highlight:hover { color: var(--editor-highlight); }
.hover\:border-editor-highlight:hover { border-color: var(--editor-highlight); }
.hover\:bg-opacity-90:hover { opacity: 0.9; }
.hover\:scale-105:hover { transform: scale(1.05); }

.group:hover .group-hover\:text-editor-highlight { color: var(--editor-highlight); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:-translate-x-1 { transform: translateX(-0.25rem); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Aspect Ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Inline Block */
.inline-block { display: inline-block; }
.block { display: block; }

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Prose Styles for Blog Content */
.prose {
  color: #d1d5db;
  max-width: none;
  font-size: 1.125rem;
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--editor-accent);
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose a {
  color: var(--editor-highlight);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.prose a:hover {
  border-bottom-color: var(--editor-highlight);
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: #e5e7eb;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.prose li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.prose ul {
  list-style-type: none;
}

.prose ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--editor-highlight);
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-left: -1.25rem;
  vertical-align: middle;
}

.prose ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.prose ol li::marker {
  color: var(--editor-highlight);
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--editor-highlight);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #e5e7eb;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  background-color: var(--editor-panel);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Consolas, 'Liberation Mono', Menlo, monospace;
  color: #f472b6;
  border: 1px solid var(--editor-accent);
}

.prose pre {
  background-color: var(--editor-panel);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--editor-accent);
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 1px solid var(--editor-accent);
}

.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--editor-accent), transparent);
  margin: 3rem 0;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

/* Prose Invert (for dark backgrounds) */
.prose-invert {
  color: #d1d5db;
}

.prose-lg {
  font-size: 1.125rem;
}

/* Additional Utilities */
.max-w-5xl { max-width: 64rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-20 { margin-top: 5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.gap-1 { gap: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-editor-highlight\/20 { box-shadow: 0 25px 50px -12px rgba(233, 69, 96, 0.2); }
.shadow-editor-highlight\/30 { box-shadow: 0 10px 15px -3px rgba(233, 69, 96, 0.3); }
.hover\:shadow-editor-highlight\/10:hover { box-shadow: 0 20px 25px -5px rgba(233, 69, 96, 0.1); }
.hover\:shadow-editor-highlight\/20:hover { box-shadow: 0 25px 50px -12px rgba(233, 69, 96, 0.2); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:translate-y-\[-4px\]:hover { transform: translateY(-4px); }
.hover\:scale-105:hover { transform: scale(1.05); }
.inline-flex { display: inline-flex; }
.pt-4 { padding-top: 1rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Gradient text */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-white { --tw-gradient-from: #fff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0)); }
.to-gray-400 { --tw-gradient-to: #9ca3af; }
.from-editor-panel { --tw-gradient-from: var(--editor-panel); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(22, 33, 62, 0)); }
.to-editor-bg { --tw-gradient-to: var(--editor-bg); }
.to-editor-accent\/30 { --tw-gradient-to: rgba(15, 52, 96, 0.3); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* Aspect ratios */
.aspect-\[21\/9\] { aspect-ratio: 21 / 9; }

/* Pixel art images - crisp blocky scaling, no blur */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Apply pixel art rendering to blog hero images */
.blog-hero-image {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Border opacity */
.border-editor-accent\/50 { border-color: rgba(15, 52, 96, 0.5); }
.bg-editor-accent\/50 { background-color: rgba(15, 52, 96, 0.5); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.max-w-xs { max-width: 20rem; }
.md\:text-5xl { font-size: 3rem; line-height: 1.1; }

/* Breadcrumb - remove list styling */
nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav[aria-label="Breadcrumb"] ol li {
  margin: 0;
  padding: 0;
}

nav[aria-label="Breadcrumb"] ol li::before {
  display: none;
  content: none;
}

/* Media Queries */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .text-5xl { font-size: 2.25rem; }
  .text-3xl { font-size: 1.5rem; }
  .p-10 { padding: 1.5rem; }
  .p-12 { padding: 2rem; }
  .mb-16 { margin-bottom: 3rem; }
  .mb-20 { margin-bottom: 4rem; }
}

/* Social Share Section */
.share-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--editor-accent);
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background: var(--editor-accent);
  color: #e5e7eb;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.share-btn:hover {
  background: var(--editor-highlight);
  color: #ffffff;
  transform: translateY(-2px);
}

.share-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (max-width: 767px) {
  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons {
    width: 100%;
  }

  .share-btn {
    flex: 1;
    justify-content: center;
    min-width: calc(50% - 0.375rem);
  }
}
