/*
Theme Name: Mosaiq Marketing
Theme URI: https://mosaiq.marketing
Author: Mosaiq Marketing
Author URI: https://mosaiq.marketing
Description: Custom theme for Mosaiq Marketing blog, matching the main site design.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mosaiq-marketing
*/

:root {
  --primary: #d0ff4f; /* Neon Lime - approx oklch(0.88 0.25 140) */
  --primary-foreground: #1a1f0f; /* Dark text on lime */
  
  --background: #0d0e12; /* Deep Void Black/Blue - approx oklch(0.1 0.02 260) */
  --foreground: #fcfcfc; /* Crisp White */
  
  --card: #16181d; /* Slightly lighter dark */
  --card-foreground: #fcfcfc;
  
  --popover: #16181d;
  --popover-foreground: #fcfcfc;
  
  --secondary: #2a303b; /* Dark Blue-Grey */
  --secondary-foreground: #fcfcfc;
  
  --muted: #22262e;
  --muted-foreground: #a1aab8;
  
  --accent: #22262e;
  --accent-foreground: #d0ff4f;
  
  --destructive: #cc3333;
  --destructive-foreground: #ffffff;
  
  --border: #2a303b;
  --input: #2a303b;
  --ring: #d0ff4f;
  
  --radius: 0.5rem;
  
  --font-sans: "Inter", sans-serif;
  --font-heading: "Sora", sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1280px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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; }
.hidden { display: none; }
.md\:flex { display: none; }
.md\:grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:flex-row { flex-direction: row; }
}

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

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-4 { margin-left: 1rem; }
.p-0 { padding: 0; }
.p-6 { padding: 1.5rem; }
.pt-8 { padding-top: 2rem; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-style: solid; }
.border-border { border-color: var(--border); }
.border-border\/40 { border-color: rgba(42, 48, 59, 0.4); }
.border-primary { border-color: var(--primary); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.bg-background { background-color: var(--background); }
.bg-background\/80 { background-color: rgba(13, 14, 18, 0.8); }
.bg-card { background-color: var(--card); }
.bg-card\/50 { background-color: rgba(22, 24, 29, 0.5); }

.backdrop-blur { backdrop-filter: blur(8px); }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

.text-primary { color: var(--primary); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:scale-105:hover { transform: scale(1.05); }

.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; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.list-none { list-style-type: none; }
.m-0 { margin: 0; }
.col-span-full { grid-column: 1 / -1; }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  opacity: 0.9;
  color: var(--primary-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}
.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-sm {
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Blog Specific Styles */
.blog-post {
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--foreground);
}

.page-numbers.current {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Grid Pattern */
.bg-grid-pattern {
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  opacity: 0.15;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Enhanced Blog Content Typography */
.prose {
  color: var(--foreground);
  max-width: 65ch;
}

.prose-invert {
  --tw-prose-body: var(--foreground);
  --tw-prose-headings: var(--foreground);
  --tw-prose-lead: var(--muted-foreground);
  --tw-prose-links: var(--primary);
  --tw-prose-bold: var(--foreground);
  --tw-prose-counters: var(--muted-foreground);
  --tw-prose-bullets: var(--muted-foreground);
  --tw-prose-hr: var(--border);
  --tw-prose-quotes: var(--foreground);
  --tw-prose-quote-borders: var(--border);
  --tw-prose-captions: var(--muted-foreground);
  --tw-prose-code: var(--foreground);
  --tw-prose-pre-code: var(--foreground);
  --tw-prose-pre-bg: var(--card);
  --tw-prose-th-borders: var(--border);
  --tw-prose-td-borders: var(--border);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--foreground);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.75em; color: var(--primary); }
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #e0e0e0; /* Slightly softer white for readability */
}

.prose a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-type: disc;
}

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: var(--foreground);
  border-left-width: 0.25rem;
  border-left-color: var(--primary);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.prose img {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border-color: var(--border);
}

/* Layout Utilities - Missing Classes */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
