/* ==========================================================================
   sneedPro Design System
   Palette: Deep Blacks, Ambient Lavender/Light Purple, Soft Rose/Light Red
   ========================================================================== */

:root {
  --bg-deep: #08070d;
  --bg-subtle: #0f0c18;
  --bg-card: rgba(23, 17, 36, 0.4);
  --bg-card-hover: rgba(30, 22, 48, 0.6);

  --purple-light: #e9d5ff;
  --purple-accent: #c084fc;
  --purple-dim: #9333ea;
  --purple-glow: rgba(192, 132, 252, 0.15);

  --red-light: #fecdd3;
  --red-accent: #fb7185;
  --red-dim: #e11d48;
  --red-glow: rgba(251, 113, 133, 0.13);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.07);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Global Link Reset to prevent browser default blue/visited styling */
a, a:link, a:visited {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Ambient Background Glows
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.glow-purple {
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
}

.glow-red {
  top: 35%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
}

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 7, 13, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-dot {
  color: var(--purple-accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--purple-light);
}

.nav-external {
  color: var(--red-accent);
}

.nav-external:hover {
  color: var(--red-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  width: 100%;
}

.hero-section {
  margin-bottom: 4.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--red-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-accent);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text-main);
}

.gradient-text-purple {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-accent) 60%, var(--red-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.text-highlight {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Hero Action Cards (sneedBot & GitHub)
   ========================================================================== */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.action-card {
  text-decoration: none;
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: inherit;
  display: block;
}

.action-card:link, .action-card:visited, .action-card:hover, .action-card:active {
  text-decoration: none;
}

.card-purple {
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.08) 0%, rgba(20, 15, 30, 0.6) 100%);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.card-purple .action-desc {
  color: #d8b4fe; /* Lighter pastel purple matching background */
  transition: color 0.2s ease;
}

.card-purple:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.14) 0%, rgba(26, 18, 42, 0.8) 100%);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.2);
}

.card-purple:hover .action-desc {
  color: #f3e8ff; /* Brighter lavender on hover */
}

.card-red {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.08) 0%, rgba(25, 14, 20, 0.6) 100%);
  border: 1px solid rgba(251, 113, 133, 0.22);
}

.card-red .action-desc {
  color: #fda4af; /* Lighter pastel red/rose matching background */
  transition: color 0.2s ease;
}

.card-red:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.14) 0%, rgba(35, 17, 26, 0.8) 100%);
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow: 0 10px 25px -5px rgba(251, 113, 133, 0.18);
}

.card-red:hover .action-desc {
  color: #ffe4e6; /* Brighter rose on hover */
}

.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.action-icon {
  font-size: 1.5rem;
}

.action-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.card-purple .action-badge {
  background: rgba(192, 132, 252, 0.15);
  color: var(--purple-light);
}

.card-red .action-badge {
  background: rgba(251, 113, 133, 0.15);
  color: var(--red-light);
}

.action-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.action-desc {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Timeline & Soft-Blending Posts Stream
   ========================================================================== */
.timeline-section {
  position: relative;
  padding-top: 2rem;
}

.timeline-header {
  margin-bottom: 2.5rem;
}

.timeline-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text-main);
}

.timeline-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.timeline-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Vertical ambient guide line */
.timeline-stream::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, 
    var(--purple-accent) 0%, 
    rgba(192, 132, 252, 0.3) 30%, 
    rgba(251, 113, 133, 0.2) 70%, 
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.5;
}

/* Blended Post Block: No rigid box borders, organic gradient fade */
.post-block {
  position: relative;
  margin-left: 3.25rem;
  padding: 1.85rem 2.25rem;
  border-radius: 20px;
  background: radial-gradient(ellipse at top left, rgba(192, 132, 252, 0.05) 0%, transparent 65%),
              linear-gradient(175deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 12, 24, 0.35) 60%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.3s ease, border-color 0.3s ease;
}

.post-block:hover {
  background: radial-gradient(ellipse at top left, rgba(192, 132, 252, 0.08) 0%, transparent 70%),
              linear-gradient(175deg, rgba(255, 255, 255, 0.05) 0%, rgba(22, 16, 36, 0.5) 60%, transparent 100%);
  border-color: rgba(192, 132, 252, 0.2);
  transform: translateX(4px);
}

/* Timeline anchor dot */
.post-block::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 2.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--purple-accent);
  box-shadow: 0 0 10px var(--purple-accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.post-block:hover::before {
  transform: scale(1.3);
  background: var(--red-accent);
  border-color: var(--red-accent);
  box-shadow: 0 0 12px var(--red-accent);
}

.post-header {
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 500;
}

.date-bullet {
  color: var(--red-accent);
  margin-right: 0.25rem;
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.post-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.3;
}

.post-summary {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   Markdown Post Content Styling
   ========================================================================== */
.post-body {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.post-body p {
  margin: 0 0 1.25rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.post-body h1 { font-size: 1.5rem; }
.post-body h2 { font-size: 1.35rem; }
.post-body h3 { font-size: 1.2rem; }

.post-body a, .post-body a:visited {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(233, 213, 255, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

.post-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--red-light);
}

.post-body pre {
  background: rgba(10, 8, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--purple-light);
  font-size: 0.9em;
}

.post-body blockquote {
  margin: 1rem 0 1.25rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--purple-accent);
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Interactive Mascot Companion Container
   ========================================================================== */
.pipes-companion {
  position: fixed;
  top: 0;
  left: 0;
  width: 76px;
  height: 64px;
  z-index: 100;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
  will-change: transform;
  pointer-events: auto;
}

.pipes-companion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform-origin: 50% 85%;
}

.pipes-speech-bubble {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 10, 24, 0.95);
  color: var(--text-main);
  border: 1px solid var(--purple-accent);
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.pipes-speech-bubble.active {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@keyframes pipesShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, -2px) rotate(-3deg); }
  75% { transform: translate(3px, 2px) rotate(3deg); }
}

.pipes-companion.shaking img {
  animation: pipesShake 0.1s infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 7, 13, 0.9);
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--purple-light);
}

.footer-link {
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 680px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .timeline-stream::before {
    left: 10px;
  }

  .post-block {
    margin-left: 2rem;
    padding: 1.25rem 1.25rem;
  }

  .post-block::before {
    left: -1.65rem;
    width: 10px;
    height: 10px;
  }

  .pipes-companion {
    width: 56px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}
