/* ============================================================
   mirajet Luxury Reference · Brand Visual Cards
   ==============================================================
   각 브랜드의 시각 언어를 CSS로 추상 표현.
   실제 이미지 확보 전 placeholder 역할.
   이미지 파일이 있으면 해당 이미지가 우선 표시됨.
   ============================================================ */

/* 브랜드 섹션 헤더의 이미지 갤러리 컨테이너 */
.brand-gallery {
  margin: var(--space-6) 0 var(--space-8);
}
.brand-gallery-label {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.brand-gallery-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.brand-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}

.brand-image-slot {
  position: relative;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.brand-image-area {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-image-area img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* onerror로 이미지 로드 실패 시 숨김 처리는 HTML inline style에서 */

.brand-image-caption {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xxs);
  color: var(--gray-600);
  line-height: var(--leading-snug);
  background: var(--paper);
  border-top: 1px solid var(--gray-200);
  min-height: 3em;
}

/* CSS Visual Fallback */
.visual-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  z-index: 0;
  overflow: hidden;
}
.visual-fallback .brand-name {
  font-size: var(--text-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 2;
}
.visual-fallback .brand-concept {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* Chanel — 흑백 미니멀리즘 */
.visual-chanel { background: #ffffff; color: #000; }
.visual-chanel .brand-name {
  color: #000;
  font-family: "Playfair Display", "Didot", serif;
  font-weight: 400;
}
.visual-chanel .brand-name::before,
.visual-chanel .brand-name::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: #000;
}
.visual-chanel .brand-name::before { left: -32px; }
.visual-chanel .brand-name::after { right: -32px; }
.visual-chanel .brand-concept { color: #444; }

/* Dior — 세리프 우아함 */
.visual-dior { background: #0a0a0a; color: #fff; }
.visual-dior .brand-name {
  color: #fff;
  font-family: "Playfair Display", "Didot", serif;
  font-weight: 700;
  font-style: italic;
}
.visual-dior .brand-concept { color: #c9a86a; }
.visual-dior::before {
  content: "D";
  position: absolute;
  top: 5%;
  left: 8%;
  font-size: 140px;
  font-family: "Playfair Display", serif;
  color: rgba(201, 168, 106, 0.12);
  line-height: 1;
  font-weight: 700;
  z-index: 0;
}

/* La Prairie — Caviar Blue + Gold */
.visual-laprairie {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2340 100%);
  color: #fff;
}
.visual-laprairie .brand-name {
  color: #fff;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.2em;
  font-weight: 300;
  border-top: 1px solid rgba(201, 168, 106, 0.6);
  border-bottom: 1px solid rgba(201, 168, 106, 0.6);
  padding: 6px 14px;
}
.visual-laprairie .brand-concept { color: #c9a86a; }

/* Byredo — 모던 미니멀 */
.visual-byredo { background: #f4f1eb; color: #1a1a1a; }
.visual-byredo .brand-name {
  color: #1a1a1a;
  font-family: "Helvetica Neue", "Pretendard", sans-serif;
  font-weight: 300;
  letter-spacing: 0.3em;
}
.visual-byredo .brand-concept { color: #6a6a6a; }
.visual-byredo::before {
  content: "";
  position: absolute;
  top: 14%;
  right: 14%;
  width: 32px;
  height: 32px;
  border: 1px solid #1a1a1a;
  z-index: 0;
}

/* Allergan — 의료 전문성 */
.visual-allergan {
  background: linear-gradient(180deg, #1e3a5f 0%, #0a1a3e 100%);
  color: #fff;
}
.visual-allergan .brand-name {
  color: #fff;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.visual-allergan .brand-concept {
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
}
.visual-allergan::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  right: 22%;
  bottom: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  z-index: 0;
}

/* Tatcha — 동양 럭셔리 */
.visual-tatcha {
  background: linear-gradient(135deg, #faf3e7 0%, #f4e8d2 100%);
  color: #3a2d1f;
}
.visual-tatcha .brand-name {
  color: #3a2d1f;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
}
.visual-tatcha .brand-concept { color: #856c4a; }
.visual-tatcha::before {
  content: "花";
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 40px;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  color: rgba(201, 168, 106, 0.4);
  line-height: 1;
  z-index: 0;
}
.visual-tatcha::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 20%;
  width: 30%;
  height: 1px;
  background: rgba(201, 168, 106, 0.6);
  z-index: 0;
}

/* Placeholder 배지 */
.placeholder-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 2px;
  z-index: 3;
  font-weight: 600;
}

/* 이미지 출처 섹션 */
.image-sources {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--gray-50);
  border-left: 3px solid var(--gray-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
}
.image-sources-title {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.image-sources ul {
  margin: 0;
  padding-left: var(--space-4);
}
.image-sources li {
  margin-bottom: 4px;
  color: var(--gray-700);
  line-height: var(--leading-normal);
  font-size: var(--text-xs);
}
.image-sources li a {
  color: var(--mirajet-purple);
  word-break: break-all;
  font-size: 11px;
}
.image-sources li code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--paper);
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--ink);
  border: 1px solid var(--gray-200);
}

@media print {
  .placeholder-badge { display: none; }
  .visual-fallback {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Thermage — 의료미용 기기 · RF · 신뢰 */
.visual-thermage {
  background: linear-gradient(180deg, #0e2744 0%, #1a4370 100%);
  color: #fff;
}
.visual-thermage .brand-name {
  color: #fff;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: var(--text-lg);
}
.visual-thermage .brand-concept {
  color: rgba(255, 255, 255, 0.55);
}
.visual-thermage::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.3) 70%,
    transparent 100%
  );
  z-index: 0;
}
.visual-thermage::after {
  content: "";
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

/* Sculptra — 재생·바이오스티뮬레이터 · 따뜻한 톤 */
.visual-sculptra {
  background: linear-gradient(135deg, #f6dcc4 0%, #e9b896 40%, #d89468 100%);
  color: #4a2418;
}
.visual-sculptra .brand-name {
  color: #4a2418;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: var(--text-xl);
  text-transform: none;
}
.visual-sculptra .brand-concept {
  color: rgba(74, 36, 24, 0.65);
}
.visual-sculptra::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 14%;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(74, 36, 24, 0.3);
  border-radius: 50%;
  z-index: 0;
}
.visual-sculptra::after {
  content: "";
  position: absolute;
  bottom: 16%;
  left: 18%;
  width: 24%;
  height: 1px;
  background: rgba(74, 36, 24, 0.4);
  z-index: 0;
}
