/* Project detail slide-in */
#detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#project-detail {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100%;
  background: #0a0a0a;
  border-left: 2px solid rgba(255,255,255,0.2);
  z-index: 1000;
  overflow-y: auto;
  padding: 3rem;
  box-sizing: border-box;
  transition: right 0.3s ease;
}

#project-detail.open {
  right: 0;
}

.detail-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.detail-close:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.detail-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
}

.detail-title {
  font-size: 32px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-live-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.detail-live-link:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

.detail-content {
  line-height: 1.8;
}

.detail-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text);
}

.detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--muted);
}

.detail-content p {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-content ul, .detail-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--muted);
}

.detail-content li {
  margin: 0.5rem 0;
}

.detail-content code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 13px;
}

.detail-content pre {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 3px;
  margin: 1rem 0;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #00ffff;
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 3px;
  text-transform: lowercase;
}

.detail-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}
