/* 
  Minimalista Professional Theme
  Primary Color: Prussian Blue (#003366)
  Font: Inter, Roboto, or system sans-serif
*/

:root {
  --primary-color: #003366;
  --secondary-color: #f8f9fa;
  --text-color: #1a1a1a;
  --text-light: #555555;
  --border-color: #e0e0e0;
  --code-bg: #f5f5f5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  --line-height: 1.6;
  --max-width: 900px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: var(--line-height);
  font-size: 16px;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navigation */
header {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

h1 {
  font-size: 48px;
  margin-top: 0;
}

h2 {
  font-size: 36px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 22px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 15px;
  color: var(--text-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  border-bottom: 1px solid var(--primary-color);
}

/* Main Content */
main {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.interests {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.interest-item {
  text-align: center;
}

.interest-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Blog Posts Index */
.posts-section {
  margin: 60px 0;
}

.category {
  margin-bottom: 50px;
}

.category-title {
  font-size: 24px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  margin-bottom: 25px;
}

.posts-list {
  list-style: none;
}

.post-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.post-item:hover {
  background-color: var(--secondary-color);
  padding-left: 10px;
  padding-right: 10px;
}

.post-title {
  font-weight: 600;
  color: var(--primary-color);
}

.post-date {
  color: var(--text-light);
  font-size: 14px;
  white-space: nowrap;
  margin-left: 20px;
}

/* Code */
pre, code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background-color: var(--code-bg);
  border-radius: 4px;
}

code {
  padding: 2px 6px;
  font-size: 14px;
}

pre {
  padding: 15px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 4px solid var(--primary-color);
}

pre code {
  padding: 0;
  background-color: transparent;
}

/* Blockquote */
blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--primary-color);
  background-color: var(--secondary-color);
  font-style: italic;
  color: var(--text-light);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

thead {
  background-color: var(--secondary-color);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--primary-color);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 4px;
}

/* Lists */
ul, ol {
  margin: 20px 0;
  margin-left: 30px;
}

li {
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #002244;
  border-bottom: none;
}

.btn-secondary {
  background-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  margin-top: 60px;
}

footer p {
  margin-bottom: 10px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  margin: 0 15px;
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .interests {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    padding: 40px 0;
  }

  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-date {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* MathJax Styling */
.math {
  display: block;
  text-align: center;
  margin: 20px 0;
}

/* Prism.js Code Highlighting Integration */
code[class*="language-"],
pre[class*="language-"] {
  background-color: var(--code-bg);
}

.token.comment {
  color: #999;
}

.token.string {
  color: #690;
}

.token.number {
  color: #905;
}

.token.function {
  color: var(--primary-color);
}
