/* portfolio details 공통 커스텀 스타일 (기존 각 페이지 <style> 중복 제거용) */
/* base: BodyManager 스타일 기반 */

/* 커스텀 스타일 */
.tech-badge {
  font-size: 0.85rem;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
}
.diagram-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #e9ecef;
  overflow-x: auto;
}
.section-title {
  border-left: 4px solid #007bff;
  padding-left: 10px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}
.screenshot-placeholder {
  width: 100%;
  height: 250px;
  background-color: #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  color: #6c757d;
  border: 2px dashed #ced4da;
}
.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.screenshot-placeholder.screenshot-auto {
  height: auto;
  overflow: visible;
  background-color: transparent;
  border: 0;
  display: block;
}
.screenshot-placeholder.screenshot-auto img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.screenshot-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* --- ZOOM MODAL STYLES --- */
/* Zoomable pointers */
.screenshot-placeholder img,
.screenshot-img,
.mermaid svg, 
.diagram-container svg {
  cursor: zoom-in;
  transition: transform 0.2s ease-in-out;
}

.screenshot-placeholder img:hover,
.screenshot-img:hover {
  transform: scale(1.02);
}

/* Modal Overlay */
.zoom-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.zoom-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Modal Content Wrapper */
.zoom-modal-content-wrapper {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.zoom-modal-content img,
.zoom-modal-content svg {
  max-width: 100%;
  max-height: 90vh; /* Leave some space */
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  background: white; /* For transparent SVGs */
  border-radius: 4px;
}

/* Close Button */
.zoom-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.zoom-close:hover,
.zoom-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Mobile Adjustments */
@media only screen and (max-width: 700px) {
  .zoom-modal-content {
    width: 100%;
  }
}
