@charset "UTF-8";

/* ==========================================================================
   TAB 3 : 템플릿 마켓 (Template Market) 콤팩트 레이아웃 스타일
   ========================================================================== */

/* 0. 최상위 탭 컨테이너 여백 축소 */
.tmpl-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 100px; /* 상단 여백을 0으로 줄여 메인 탭 바로 밑에 밀착 */
  position: relative;
  display: block;
}

/* 1. 템플릿 세부 카테고리 필터 바 (여백 및 크기 축소) */
.tmpl-filter-wrap {
  max-width: 1200px;
  margin: 24px auto 32px; /* 상하 여백을 확 줄여서 타이포 밀도 상향 */
  padding: 0 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px; /* 버튼 간격 좁힘 */
}

.tmpl-filter-btn {
  background: #141414;
  color: #f5f5f0;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 18px; /* 버튼 자체 상하좌우 패딩 축소 */
  border-radius: 50px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px; /* 폰트 사이즈 미세 축소 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tmpl-filter-btn:hover {
  border-color: #c8ff00;
  color: #c8ff00;
}

.tmpl-filter-btn.active {
  background: #c8ff00;
  color: #0a0a0a;
  border-color: #c8ff00;
  font-weight: 700;
}

/* 2. 템플릿 카드 그리드 */
.tmpl-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* 3. 템플릿 개별 카드 */
.tmpl-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.tmpl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,255,0,0.3);
}

/* 4. 카드 썸네일 (16:10 비율 유지) */
.tmpl-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.tmpl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.tmpl-card:hover .tmpl-thumb img {
  transform: scale(1.03);
}

/* 5. 카드 내부 콘텐츠 영역 */
.tmpl-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.tmpl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tmpl-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 2px;
  background: #222;
  color: #a0a0a0;
}

.tmpl-tag.tmpl-tag-industry {
  background: rgba(200,255,0,0.1);
  color: #c8ff00;
  border: 1px solid rgba(200,255,0,0.25);
}

.tmpl-tag.tmpl-tag-free {
  background: rgba(61,214,140,0.1);
  color: #3DD68C;
  border: 1px solid rgba(61,214,140,0.2);
}

.tmpl-tag.tmpl-tag-pro {
  background: rgba(180,130,255,0.1);
  color: #B482FF;
  border: 1px solid rgba(180,130,255,0.2);
}

.tmpl-title {
  font-size: 19px;
  font-weight: 700;
  color: #f5f5f0;
  line-height: 1.35;
}

.tmpl-desc {
  font-size: 13.5px;
  color: #a0a0a0;
  line-height: 1.65;
  font-weight: 300;
  flex-grow: 1;
}

/* 카드 하단 영역 */
.tmpl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #222;
}

.tmpl-price {
  font-size: 15px;
  font-weight: 700;
  color: #c8ff00;
}

.tmpl-price.free {
  color: #3DD68C;
}

.tmpl-btn {
  font-size: 13px;
  font-weight: 700;
  color: #c8ff00;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.tmpl-btn:hover {
  transform: translateX(4px);
}

/* 6. 하단 전 업종 패키지 배너 */
.tmpl-banner {
  max-width: 1120px;
  margin: 80px auto 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 1px solid #c8ff00;
  border-radius: 20px;
  padding: 40px 48px; /* 패딩 축소 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(200, 255, 0, 0.1);
}

.tmpl-banner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  line-height: 1.3;
}

.tmpl-banner p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
  max-width: 620px;
}

.tmpl-banner-btn {
  background: #c8ff00;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 36px;
  border-radius: 50px;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(200, 255, 0, 0.3);
  font-family: 'Noto Sans KR', sans-serif;
}

.tmpl-banner-btn:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 255, 0, 0.4);
}

/* ==========================================================================
   미디어 쿼리 : 반응형 조절 (PC / 태블릿 / 모바일)
   ========================================================================== */

@media (max-width: 1024px) {
  .tmpl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 24px;
  }
  .tmpl-filter-wrap {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .tmpl-section {
    padding: 0 0 60px;
  }
  .tmpl-filter-wrap {
    padding: 0 20px;
    gap: 6px;
    margin: 16px auto 24px;
  }
  .tmpl-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .tmpl-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 20px;
  }
  .tmpl-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
    margin: 48px 20px 0;
  }
  .tmpl-banner h3 {
    font-size: 18px;
  }
  .tmpl-banner p {
    font-size: 13px;
  }
  .tmpl-banner-btn {
    padding: 14px 32px;
    font-size: 14px;
    width: 100%;
  }
}