@charset "utf-8";
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --bg: #0c0f1a;
  --surface: #13172a;
  --surface2: #1a1f35;
  --border: rgba(255,255,255,0.07);
  --accent: #c8a96e;
  --accent2: #e8c98e;
  --text: #f0ece4;
  --card-hover: rgba(200,169,110,0.06);
  --radius: 16px;
  --glow: 0 0 40px rgba(200,169,110,0.15);
}

/* ── 배경 그라디언트 오브 ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,130,220,0.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
 
/* ── WRAPPER ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
 
/* ── HEADER ── */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
 
.header-left {}
 
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c_base1);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c_base1);
}
 
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -1px;
}
 
.page-title span {
  color: var(--c_base1);
  display: block;
}
 
.page-desc {
  margin-top: 16px;
  font-size: var(--fs14);
  color: #8890aa;
  line-height: 1.8;
  max-width: 420px;
}
 
/* ── FILTER TAGS ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
 
.filter-tag {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: #8890aa;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.2px;
}
.filter-tag:hover {
  border-color: var(--c_base1);
  color: var(--c_base1);
}
.filter-tag.active {
  background: var(--c_base1);
  border-color: var(--c_base1);
  color: #0c0f1a;
  font-weight: 700;
}
 
/* ── SEARCH BOX ── */
.search-wrap {
  position: relative;
  margin-bottom: 40px;
}
.search-input {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 13px 20px 13px 48px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input::placeholder { color: #8890aa; }
.search-input:focus {
  border-color: var(--c_base1);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8890aa;
  font-size: var(--fs15);
}
 
 
/* ── COUNT INFO ── */
.list-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.list-count {
  font-size: var(--fs16);
  color: #8890aa;
  letter-spacing: 0.5px;
}
.list-count strong {
  color: var(--c_base1);
  font-weight: 700;
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: #8890aa;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs14);
  transition: all 0.2s;
}
.view-btn.active, .view-btn:hover {
  border-color: var(--c_base1);
  color: var(--c_base1);
  background: var(rgba(200,169,110,0.12));
}
 
/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}
 
/* ── BROCHURE CARD ── */
.brochure-card {
  position: relative;
  background:#f1f1f1;
  border:1px solid #e5e5e5;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeIn 0.5s ease both;
  text-decoration: none;
  display: block;
}
 
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
 
.brochure-card:nth-child(1) { animation-delay: 0.05s; }
.brochure-card:nth-child(2) { animation-delay: 0.1s; }
.brochure-card:nth-child(3) { animation-delay: 0.15s; }
.brochure-card:nth-child(4) { animation-delay: 0.2s; }
.brochure-card:nth-child(5) { animation-delay: 0.25s; }
.brochure-card:nth-child(6) { animation-delay: 0.3s; }
 
.brochure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--glow);
  background:var(--c_base3);
}
 
/* 상단 라인 액센트 */
.brochure-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c_base1), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.brochure-card:hover::before { opacity: 1; }
 
/* ── 썸네일 영역 ── */
.card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-thumb img {width:100%; height:100%; object-fit:cover;}

.thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.35s;
}
.brochure-card:hover .thumb-bg {
  transform: scale(1.05);
  opacity: 0.7;
}
 
/* 각 카드마다 다른 색상 배경 */
.brochure-card:nth-child(1) .thumb-bg { background: linear-gradient(135deg, #1a2640, #2a3a5c); }
.brochure-card:nth-child(2) .thumb-bg { background: linear-gradient(135deg, #1a2a1a, #243524); }
.brochure-card:nth-child(3) .thumb-bg { background: linear-gradient(135deg, #2a1a1a, #3d2820); }
.brochure-card:nth-child(4) .thumb-bg { background: linear-gradient(135deg, #1a1a2a, #28223a); }
.brochure-card:nth-child(5) .thumb-bg { background: linear-gradient(135deg, #1a2828, #203535); }
.brochure-card:nth-child(6) .thumb-bg { background: linear-gradient(135deg, #2a2010, #3a2e18); }
 
.thumb-icon {width:70%;}

.thumb-lines {
  position: absolute;
  top: 18px; left: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thumb-line {
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}
.thumb-line:nth-child(1) { width: 70%; background: rgba(200,169,110,0.4); }
.thumb-line:nth-child(2) { width: 90%; }
.thumb-line:nth-child(3) { width: 80%; }
.thumb-line:nth-child(4) { width: 60%; }
 
/* 다운로드 오버레이 */
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
  backdrop-filter: blur(2px);
}
.brochure-card:hover .thumb-overlay { opacity: 1; }
.download-btn-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c_base1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(200,169,110,0.4);
  transform: scale(0.8) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #0c0f1a;
}
.brochure-card:hover .download-btn-circle {
  transform: scale(1) translateY(0);
}
 
/* ── CARD BODY ── */
.card-body {padding:30px;}
 
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size:var(--fs12);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c_base1);
  background:rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.brochure-card:hover .card-tag {}

.card-title {
  font-size: var(--fs20);
  font-weight: 700;
  color:#000;
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}
.brochure-card:hover .card-title { color: var(--c_base2); }

.card-desc {
  font-size:var(--fs14);
  color: #8890aa;
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brochure-card:hover .card-desc {color:#ccc;}
 
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #ccc;
}
 
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size:var(--fs13);
  color: #8890aa;
}
.meta-item svg { width: 11px; height: 11px; opacity: 0.7; }

.brochure-card:hover .meta-item {color:#ccc;}
.brochure-card:hover .meta-item svg {color:#fff;}
 
.card-dl-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c_base1);
  transition: gap 0.2s;
}
.brochure-card:hover .card-dl-label { gap: 7px; }
.card-dl-label svg { width: 13px; height: 13px; }
 
/* ── LIST VIEW ── */
.gallery-grid.list-view .brochure-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.gallery-grid.list-view .brochure-card:hover {
  transform: translateX(6px) translateY(-2px);
}
.gallery-grid.list-view .card-thumb {
  width: 160px;
  min-width: 160px;
  aspect-ratio: unset;
  height: auto;
  border-radius: 0;
}
.gallery-grid.list-view .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery-grid.list-view .card-desc {
  -webkit-line-clamp: 1;
}
 
/* ── 빈 결과 ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #8890aa;
}
.empty-state svg {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state p { font-size: var(--fs14); }
 
/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface2);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs13);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  width: 28px; height: 28px;
  background: rgba(200,169,110,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c_base1);
  font-size: var(--fs13);
}
 
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 40px 20px 60px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .gallery-grid.list-view .card-thumb { width: 120px; min-width: 120px; }
}