/* Project-specific styles */

/* Projects listing grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card-link,
.project-card-link:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.project-card-link:hover .project-card {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px #58a6ff;
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  flex: 1;
  min-width: 0;
  color: #c9d1d9;
}

.project-card-link:hover .project-card-header h2 {
  color: #58a6ff;
}

.project-card-summary {
  color: #8b949e;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.project-card .project-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.project-card .tech-stack {
  margin-top: 0.5rem;
}

/* Individual project page styles */
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.project-status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-planning {
  background-color: #1f6feb26;
  color: #58a6ff;
  border: 1px solid #1f6feb;
}

.status-active {
  background-color: #23863326;
  color: #3fb950;
  border: 1px solid #238633;
}

.status-on-hold {
  background-color: #9e6a0326;
  color: #d29922;
  border: 1px solid #9e6a03;
}

.status-maintenance {
  background-color: #bc4c0026;
  color: #f0883e;
  border: 1px solid #bc4c00;
}

.status-archived {
  background-color: #6e768166;
  color: #8b949e;
  border: 1px solid #6e7681;
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background-color: #21262d;
  color: #8b949e;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  border: 1px solid #30363d;
}

.project-link {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.source-link {
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
}

.source-link:hover {
  background-color: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

.demo-link {
  background-color: #1f6feb;
  color: #ffffff;
  border: 1px solid #388bfd;
}

.demo-link:hover {
  background-color: #388bfd;
  border-color: #58a6ff;
}

/* Latest log entry preview */
.latest-log-entry {
  margin-top: 2rem;
}

.latest-log-entry h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #c9d1d9;
}

.log-entry-preview {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1.25rem;
}

.log-entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.log-entry-header a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.log-entry-header a:hover {
  color: #79c0ff;
}

.log-entry-header time {
  color: #8b949e;
  font-size: 0.85rem;
  font-family: monospace;
  white-space: nowrap;
}

.log-entry-summary {
  color: #8b949e;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.project-bottom-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #21262d;
}

@media (max-width: 768px) {
  .project-bottom-columns {
    grid-template-columns: 1fr;
  }
}

.project-posts h2,
.project-pages h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #c9d1d9;
}

.post-list,
.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.post-item:hover {
  background-color: #161b22;
}

.post-date {
  color: #8b949e;
  font-size: 0.875rem;
  font-family: monospace;
  white-space: nowrap;
}

.post-item a,
.page-list a {
  color: #58a6ff;
  text-decoration: none;
}

.post-item a:hover,
.page-list a:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.page-list li {
  padding: 0.5rem 0;
}

/* Search nudge + section */
.project-nudge {
  color: #6e7681;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-search {
  margin-top: 3rem;
}

.project-search-form {
  display: flex;
}

.project-search-input {
  background-color: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  width: 100%;
  border-radius: 6px;
}

.project-search-input:focus {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  border-color: #58a6ff;
}
