/* ShareWave Blog Custom Styles */
/* Netflix Tech Blog inspired typography with dark Pastewaves aesthetic */

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

:root {
  /* ShareWave Color System - Dark Theme */
  --background-primary: #0a0a0a;
  --background-secondary: #1a1a1a;
  --background-surface: #161616;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --border-color: #2a2a2a;
  --accent-color: #ff4800;

  /* Brand Colors */
  --soundwave-50: #fff7ed;
  --soundwave-100: #ffedd5;
  --soundwave-200: #fed7aa;
  --soundwave-300: #fdba74;
  --soundwave-400: #fb923c;
  --soundwave-500: #ff4800;
  --soundwave-600: #ea3800;
  --soundwave-700: #c22c00;
  --soundwave-800: #9a2300;
  --soundwave-900: #782200;

  --neon-50: #f0fdff;
  --neon-100: #ccf7fe;
  --neon-200: #99eefd;
  --neon-300: #5ce0fa;
  --neon-400: #00c8f0;
  --neon-500: #00b8e6;
  --neon-600: #0093be;
  --neon-700: #00759a;
  --neon-800: #005f7f;
  --neon-900: #004d68;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Gradients (Dark Mode) */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 72, 0, 0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

body::after {
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 184, 230, 0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.blog-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.blog-header h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--soundwave-500) 0%, var(--neon-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.blog-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.blog-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soundwave-500);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s;
}

.blog-header a:hover {
  color: var(--soundwave-400);
  transform: translateX(-4px);
}

/* Post Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Post Card */
.post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--soundwave-500) 0%, var(--neon-500) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 72, 0, 0.3);
  box-shadow: 0 20px 40px rgba(255, 72, 0, 0.15);
}

.post-card:hover::before {
  opacity: 1;
}

.post-date {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.post-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--soundwave-500);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soundwave-500);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9375rem;
}

.read-more:hover {
  color: var(--soundwave-400);
  transform: translateX(4px);
}

.read-more::after {
  content: '→';
  font-size: 1.125rem;
}

/* Single Post Layout */
.post-content {
  max-width: 884px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Post Content Typography - Netflix-inspired sizing */
.post-body {
  font-size: 21px;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 400;
}

.post-body h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.post-body h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.post-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.post-body p {
  margin-bottom: 1.75rem;
}

.post-body strong,
.post-body b {
  font-weight: 700;
  color: var(--text-primary);
}

.post-body em,
.post-body i {
  font-style: italic;
}

.post-body a {
  color: var(--soundwave-500);
  text-decoration: underline;
  text-decoration-color: rgba(255, 72, 0, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
}

.post-body a:hover {
  color: var(--soundwave-400);
  text-decoration-color: var(--soundwave-400);
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.post-body li::marker {
  color: var(--soundwave-500);
}

.post-body code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--neon-400);
}

.post-body pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

.post-body blockquote {
  border-left: 4px solid var(--soundwave-500);
  padding-left: 2rem;
  margin: 2.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.125em;
  line-height: 1.65;
}

.post-body img {
  max-width: none;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* First paragraph larger (Netflix style) */
.post-body > p:first-of-type {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
}

/* Categories/Tags */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  color: var(--soundwave-400);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.category-tag:hover {
  color: var(--soundwave-500);
}

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 184, 230, 0.3);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 184, 230, 0.5);
}

/* Selection */
::selection {
  background: rgba(0, 184, 230, 0.3);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .post-header h1 {
    font-size: 2rem;
  }

  .post-body {
    font-size: 18px;
  }

  .post-body h1 {
    font-size: 1.75rem;
  }

  .post-body h2 {
    font-size: 1.5rem;
  }

  .post-body h3 {
    font-size: 1.25rem;
  }

  .post-body h4 {
    font-size: 1.125rem;
  }

  .post-content {
    max-width: 100%;
  }
}
