/* Blog Post Styles */
* { box-sizing: border-box; }

html, body { 
  margin: 0; 
  padding: 0; 
  color: #222; 
  font-size: 18px; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
  line-height: 1.7;
  background: #fff;
}

/* Header */
#header { 
  background: #083d8d; 
  width: 100%; 
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header > div { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
  display: flex; 
  align-items: center; 
}

#logo { 
  padding: 15px 0; 
  font-size: x-large; 
  font-weight: bold; 
  color: #fff; 
}

/* Post Header */
.post-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 50px 20px;
  border-bottom: 3px solid #083d8d;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.9em;
  margin-bottom: 20px;
  color: #666;
}

.breadcrumbs a {
  color: #083d8d;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.post-category {
  display: inline-block;
  background: #083d8d;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 20px;
}

.post-header h1 {
  font-size: 2.5em;
  line-height: 1.2;
  margin: 20px 0;
  color: #1a1a1a;
}

.post-meta {
  color: #666;
  font-size: 0.95em;
  margin: 20px 0;
}

.post-meta span {
  margin: 0 8px;
}

.post-intro {
  font-size: 1.2em;
  color: #444;
  line-height: 1.8;
  margin-top: 25px;
  padding: 20px;
  background: white;
  border-left: 4px solid #083d8d;
  border-radius: 5px;
}

/* Post Content */
.post-content {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.post-content h2 {
  font-size: 2em;
  margin: 50px 0 25px 0;
  color: #1a1a1a;
  border-bottom: 3px solid #083d8d;
  padding-bottom: 10px;
  scroll-margin-top: 80px;
}

.post-content h3 {
  font-size: 1.5em;
  margin: 35px 0 20px 0;
  color: #333;
  scroll-margin-top: 80px;
}

.post-content h4 {
  font-size: 1.2em;
  margin: 25px 0 15px 0;
  color: #444;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.post-content li strong {
  color: #083d8d;
}

.post-content a {
  color: #083d8d;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: #083d8d;
  text-decoration: none;
}

.post-content code {
  background: #f4f4f4;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #d63384;
  word-break: break-all;
}

/* Table of Contents */
.toc {
  background: #f8f9fa;
  border: 2px solid #083d8d;
  border-radius: 10px;
  padding: 25px;
  margin: 40px 0;
}

.toc h4 {
  margin-top: 0;
  color: #083d8d;
  font-size: 1.2em;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.toc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #083d8d;
  font-weight: bold;
}

.toc a {
  color: #333;
  text-decoration: none;
  border-bottom: none;
}

.toc a:hover {
  color: #083d8d;
}

/* Info Boxes */
.info-box {
  background: #e7f3ff;
  border-left: 5px solid #083d8d;
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 5px;
}

.info-box h4 {
  margin-top: 0;
  color: #083d8d;
}

.info-box p {
  margin-bottom: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #4c7b25 0%, #3a5c1c 100%);
  color: white;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 4px 15px rgba(76, 123, 37, 0.3);
}

.cta-box h3 {
  margin-top: 0;
  color: white;
  font-size: 1.8em;
}

.cta-box p {
  font-size: 1.1em;
  margin: 15px 0;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #4c7b25;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  margin-top: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: none !important;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.data-table thead tr {
  background: #083d8d;
  color: white;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 15px;
  border: 1px solid #ddd;
}

.data-table tbody tr {
  background: #fff;
}

.data-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.data-table tbody tr:hover {
  background: #e9ecef;
}

.data-table code {
  background: #fff;
  padding: 4px 8px;
}

/* Screenshot Placeholders */
.screenshot-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  padding: 60px 20px;
  text-align: center;
  margin: 30px 0;
  border-radius: 8px;
  color: #999;
  font-style: italic;
}

/* Share Buttons */
.share-buttons {
  margin: 60px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
}

.share-buttons h4 {
  margin-top: 0;
  color: #333;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.share-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border-bottom: none !important;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.linkedin {
  background: #0077B5;
  color: white;
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.email {
  background: #666;
  color: white;
}

/* Footer */
#footer { 
  padding: 40px 20px; 
  text-align: center; 
  line-height: 200%; 
  border-top: 1px solid #ddd; 
  background: #f8f9fa; 
  margin-top: 80px;
}

#footer a {
  color: #083d8d;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    font-size: 16px;
  }
  
  .post-header h1 {
    font-size: 1.9em;
  }
  
  .post-content h2 {
    font-size: 1.6em;
  }
  
  .post-content h3 {
    font-size: 1.3em;
  }
  
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    font-size: 0.85em;
  }
  
  .data-table th, .data-table td {
    padding: 10px;
  }
}