

body {
  font-family: 'Pretendard', sans-serif;
  background: linear-gradient(135deg, #f8fbf7, #fff);
  margin: 0;
  
}

.market-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4em;
}

/* 🌿 Intro */
.intro-section {
  text-align: center;
  padding: 6em 2em 4em;
  background: linear-gradient(180deg, #f9fcf8 0%, #fff 100%);
}

.intro-section h1 {
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 0.5em;
}

.intro-section .highlight {
  color: #4b9650;
  font-weight: 800;
}

.intro-section p {
  color: #555;
  font-size: 1.1rem;
  margin: 0.3em 0;
}



/* 🎨 카테고리 */
.category-section {
  text-align: center;
  margin-top: 3em;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4em;
  margin-top: 2em;
}

/* 버튼 */
.category-btn {
  background: #fff;
  border: none;
  border-radius: 18px;
  width: 140px;
  height: 130px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 이모지 */
.category-btn .emoji {
  font-size: 2.3rem;
  margin-bottom: 0.6em;
}

/* 텍스트 */
.category-btn .label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}







/* 🔍 검색바 */
.filter-section {
  margin-top: 4em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
  width: 100%;
  max-width: 900px;
}

.filter-form input,
.filter-form select {
  padding: 0.9em 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.2s ease;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: #6bbf59;
  outline: none;
  box-shadow: 0 0 0 3px rgba(107,191,89,0.15);
}

.filter-form button {
  background-color: #6bbf59;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.9em 1.6em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-form button:hover {
  background-color: #58a847;
}

#result-count {
  margin-top: 1.2em;
  color: #333;
  font-weight: 600;
}

/* 🧩 프롬프트 카드 */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
  gap: 2em;
  margin-top: 2.5em;
}

/* 카드 전체 */
.prompt-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  padding: 1.6em 1.4em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
  cursor: pointer;
}

.prompt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* 상단 */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.category-badge {
  background-color: #eceaff;
  color: #5d4fc4;
  font-weight: 700;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-size: 0.85rem;
}

.price {
  font-weight: 800;
  color: #2e7d32;
  font-size: 1.05rem;
}

/* 중앙 아이콘 */
.prompt-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}

.icon-circle {
  background: linear-gradient(135deg, #edf3ef, #fefefe);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.ai-type {
  margin-top: 0.6em;
  color: #555;
  font-size: 0.9rem;
}

/* 제목 + 설명 */
.prompt-content {
  text-align: center;
  margin-top: 0.5em;
}

.prompt-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0.4em 0;
}

.prompt-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  min-height: 2.8em;
  margin-bottom: 1em;
}

/* 태그 */
.meta-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: 1em;
}

.tag {
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  font-weight: 600;
}

.tag-level { background-color: #fff2e0; color: #e08100; }
.tag-ai { background-color: #e5f2ff; color: #0072ce; }
.tag-lang { background-color: #e9f6e9; color: #357a38; }


/* ====================================
   🎯 태그 색상 세트 (세련된 대비 버전)
==================================== */

/* 🔸 난이도 */
.tag-level {
  background-color: #fff2e0; /* 부드러운 크림 오렌지 */
  color: #d46b08; /* 진한 오렌지 브라운 */
  border: 1px solid #ffcf99; /* 테두리로 구분감 */
  font-weight: 600;
}

/* 🔹 기능/AI 관련 태그 */
.tag-ai {
  background-color: #e5f2ff; /* 은은한 하늘색 */
  color: #0056b3; /* 짙은 파랑 (강조용) */
  border: 1px solid #b6d9ff;
  font-weight: 600;
}

/* 🟢 언어 관련 태그 */
.tag-lang {
  background-color: #ebf7eb; /* 밝은 민트그린 */
  color: #2f7a34; /* 진한 초록 */
  border: 1px solid #b8e2b8;
  font-weight: 600;
}

/* 🧠 AI 타입 (새로 추가된 태그 그룹용) */
.tag-ai-type {
  background-color: #f0ebff; /* 라벤더 톤 */
  color: #5a34b8; /* 보라 계열 강조색 */
  border: 1px solid #d2c3ff;
  font-weight: 600;
}

/* 공통 스타일 */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}




/* 하단 */
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.seller {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.seller-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a8d3a1;
}

.seller-name {
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 구매 버튼 */
.buy-btn {
  background-color: #6bbf59;
  border: none;
  color: #fff;
  padding: 0.7em 1.5em;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-btn:hover {
  background-color: #58a847;
  transform: translateY(-1px);
}
