/* ================================================================
   price_guide.css — 가격 탭 시스템 전용 스타일
   style.css 뒤에 로드하세요: <link rel="stylesheet" href=".../price_guide.css">
================================================================ */

/* ──────────────────────────────────────
   CURRENCY BAR
────────────────────────────────────── */
.currency-bar {
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
}
.currency-grid {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0;
}
.currency-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.currency-item:last-child { border-right: none; }
.currency-flag  { font-size: 18px; }
.currency-label { font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .5px; }
.currency-sep   { font-size: 11px; color: rgba(255,255,255,.2); }
.currency-value { font-size: 13px; color: var(--c-gold); font-family: var(--f-title); letter-spacing: .5px; }

/* ──────────────────────────────────────
   DISCLAIMER
────────────────────────────────────── */
.price-disclaimer {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--c-beige-light);
  border-left: 3px solid var(--c-gold);
  padding: 16px 22px;
  margin-bottom: 48px;
  font-size: 13px; color: var(--c-gray); line-height: 1.7;
}
.pd-icon {
  font-size: 18px; color: var(--c-gold);
  flex-shrink: 0; margin-top: 1px;
}
.price-disclaimer strong { color: var(--c-dark); }

/* ──────────────────────────────────────
   TAB NAVIGATION
────────────────────────────────────── */
.price-tab-wrap {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 48px;
  /* 하단 라인 */
  padding-bottom: 3px;
}
/* 슬라이딩 골드 인디케이터 */
.tab-indicator {
  display: none; /* JS가 위치 계산 후 보여줌 */
  position: absolute; bottom: 0; height: 2px;
  background: var(--c-gold);
  transition: left .35s cubic-bezier(.4,0,.2,1),
              width .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.price-tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 22px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
  /* Ripple 준비 */
  isolation: isolate;
}
.price-tab-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-dark);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.price-tab-btn:hover::before  { transform: scaleY(1); }
.price-tab-btn.active::before { transform: scaleY(1); }

.tab-name-en, .tab-name-ko { position: relative; z-index: 1; transition: color .25s; }
.tab-name-en {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--c-gray);
}
.tab-name-ko {
  font-size: 10px; letter-spacing: .5px;
  color: var(--c-gray-lt);
}
.price-tab-btn:hover .tab-name-en,
.price-tab-btn.active .tab-name-en { color: var(--c-white); }
.price-tab-btn:hover .tab-name-ko,
.price-tab-btn.active .tab-name-ko { color: var(--c-gold); }

/* Ripple effect on click */
.tab-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(201,169,110,.35);
  transform: scale(0);
  animation: tabRipple .5s linear;
  pointer-events: none; z-index: 2;
}
@keyframes tabRipple {
  to { transform: scale(4); opacity: 0; }
}

/* ──────────────────────────────────────
   PANEL TRANSITIONS
────────────────────────────────────── */
.price-panels { position: relative; min-height: 300px; }

.price-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  /* 패널 진입 애니메이션 */
  transition: opacity .4s ease, transform .4s ease;
}
.price-panel.active {
  display: block;
  animation: panelEnter .4s ease forwards;
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 패널 헤더 */
.panel-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--c-dark);
}
.panel-title    { font-family: var(--f-title); font-size: 26px; color: var(--c-dark); }
.panel-title-ko { font-size: 14px; color: var(--c-gray-lt); margin-top: 4px; }
.panel-count    {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-gray-lt); white-space: nowrap;
}

/* ──────────────────────────────────────
   PRICE TABLE
────────────────────────────────────── */
.price-table-wrap { overflow-x: auto; margin-bottom: 40px; }

.price-table {
  width: 100%; border-collapse: collapse;
  /* 테이블 행 stagger 진입 */
}
.price-table thead tr {
  border-bottom: 1px solid var(--c-beige-dark);
}
.price-table th {
  padding: 10px 18px; text-align: left;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-gray-lt); font-weight: normal;
  background: var(--c-beige-light);
  white-space: nowrap;
}
/* stagger animation per row */
.price-row {
  border-bottom: 1px solid var(--c-beige);
  opacity: 0;
  animation: rowSlide .35s ease forwards;
  animation-delay: calc(var(--row-i) * 0.045s);
  transition: background .2s;
}
.price-row:hover { background: var(--c-beige-light); }
@keyframes rowSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

.price-table td { padding: 16px 18px; vertical-align: middle; }

.treatment-name { font-family: var(--f-title); font-size: 15px; color: var(--c-dark); }
.treatment-ko   { font-size: 12.5px; color: var(--c-gray-lt); margin-top: 2px; }

.price-val  { font-family: var(--f-title); font-size: 15px; color: var(--c-gold); white-space: nowrap; }
.price-usd  { font-size: 11px; color: var(--c-gray-lt); margin-top: 3px; }

.price-note {
  font-size: 12.5px; color: var(--c-gray-lt);
  font-style: italic; line-height: 1.5;
}

.col-treatment { width: 28%; }
.col-korean    { width: 20%; }
.col-price     { width: 26%; }
.col-note      { width: 26%; }

/* ──────────────────────────────────────
   PRICE RANGE BARS (시각화)
────────────────────────────────────── */
.price-bars {
  background: var(--c-beige-light);
  padding: 28px 28px 20px;
  margin-bottom: 8px;
}
.price-bars::before {
  content: 'PRICE RANGE VISUALISATION';
  display: block;
  font-size: 9px; letter-spacing: 3px; color: var(--c-gray-lt);
  text-transform: uppercase; margin-bottom: 20px;
}
.pbar-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
  opacity: 0;
  animation: rowSlide .35s ease forwards;
  animation-delay: calc(var(--row-i) * 0.06s);
}
.pbar-label {
  width: 160px; flex-shrink: 0;
  font-size: 12px; color: var(--c-gray); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbar-track {
  flex: 1; height: 6px;
  background: var(--c-beige); border-radius: 3px;
  position: relative; overflow: hidden;
}
.pbar-fill {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-gold-lt) 100%);
  border-radius: 3px;
  /* 바 진입 애니메이션 */
  animation: barGrow .7s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(var(--row-i) * 0.06s + 0.1s);
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.pbar-price {
  width: 170px; flex-shrink: 0;
  font-size: 12px; color: var(--c-gold);
  font-family: var(--f-title);
  white-space: nowrap;
}

/* ──────────────────────────────────────
   PRICE EMPTY
────────────────────────────────────── */
.price-empty {
  padding: 60px 0; text-align: center;
  font-size: 15px; color: var(--c-gray-lt);
}

/* ──────────────────────────────────────
   INFO CARDS
────────────────────────────────────── */
.price-info-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.price-info-card {
  flex: 1 1 calc(33.333% - 14px); min-width: 240px;
  padding: 32px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  display: flex; flex-direction: column; gap: 12px;
}
.price-info-card--dark { background: var(--c-dark); border-color: var(--c-dark); }
.pic-icon  { font-size: 26px; }
.pic-title { font-family: var(--f-title); font-size: 17px; color: var(--c-dark); }
.pic-body  { font-size: 13.5px; color: var(--c-gray); line-height: 1.8; }

/* ──────────────────────────────────────
   CTA BLOCK
────────────────────────────────────── */
.price-cta {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  padding: 40px 44px;
  background: var(--c-beige-light);
  border: 1px solid var(--c-border);
}
.price-cta-text { flex: 1; min-width: 240px; }
.price-cta-btns {
  display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0;
}

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 900px) {
  .currency-item { padding: 6px 16px; }
  .col-note { display: none; }
  .price-bars { display: none; }         /* 모바일에서 바 숨김 */
}
@media (max-width: 768px) {
  .price-tab-btn    { padding: 9px 14px; }
  .tab-name-en      { font-size: 10px; letter-spacing: 1px; }
  .currency-grid    { gap: 0; }
  .currency-item    { padding: 6px 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .price-info-card  { flex: 1 1 100%; }
  .price-cta        { padding: 28px 24px; }
  .price-cta-btns   { width: 100%; }
  .price-cta-btns a { flex: 1; text-align: center; }
  .pbar-label       { width: 100px; font-size: 11px; }
  .pbar-price       { width: 130px; font-size: 11px; }
  .col-korean       { display: none; }
  .price-table th,
  .price-table td   { padding: 13px 12px; }
}
@media (max-width: 480px) {
  .price-tab-wrap   { gap: 3px; }
  .price-tab-btn    { padding: 9px 11px; }
  .tab-name-en      { font-size: 9.5px; }
  .tab-name-ko      { display: none; }
}
