/* Portfolio image styling for better mobile experience */
.portfolio-image {
  margin: 1.5rem 0;
  text-align: center;
}

.portfolio-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.portfolio-image img:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.portfolio-image figcaption {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  color: #666;
  font-style: italic;
  line-height: 1.4;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .portfolio-image {
    margin: 1rem 0;
  }

  .portfolio-image figcaption {
    font-size: var(--text-xs);
    padding: 0 0.5rem;
  }
}

/* Ensure images don't break layout on very small screens */
@media (max-width: 480px) {
  .portfolio-image img {
    max-width: 100%;
    width: 100%;
  }
}

/* Project post styling */
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.metric {
  text-align: center;
  min-width: 120px;
}

.metric-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: bold;
  color: #4caf50;
}

.metric-label {
  display: block;
  font-size: var(--text-xs);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-section,
.processes-section {
  margin: 2rem 0;
  padding: 1rem;
  border-left: 4px solid #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.skills-list,
.processes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.skills-list li,
.processes-list li {
  padding: 0.25rem 0.75rem;
  background: #4caf50;
  color: white;
  border-radius: 20px;
  font-size: var(--text-sm);
}

.post-meta-item {
  margin-left: 1rem;
  color: #666;
  font-size: var(--text-sm);
}

.post-tag {
  background: #007acc;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag {
  background: #666;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: var(--text-xs);
  margin-right: 0.5rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.post-nav a {
  color: #007acc;
  text-decoration: none;
}

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

/* Mobile optimization for project metrics */
@media (max-width: 768px) {
  .project-metrics {
    flex-direction: column;
    text-align: center;
  }

  .skills-list,
  .processes-list {
    justify-content: center;
  }

  .post-meta-item {
    margin-left: 0;
    display: block;
    margin-top: 0.5rem;
  }
}

/* Project grid and card styling - Terminal theme style */
.projects-grid {
  display: block;
  margin: 2rem 0;
}

.project-card {
  border: 1px solid var(--accent);
  background: transparent;
  margin-bottom: 2rem;
  padding: 0;
  transition: none;
  display: block;
}

.project-preview {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid
    color-mix(in srgb, var(--foreground) 10%, transparent);
}

.project-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}

.project-preview:hover img {
  filter: grayscale(0%);
}

.project-preview.placeholder {
  background: color-mix(in srgb, var(--foreground) 5%, var(--background));
  color: var(--accent);
}

.preview-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.project-content {
  padding: 1.5rem;
}

.project-card h3 {
  margin: 0 0 1rem 0;
  font-size: var(--text-lg);
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
}

.project-card h3 a {
  color: var(--foreground);
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-meta {
  display: block;
  margin: 1rem 0;
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--foreground) 65%, transparent);
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
}

.meta-item {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.project-skills {
  margin: 1rem 0;
}

.skill-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--text-xs);
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
}

.project-summary {
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--foreground);
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: normal;
  font-family: "Fira Code", Monaco, Consolas, "Ubuntu Mono", monospace;
}

.read-more:hover {
  text-decoration: underline;
}

/* .read-more:before { */
/*   content: "→ "; */
/* } */

/* Mobile optimization for project grid */
@media (max-width: 768px) {
  .project-content {
    padding: 1rem;
  }

  .project-preview {
    height: 150px;
  }

  .meta-item {
    display: block;
    margin-bottom: 0.25rem;
    margin-right: 0;
  }
}

