.project-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Inter", sans-serif;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-sidebar {
  flex-basis: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  /* 커스텀 스크롤바 스타일 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.project-sidebar > * {
  flex-shrink: 0;
}

/* 웹킷 기반 브라우저용 스크롤바 스타일 */
.project-sidebar::-webkit-scrollbar {
  width: 6px;
}

.project-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.project-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.project-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.project-sidebar::-webkit-scrollbar-thumb:active {
  background-color: rgba(255, 255, 255, 0.4);
}

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

.tech-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: 700;
}

/* Modal-style components */
.modal-top-section {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.modal-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgb(250, 250, 252);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
}

.modal-developer-title {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #999999;
  font-weight: 400;
  margin-bottom: 2px;
}

.modal-username {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 400;
}

.modal-category h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #999999;
  margin: 0;
  line-height: 1.5;
}

.modal-category h2 span {
  margin: 0 0.25rem;
}

.modal-project-title {
  font-family: "Lora", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.55;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-tags .tech-tag {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.modal-divider {
  border: none;
  border-top: 1px solid #404040;
  margin: 1.5rem 0;
}

.modal-period,
.modal-features-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-section-title {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-section-content {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.79;
  white-space: pre-wrap;
}

.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-features-list li {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.modal-features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: 700;
}

.project-main {
  line-height: 1.6;
  margin-top: 5rem;
}

.project-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #d5d5d5;
}

.project-images {
  display: grid;
  gap: 1rem;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-button {
  background-color: #252525;
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 0.7rem;
  font-weight: 400;
  height: 30px;
  min-height: 30px;
  min-width: 130px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  text-decoration: none;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  width: fit-content;
  box-sizing: border-box;
}

.back-button:hover {
  background: #0056b3;
  color: white;
}

/* 커스텀 버튼 스타일 */
.modal-detail-btn-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.modal-detail-btn-container .service-btn {
  width: 100%;
  text-align: center;
}

.view-detail-btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.view-detail-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* 서비스 버튼 스타일 */
.service-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 문의하기 버튼 스타일 */
.contact-button {
  margin-top: 1.5rem;
  background-color: #059669;
  border: 1px solid #10b981;
  border-radius: 6px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  height: 40px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.contact-button:hover {
  background-color: #047857;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.contact-button svg {
  width: 16px;
  height: 16px;
}

/* HTML 본문 콘텐츠 스타일 */
.project-html-content {
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  color: #cccccc;
}

.project-html-content h1,
.project-html-content h2,
.project-html-content h3,
.project-html-content h4,
.project-html-content h5,
.project-html-content h6 {
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-html-content h1 { font-size: 2rem; }
.project-html-content h2 { font-size: 1.5rem; }
.project-html-content h3 { font-size: 1.25rem; }
.project-html-content h4 { font-size: 1.1rem; }

.project-html-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.project-html-content ul,
.project-html-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project-html-content li {
  margin-bottom: 0.5rem;
}

.project-html-content a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-html-content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.project-html-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.project-html-content pre {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.project-html-content pre code {
  background-color: transparent;
  padding: 0;
}

.project-html-content blockquote {
  border-left: 3px solid #667eea;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #999999;
  font-style: italic;
}

.project-html-content img,
.project-html-content video {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 5px;
  display: block;
}

.project-html-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.project-html-content th,
.project-html-content td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  text-align: left;
}

.project-html-content th {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.project-html-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

@media (max-width: 1024px) {
  .project-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-detail-container {
    padding: 1rem;
  }

  .project-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .project-main {
    margin-top: 0;
  }
}
