/* Article Styles - Shared CSS for all Nova Chess articles */

/* Reset and base styles */
html, body {
  margin: 0;
  background: #fff;
  color: #232340;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Article Container */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
}

/* Share Buttons */
.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px 0;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.share-label {
  font-size: 14px;
  color: #5a5a75;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f3fd;
  color: #7c3aed;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.share-button:hover {
  background: #7c3aed;
  color: white;
  transform: translateY(-1px);
}

.share-button svg {
  width: 16px;
  height: 16px;
}

.copy-feedback {
  position: absolute;
  background: #232340;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.copy-feedback.show {
  opacity: 1;
}
/* Article Typography */
.article-container h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #232340;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: -1px;
  line-height: 1.2;
}

.article-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #5a5a75;
  font-size: 0.95em;
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 2px solid #e0e0e0;
}

.article-container h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #232340;
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  letter-spacing: -0.5px;
}
.article-container h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #34495e;
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 1.3em;
  margin-bottom: 0.6em;
}

.article-container p {
  margin-bottom: 1.2em;
  text-align: justify;
  font-size: 1.1em;
}

.article-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin-top: -1.5em;
  margin-bottom: 2em;
}

.article-container ul {
  margin-bottom: 1.2em;
  font-size: 1.1em;
}

.article-container li {
  margin-bottom: 0.8em;
  line-height: 1.7;
}
.article-container strong {
  color: #232340;
  font-weight: 600;
}

.article-container a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}

.article-container a:hover {
  color: #6366f1;
  text-decoration: underline;
}

.methodology {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
  padding-top: 1em;
  margin-top: 3em;
}

.article-container hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2em 0;
}

/* Footer */
.footer {
  padding: 24px 6vw;
  font-size: 14px;
  color: #7a7c91;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edefff;
  background: #fff;
  margin-top: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.footer-right a {
  margin-left: 16px;
  color: #b0b3d8;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.15s;
}

.footer-right a:hover {
  color: #6366f1;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-left {
    gap: 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .article-container {
    padding: 40px 20px;
    overflow-x: hidden;
  }
  
  /* Prevent horizontal scrolling */
  .article-container * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Handle images */
  .article-container img {
    height: auto;
    max-width: 100%;
  }
  
  /* Handle code blocks and pre elements */
  pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
  }
  
  /* Tables should scroll horizontally if needed */
  table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
  
  .article-container h1 {
    font-size: 2em;
  }
  
  .article-container p,
  .article-container ul {
    font-size: 1em;
  }
}