/* LongXia Tech Blog - Custom Styles */
:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --secondary: #34a853;
  --accent: #fbbc05;
  --dark: #0d1117;
  --dark-light: #161b22;
  --light: #ffffff;
  --gray: #8b949e;
  --border: #30363d;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292e;
  background-color: var(--light);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: white;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title:hover {
  color: var(--primary);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}

.site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 80%;
}

/* Main content */
.page-content {
  flex: 1;
  padding: 3rem 0;
}

.page-content .wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Home page */
.home {
  animation: fadeIn 0.5s ease-out;
}

.page-heading {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

/* Posts */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color, #e1e4e8);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-link {
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.post-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Article page */
.post {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

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

.post-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.post-content h3 {
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

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

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

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

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray);
  font-style: italic;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-radius: var(--radius);
  border: 1px solid var(--border-color, #e1e4e8);
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.share-buttons a.twitter {
  background-color: #1da1f2;
}

.share-buttons a.linkedin {
  background-color: #0077b5;
}

.share-buttons a.hn {
  background-color: #ff6600;
}

.share-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 3px solid var(--primary);
}

.site-footer .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-content h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.2;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero .cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.hero .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: #f8f9fa;
}

/* Author mention styling */
.author-mention {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-style: italic;
}

.author-mention strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Technical discussion styling */
.comment-highlight {
  background-color: rgba(52, 168, 83, 0.05);
  border: 1px solid rgba(52, 168, 83, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.comment-highlight h3 {
  color: var(--secondary);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-highlight h3::before {
  content: '🤝';
  font-size: 1.2rem;
}

.comment-highlight ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.comment-highlight li {
  margin-bottom: 0.5rem;
  color: #444;
}

/* Daily report specific */
.post[class*="daily"] {
  border-left-color: var(--secondary);
  position: relative;
}

.post[class*="daily"]::before {
  content: '📅';
  position: absolute;
  top: 1rem;
  left: -2.5rem;
  font-size: 1.5rem;
  background-color: var(--secondary);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post[class*="daily"] .post-title {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post[class*="daily"] .post-title::before {
  content: '✨';
}

/* Featured cards */
.featured-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color, #e1e4e8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-card h3 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.5rem;
}

.featured-card .card-meta {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Leadership mention */
.leadership-mention {
  background: linear-gradient(135deg, rgba(251, 188, 5, 0.1) 0%, rgba(26, 115, 232, 0.1) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

/* Read more link */
.read-more {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background-color: rgba(26, 115, 232, 0.1);
  transition: all 0.2s ease;
}

.read-more:hover {
  background-color: rgba(26, 115, 232, 0.2);
  text-decoration: none;
  transform: translateX(5px);
}

/* Card meta styling */
.card-meta {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Excerpt styling */
.featured-card p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.leadership-mention::before {
  content: '👑';
  position: absolute;
  top: -1rem;
  left: 1rem;
  background-color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leadership-mention h4 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.2rem;
}

/* Animation enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post, .featured-card, .hero {
  animation: fadeInUp 0.6s ease-out;
}

/* Hover effects */
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Daily report specific - updated for positioning */
.post[class*="daily"] {
  border-left-color: var(--secondary);
  margin-left: 2rem;
}

/* Utterances comments */
.utterances {
  margin-top: 3rem !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .site-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-nav a {
    padding: 0.5rem;
  }
  
  .page-content .wrapper {
    padding: 0 1rem;
  }
  
  .post {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 1.8rem;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .site-footer .wrapper {
    grid-template-columns: 1fr;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #0d1117;
    --dark: #161b22;
    --border: #30363d;
    --text-color: #c9d1d9;
  }
  
  body {
    color: var(--text-color);
    background-color: var(--light);
  }
  
  .post-list li,
  .post {
    background-color: var(--dark-light);
    border-color: var(--border);
  }
  
  .post-title {
    color: var(--primary);
  }
}
/* Tech highlight - replaces leadership mention */
.tech-highlight {
  background: linear-gradient(135deg, rgba(52, 168, 83, 0.1) 0%, rgba(26, 115, 232, 0.1) 100%);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.tech-highlight::before {
  content: '🚀';
  position: absolute;
  top: -1rem;
  left: 1rem;
  background-color: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-highlight h4 {
  color: var(--secondary);
  margin-top: 0;
  font-size: 1.2rem;
}

/* Tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag.ai-arch {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.3);
}

.tag.automation {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(52, 168, 83, 0.3);
}

.tag.distributed {
  background-color: rgba(251, 188, 5, 0.1);
  color: #f57c00;
  border: 1px solid rgba(251, 188, 5, 0.3);
}

.tag.devops {
  background-color: rgba(155, 81, 224, 0.1);
  color: #7b1fa2;
  border: 1px solid rgba(155, 81, 224, 0.3);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tech category navigation */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tech-category {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color, #e1e4e8);
  transition: all 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.tech-category h3 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-category p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.tech-category .count {
  background-color: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: auto;
}
