/* Extracted minimal styling to mirror app-service/src/styles/crypto.css for blog */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-green: #00ff88;
  --accent-red: #ff4757;
  --accent-blue: #3742fa;
  --border-subtle: #333333;
  --shadow-glow: rgba(0, 255, 136, 0.3);
}

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.crypto-landing { background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); min-height: 100vh; position: relative; }
.crypto-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; background: rgba(13, 13, 13, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.crypto-header a { text-decoration: none; }

.header-left { display: flex; align-items: center; gap: 1.5rem; }
.header-right { display: flex; align-items: center; gap: 1rem; }

.crypto-logo { font-family: 'Orbitron', monospace; font-size: 1.2rem; font-weight: 900; color: var(--accent-green); text-shadow: 0 0 20px var(--shadow-glow); letter-spacing: 2px; }
.crypto-logo a { color: var(--accent-green); text-decoration: none; }
.crypto-logo a:first-child { opacity: 0.85; }
.crypto-logo a + a { color: var(--accent-green); }

.cta-button, .cta-button:visited { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-green); 
  color: var(--text-primary); 
  font-family: 'Inter', sans-serif;
  font-weight: 600; 
  padding: 0 0.75rem; 
  border-radius: 6px; 
  border: 1px solid var(--accent-green); 
  box-shadow: none; 
  letter-spacing: 0.2px; 
  font-size: 0.7rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
  height: 32px;
  min-width: auto;
}
.cta-button:hover { 
  background: #00e680; 
  border-color: #00e680;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0,255,136,0.3); 
  transform: translateY(-1px); 
  letter-spacing: 0.4px;
}
.cta-button:active { 
  transform: translateY(-1px); 
  box-shadow: 0 2px 8px rgba(0,255,136,0.3); 
}

.social-icons { display: flex; align-items: center; gap: 0.5rem; }
.social-icon { 
  color: var(--text-secondary); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 32px; 
  height: 32px; 
  border: 1px solid var(--border-subtle); 
  border-radius: 6px; 
  background: rgba(26,26,26,0.7); 
  transition: all .2s ease; 
}
.social-icon:hover { 
  color: var(--text-primary); 
  border-color: var(--accent-green); 
  background: var(--accent-green);
  transform: translateY(-1px);
}

.crypto-status { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.5px; }

@media (max-width: 768px) {
  .header-left { gap: 1rem; flex-wrap: wrap; }
  .header-right { gap: 0.75rem; }
  .crypto-logo { font-size: 1rem; letter-spacing: 1.5px; }
  .cta-button, .cta-button:visited { padding: 0 0.5rem; font-size: 0.6rem; letter-spacing: 0.1px; height: 28px; min-width: auto; color: var(--text-primary); }
  .social-icon { width: 28px; height: 28px; }
  .social-icons { gap: 0.25rem; }
  .crypto-status { font-size: 0.8rem; }
  .crypto-status span { display: none; }
}
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.crypto-title { font-family: 'Orbitron', monospace; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 0.75rem; background: linear-gradient(45deg, var(--accent-green), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3)); letter-spacing: 2px; }
.crypto-subtitle { color: var(--text-secondary); font-size: 0.95rem; font-weight: 300; letter-spacing: 1px; }

.grid-overlay { position: fixed; inset: 0; background-image: linear-gradient(rgba(51,51,51,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(51,51,51,0.3) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }

.site-content { line-height: 1.7; font-feature-settings: 'kern' 1, 'liga' 1; }
.site-content h1, .site-content h2, .site-content h3 { margin-top: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.site-content h1 { font-size: 2.25rem; }
.site-content h2 { font-size: 1.75rem; }
.site-content h3 { font-size: 1.375rem; }

/* Heading fragment links - only for post content */
.post-content h1,
.post-content h2,
.post-content h3 {
  position: relative;
  scroll-margin-top: 5rem; /* Account for fixed header */
}

.post-content h1:hover .heading-anchor,
.post-content h2:hover .heading-anchor,
.post-content h3:hover .heading-anchor {
  opacity: 0.7;
}

.heading-anchor {
  color: var(--accent-green);
  font-weight: 400;
  position: absolute;
  left: -1.2em;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.heading-anchor:hover {
  opacity: 1 !important;
  color: var(--accent-green);
}
.site-content a { color: #7dcfff; }
.site-content p code, .site-content li code { color: #e6e6e6; }
.site-content blockquote { border-left: 3px solid var(--border-subtle); padding-left: 1rem; color: var(--text-secondary); font-style: italic; }
.site-content img { max-width: 100%; display: block; margin: 1rem auto; }

.post .post-content pre { background: rgba(26, 26, 26, 0.7); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1rem; overflow: auto; font-size: 0.875rem; }
.post .post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 0.875rem; }

.mermaid { background: rgba(26,26,26,0.6); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1rem; margin: 1rem 0; }

/* Blog grid layout */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

.post-tile { 
  background: rgba(26, 26, 26, 0.6); 
  border: 1px solid var(--border-subtle); 
  border-radius: 12px; 
  overflow: hidden; 
  transition: all 0.3s ease; 
  height: 280px;
}
.post-tile:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.15); 
  border-color: rgba(0, 255, 136, 0.3); 
}

.tile-link { 
  text-decoration: none; 
  color: inherit; 
  display: flex;
  height: 100%; 
}

.tile-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  min-width: 0; /* Prevents flex item from overflowing */
  justify-content: flex-start;
}

.tile-right {
  flex: 0 0 200px; /* Fixed width for image area */
  position: relative;
  overflow: hidden;
}

.tile-date { 
  color: var(--accent-green); 
  font-size: 0.8rem; 
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 4px;
  align-self: flex-start;
  line-height: 1.2;
}

.tile-content { 
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-title { 
  font-size: 1.2rem; 
  font-weight: 600; 
  margin: 0 0 0.5rem 0; 
  color: var(--text-primary); 
  line-height: 1.4; 
}

.tile-description { 
  color: var(--text-secondary); 
  line-height: 1.4; 
  margin: 0 0 1rem 0; 
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 0.5rem; /* Extra spacing from right edge */
}

.tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-tile:hover .tile-image {
  transform: scale(1.05);
}

.tile-placeholder { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 100%; 
  background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 255, 136, 0.1)); 
  color: var(--text-secondary); 
  font-weight: 600; 
  text-align: center; 
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .crypto-header { padding: 0.75rem 1rem; }
  .site-content { margin: 6rem auto 2rem !important; padding: 0 1rem !important; }
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  
  /* Ensure consistent code block font sizes on mobile */
  .post .post-content pre { font-size: 0.875rem; }
  .post .post-content code, code { font-size: 0.875rem; }
  .post .post-content pre code { font-size: 0.875rem; }
  
  .post-tile { 
    height: auto;
    min-height: 260px;
  }
  
  .tile-link { 
    flex-direction: column; 
  }
  
  .tile-left {
    padding: 1.25rem;
    order: 2;
  }
  
  .tile-right {
    flex: 0 0 160px;
    order: 1;
  }
  
  .tile-date { 
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .tile-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  .tile-description {
    font-size: 0.85rem;
    line-height: 1.4;
    padding-right: 0.25rem;
  }
}


