/* ===== Custom Styles for Noahgeek.github.io ===== */

/* --- Project Showcase Section --- */
.projects-section {
  margin-bottom: 40px;
  padding: 20px 30px;
  background: var(--card-bg-color, #f5f5f5);
  border-radius: 4px;
}

.projects-section h2 {
  font-size: 1.4em;
  margin: 0 0 20px 0;
  color: var(--text-color, #555);
  border-left: 4px solid #222;
  padding-left: 12px;
}

.project-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--content-bg-color, #fff);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

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

.project-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  background: #f0f0f0;
  border-radius: 12px;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.2em;
}

.project-info h3 a {
  color: var(--link-color, #555);
  text-decoration: none;
}

.project-info h3 a:hover {
  color: var(--link-hover-color, #222);
}

.project-desc {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #777;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78em;
  background: #e8e8e8;
  color: #555;
  border-radius: 12px;
}

.project-tag.highlight {
  background: #222;
  color: #fff;
}

/* --- Blog Post Content --- */
.post-body p {
  line-height: 1.8;
  margin: 1em 0;
}

.post-body h2 {
  font-size: 1.4em;
  margin: 1.5em 0 0.8em;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.post-body h3 {
  font-size: 1.15em;
  margin: 1.2em 0 0.6em;
}

.post-body ul, .post-body ol {
  line-height: 1.8;
  padding-left: 2em;
}

.post-body li {
  margin: 0.4em 0;
}

.post-body code {
  padding: 2px 6px;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 0.9em;
  color: #c7254e;
}

.post-body pre {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  line-height: 1.5;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}

.post-body th, .post-body td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.post-body th {
  background: #f5f5f5;
  font-weight: 600;
}

.post-body blockquote {
  border-left: 4px solid #222;
  padding: 10px 16px;
  margin: 1em 0;
  background: #f9f9f9;
  color: var(--blockquote-color, #666);
}

.post-body blockquote p {
  margin: 0;
}

.post-body img {
  max-width: 100%;
  border-radius: 4px;
}

.post-body a {
  color: #0366d6;
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .project-tags {
    justify-content: center;
  }
}
