/* Common CSS for matthieucourt.xyz - Preserving original styling */

/* Use browser defaults for body - don't override font family or other base styles */
body {
  margin: 0;
  padding: 0;
}

/* Container layout */
.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Keep browser defaults for typography - only override what was explicitly styled */

/* Links - preserve original visited link color from index.html */
a:visited {
  color: #0000EE;
}

/* Only basic responsive behavior for images */
img {
  max-width: 100%;
  height: auto;
}

.banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin: 0 0 20px 0;
}

.caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin: 0 0 20px 0;
}

.scaled-image {
  width: 60%;
  height: auto;
}

.centered-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.full-width-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Date and subtitle styling */
.date {
  color: #666;
  font-style: italic;
  margin-bottom: 2em;
}

.subtitle {
  color: #666;
  font-size: 1.4em;
  margin-top: -15px;
  margin-bottom: 20px;
  font-style: italic;
}

/* Code blocks and syntax highlighting */
pre.code {
  background: #f8f8f8;
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 6px;
}

pre.code code {
  font-size: 12px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  padding: 0;
  background: none;
  border: none;
}

/* Inline code */
code {
  background: #f1f1f1;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.9em;
}

/* Highlight.js overrides for better code appearance */
.hljs {
  background: #f6f8fa !important;
  color: #24292e !important;
}

.hljs-keyword {
  color: #d73a49 !important;
  font-weight: 600;
}

.hljs-string {
  color: #032f62 !important;
}

.hljs-comment {
  color: #6a737d !important;
  font-style: italic;
}

.hljs-type {
  color: #6f42c1 !important;
}

.hljs-function {
  color: #6f42c1 !important;
}

.hljs-variable {
  color: #e36209 !important;
}

/* Content boxes */
.rule-definition {
  background-color: #f0f8f0;
  padding: 8px 15px;
  margin: 15px 0;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.principle-recap {
  background-color: #f5f5f5;
  border-left: 4px solid #8B4513;
  padding: 8px 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.example-box {
  background-color: #f0f8ff;
  border: 2px solid #4169E1;
  padding: 8px 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.definition-box {
  background-color: #f0f8f0;
  border: 2px solid #228B22;
  padding: 8px 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.theorem-box {
  background-color: #fff5f5;
  border: 2px solid #DC143C;
  padding: 8px 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.rule-box {
  background-color: #f5f5f5;
  border: 2px solid #333;
  padding: 12px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.rule-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.diagram {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  border-radius: 4px;
}

/* Blockquotes */
blockquote {
  margin: 20px 0;
  padding: 0 40px;
}

/* References section */
.references {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.9em;
}

.references ol {
  padding-left: 20px;
}

.references li {
  margin-bottom: 10px;
}

/* Blog-specific styles for index page */
.blog-post {
  margin-bottom: 2rem;
}

.blog-title {
  display: inline;
  margin-right: 0.5rem;
}

.blog-date {
  font-style: italic;
  color: #666;
}

.blog-excerpt {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Contact info styles for index page */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 3rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-item span:first-child {
  min-width: 70px;
}

.monero-address {
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  position: relative;
  padding-right: 2rem;
}

.copy-button {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.copy-button:hover {
  opacity: 1;
  background: #f0f0f0;
  border-radius: 4px;
}

/* Mathematical equations styling */
.equation {
  margin: 20px 0;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.math-notation {
  font-size: 1em;
  line-height: 1.4;
  color: #222;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.3em;
  }
  
  pre.code {
    padding: 10px;
    font-size: 11px;
  }
  
  .banner {
    height: 200px;
  }
} 