/* Project List Page Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #6b6b6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.header-title {
  font-family: "Lora", serif;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  opacity: 0.9;
  justify-self: center;
}

/* Back Button */
.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;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 130px;
}

.back-button:hover {
  background-color: rgba(24, 28, 37, 0.9);
}

/* Login Button */
.login-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;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 130px;
}

.login-button:hover {
  background-color: rgba(24, 28, 37, 0.9);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  background: #181c25;
}

/* Main Container */
.project-list-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Image */
.background-image {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background-image: url("/bg/8.webp");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #181c25;
  z-index: 2;
  transition: opacity 0.6s ease;
}

/* Dark Overlay */
.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: rgba(24, 28, 37, 0.85);
  z-index: 2;
}

/* Content */
.project-list-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  padding: 5rem 2rem 3rem;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Left Column */
.left-column {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 5rem;
  align-self: flex-start;
}

.studio-name {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.page-title {
  font-family: "Lora", serif;
  font-size: 3rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 0.5rem;
  background-color: rgba(37, 37, 37, 0.5);
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  padding: 0.25rem;
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 2px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.toggle-btn:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Project Count */
.project-count {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.7;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-count span {
  font-weight: 500;
  font-size: 1.2rem;
}

/* Contact Button */
.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;
}

/* Admin New Post Button */
.admin-new-post-btn {
  margin-top: 1.5rem;
  background-color: #2563eb;
  border: 1px solid #3b82f6;
  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(37, 99, 235, 0.3);
}

.admin-new-post-btn:hover {
  background-color: #1d4ed8;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.admin-new-post-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.admin-new-post-btn svg {
  width: 16px;
  height: 16px;
}

/* Right Column */
.right-column {
  flex: 1;
  position: relative;
}

/* Grid View */
.projects-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.3s ease;
}

.projects-grid.active {
  display: grid;
}

/* Grid Card */
.project-grid-card {
  background-color: rgba(37, 37, 37, 0.5);
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-grid-card:hover {
  transform: translateY(-5px);
  border-color: #6b6b6b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #181c25;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-grid-card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 28, 37, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-grid-card:hover .card-overlay {
  opacity: 1;
}

.view-more {
  font-family: "Lora", serif;
  font-size: 0.9rem;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border: 1px solid #ffffff;
  border-radius: 2px;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-category {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
}

.card-description {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.7;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* List View */
.projects-list {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.projects-list.active {
  display: flex;
}

/* List Card */
.project-list-card {
  display: flex;
  gap: 2rem;
  background-color: rgba(37, 37, 37, 0.5);
  border: 1px solid #3f3f3f;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.project-list-card:hover {
  border-color: #6b6b6b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.list-card-image {
  flex: 0 0 200px;
  height: 140px;
  overflow: hidden;
  background-color: #181c25;
  border-radius: 2px;
}

.list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-list-card:hover .list-card-image img {
  transform: scale(1.05);
}

.list-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.list-card-category {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.list-card-title {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
}

.list-card-period {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.6;
  white-space: nowrap;
}

.list-card-description {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.8;
  line-height: 1.6;
}

.list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Tags */
.tag {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  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.25rem 0.75rem;
  white-space: nowrap;
}

/* Modal Styles (From blog_main.css) */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 1;
  padding: 2rem;
}

.project-modal-content {
  background-color: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 10px;
  max-width: 1200px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  backdrop-filter: blur(10px);
}

.project-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.project-modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 800px;
}

/* Top Section: Profile & Button */
.modal-top-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  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-contact-button {
  background-color: #404040;
  color: #999999;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: not-allowed;
  transition: background-color 0.3s ease;
}

/* Main Content: 2-Column Layout */
.modal-main-content {
  display: flex;
  gap: 2.5rem;
  flex: 1;
}

/* Left Sidebar */
.modal-sidebar {
  flex-basis: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding-right: 20px;
}

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

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

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

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

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

.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-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.modal-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background-color: transparent;
  border: 1px solid #666666;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #888888;
}

.modal-action-btn svg {
  flex-shrink: 0;
}

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

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

.modal-divider {
  border: none;
  border-top: 1px solid #404040;
  margin: 0.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;
}

/* Right Main Content */
.modal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #999999;
  font-style: italic;
}

.modal-description p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.7;
  margin: 0;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-images img {
  width: 100%;
  height: auto;
  border: 1px solid #404040;
  border-radius: 0;
  object-fit: contain;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .header-content {
    max-width: 100%;
  }

  .project-list-content {
    max-width: 100%;
    gap: 2rem;
  }

  .left-column {
    flex: 0 0 220px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .project-list-card {
    gap: 1.5rem;
  }

  .list-card-image {
    flex: 0 0 160px;
    height: 120px;
  }

  /* Modal */
  .modal-main-content {
    flex-direction: column;
    gap: 2rem;
  }

  .modal-sidebar {
    flex-basis: auto;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .header-content {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0 1rem;
  }

  .header-title {
    font-size: 0.9rem;
  }

  .back-button,
  .login-button {
    min-width: 80px;
    padding: 0 1rem;
    font-size: 0.65rem;
  }

  .project-list-content {
    flex-direction: column;
    padding: 5rem 1rem 2rem;
    gap: 2rem;
  }

  .left-column {
    position: static;
    flex: 1;
    gap: 1.5rem;
    width: inherit;
  }

  .page-title {
    font-size: 2rem;
  }

  .view-toggle {
    display: none;
  }

  .toggle-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .toggle-btn svg {
    width: 16px;
    height: 16px;
  }

  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-list {
    display: none !important;
  }

  .project-list-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .list-card-image {
    flex: 1;
    width: 100%;
    height: 180px;
  }

  .list-card-header {
    flex-direction: column;
  }

  .list-card-period {
    align-self: flex-start;
  }

  /* Modal */
  .project-modal.active {
    padding: 1rem;
    align-items: flex-start;
  }

  .project-modal-content {
    margin: 1rem 0;
  }

  .project-modal-body {
    padding: 1.5rem;
    min-height: auto;
  }

  .modal-top-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-contact-button {
    width: 100%;
  }

  .modal-main-content {
    gap: 1.5rem;
  }

  .modal-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .modal-project-title {
    font-size: 1.1rem;
  }

  .modal-action-buttons {
    flex-direction: column;
  }

  .modal-images img {
    aspect-ratio: auto;
  }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
  .header-content {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .header-title {
    font-size: 0.8rem;
  }

  .back-button,
  .login-button {
    min-width: 70px;
    padding: 0 0.75rem;
    font-size: 0.6rem;
  }

  .project-list-content {
    padding: 5rem 0.75rem 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .card-image,
  .list-card-image {
    height: 160px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .list-card-title {
    font-size: 1.2rem;
  }

  /* Modal */
  .project-modal-body {
    padding: 1rem;
  }

  .modal-project-title {
    font-size: 1rem;
  }

  .modal-profile-info {
    font-size: 0.875rem;
  }

  .modal-contact-button {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }

  .project-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    top: 1rem;
    right: 1rem;
  }
}

/* Admin Edit Button Styles */
.modal-admin-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-edit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.admin-edit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-edit-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Main order dropdown styles */
.main-order-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-order-dropdown label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a5a5a5;
}

.main-order-dropdown select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-order-dropdown select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.main-order-dropdown select:hover {
  border-color: #9ca3af;
}

/* Main order confirmation modal */
.main-order-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.main-order-modal.active {
  display: flex;
}

.main-order-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.main-order-modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-order-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.main-order-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.main-order-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.main-order-modal-body {
  padding: 1.5rem;
}

.main-order-modal-body p {
  margin: 0 0 1.5rem;
  color: #374151;
  line-height: 1.6;
}

.main-order-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.main-order-cancel-btn,
.main-order-confirm-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.main-order-cancel-btn {
  background: #f3f4f6;
  color: #374151;
}

.main-order-cancel-btn:hover {
  background: #e5e7eb;
}

.main-order-confirm-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.main-order-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile responsive for admin button */
@media (max-width: 768px) {
  .admin-edit-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }

  .admin-edit-btn svg {
    width: 14px;
    height: 14px;
  }

  .main-order-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .main-order-modal-header,
  .main-order-modal-body {
    padding: 1rem;
  }

  .main-order-modal-actions {
    flex-direction: column;
  }

  .main-order-cancel-btn,
  .main-order-confirm-btn {
    width: 100%;
  }
}

/* Modal Detail Button Styles */

.view-detail-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}

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

/* 커스텀 버튼 스타일 */
.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;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border-radius: 6px;
  font-weight: 700;
}

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

/* Tag Filter Styles */
.tag-filter-section {
  margin-top: 1.5rem;
}

.tag-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.tag-filter-btn {
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tag-filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tag-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #ffffff;
}

.tag-filter-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-filter-btn.more-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  font-size: 0.8rem;
}

.tag-filter-btn.more-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.tag-filter-btn.more-btn[data-action="collapse"] {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.tag-filter-btn.more-btn[data-action="collapse"]:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Mobile responsive for tag filter */
@media (max-width: 768px) {
  .tag-filter-buttons {
    padding: 0.75rem;
    gap: 0.375rem;
  }

  .tag-filter-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
  }

  .tag-filter-btn.more-btn {
    font-size: 0.7rem;
  }
}

/* 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;
}
