/* ========================================
   티카페알케미 | 명함 페이지 CSS
   Tea Café Alchemy – Business Card Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;600;700;900&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark:  #2D5016;
  --green-main:  #4A7C2F;
  --green-light: #A8C97A;
  --green-pale:  #E8F4D9;
  --gold:        #C8A96E;
  --gold-light:  #E8D5A8;
  --cream:       #FAF6EE;
  --brown:       #5C3D1E;
  --white:       #FFFFFF;
  --text-dark:   #1A1A1A;
  --text-mid:    #444444;
  --shadow-md:   0 4px 20px rgba(0,0,0,0.14);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.20);
  --radius-md:   14px;
  --radius-lg:   24px;
  --transition:  0.3s ease;
  --font-serif:  'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-sans:   'Noto Sans KR', sans-serif;

  /* 명함 크기: 90mm × 54mm = 340px × 204px @96dpi */
  --card-w: 680px;
  --card-h: 408px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: #1a2a14;
  color: var(--text-dark);
  min-height: 100vh;
}

/* ===== CONTROL BAR ===== */
.bc-ctrl-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: rgba(30, 50, 18, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  flex-wrap: wrap;
}
.bc-ctrl-bar h1 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  flex: 1;
  text-align: center;
  min-width: 120px;
}
.bc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.bc-back-btn:hover { color: var(--white); }
.bc-ctrl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bc-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--green-main);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.bc-btn-dl:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bc-btn-dl.all { background: var(--gold); color: var(--green-dark); }
.bc-btn-dl.all:hover { background: #b09050; color: var(--white); }

/* ===== MAIN ===== */
.bc-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.bc-guide {
  text-align: center;
  color: var(--green-light);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}
.bc-section {
  margin-bottom: 3.5rem;
}
.bc-section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(200,169,110,0.12);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.bc-flip-hint {
  text-align: center;
  color: var(--green-light);
  font-size: 0.8rem;
  margin-top: 0.8rem;
  opacity: 0.8;
}

/* ===== CARD FLIP ===== */
.card-flip-wrap {
  perspective: 1600px;
  width: var(--card-w);
  height: var(--card-h);
  margin: 0 auto;
  cursor: pointer;
}
.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
}
.card-flip-wrap.flipped .card-flip-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.card-back { transform: rotateY(180deg); }

/* ===== CARD FRONT ===== */
.card-front {
  display: flex;
  background: var(--cream);
  border: 3px solid var(--gold);
}

/* 왼쪽 영역 (녹색 배경) */
.cf-left {
  width: 42%;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-main) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.cf-left::after {
  content: '🌿';
  position: absolute;
  bottom: -20px; right: -20px;
  font-size: 5rem;
  opacity: 0.08;
  transform: rotate(-20deg);
}
.cf-logo-wrap { margin-bottom: 0.6rem; }
.cf-logo-circle {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(200,169,110,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  backdrop-filter: blur(4px);
}
.cf-brand-ko {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.cf-brand-en {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}
.cf-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.cf-services { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cf-svc-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 5px 8px;
  border-left: 2px solid var(--gold);
}
.cf-svc-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.cf-svc-item > div { display: flex; flex-direction: column; }
.cf-svc-item strong { font-size: 0.68rem; font-weight: 700; color: var(--gold-light); }
.cf-svc-item span { font-size: 0.58rem; color: rgba(255,255,255,0.5); line-height: 1.3; }

/* 장식 잎사귀 */
.cf-leaf-deco {
  position: absolute;
  top: 10px;
  font-size: 1.5rem;
  opacity: 0.25;
}
.cf-leaf-deco.left { left: 8px; }
.cf-leaf-deco.right { right: 8px; transform: scaleX(-1); }

/* 오른쪽 영역 */
.cf-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  background: var(--cream);
  position: relative;
}
.cf-contact { flex: 1; }
.cf-rep {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--gold-light);
}
.cf-rep-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 2px;
}
.cf-rep-name em { font-style: normal; font-size: 0.75rem; color: var(--gold); margin-left: 6px; font-weight: 600; }
.cf-rep-en { font-size: 0.6rem; letter-spacing: 1.5px; color: var(--text-mid); text-transform: uppercase; }

.cf-info-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.8rem; }
.cf-info-list li { display: flex; align-items: flex-start; gap: 7px; }
.cf-info-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
}
.cf-info-icon.phone { background: #e6f4d9; color: var(--green-main); }
.cf-info-icon.mail  { background: #fff3e0; color: #e65100; }
.cf-info-icon.web   { background: #e3f2fd; color: #1565c0; }
.cf-info-icon.blog  { background: #e8f5e9; color: #2e7d32; }
.cf-info-icon.addr  { background: #fce4ec; color: #c62828; }
.cf-info-list span  { font-size: 0.68rem; color: var(--text-dark); line-height: 1.4; word-break: break-all; }

/* 입금 계좌 */
.cf-bank {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-pale), #f5fce8);
  border: 1px solid var(--green-light);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 0.6rem;
}
.cf-bank i { color: var(--green-main); font-size: 0.9rem; flex-shrink: 0; }
.cf-bank div { display: flex; flex-direction: column; }
.cf-bank strong { font-size: 0.6rem; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }
.cf-bank span { font-size: 0.65rem; color: var(--text-dark); }

/* 다크 패널 (하단) */
.cf-dark-panel {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.cf-dark-deco { font-size: 1.4rem; flex-shrink: 0; }
.cf-dark-quote {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  color: var(--gold-light);
  line-height: 1.5;
  font-weight: 500;
}

/* ===== CARD BACK ===== */
.card-back,
.card-back-solo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold);
}
.cb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3a0c 40%, #0d2206 100%);
  z-index: 0;
}
.cb-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(200,169,110,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(74,124,47,0.3) 0%, transparent 50%);
}
.cb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem 2rem;
  text-align: center;
}
.cb-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.6rem;
}
.cb-logo-icon { font-size: 2rem; }
.cb-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
}
.cb-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.cb-gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.6rem auto;
}
.cb-slogan {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.cb-services {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cb-svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 80px;
}
.cb-svc i {
  width: 36px; height: 36px;
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
}
.cb-svc span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.4;
}
.cb-svc span em {
  display: block;
  font-style: normal;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.65rem;
}
.cb-contact-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.cb-contact-row span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
}
.cb-contact-row i { color: var(--gold); font-size: 0.6rem; }
.cb-tag-bar {
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.6rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.cb-final-quote {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ===== STATIC BACK WRAP ===== */
.card-wrap-static {
  display: flex;
  justify-content: center;
}
.card-back-solo {
  width: var(--card-w);
  height: var(--card-h);
}

/* ===== 다운로드 오버레이 ===== */
.dl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.dl-overlay.active { display: flex; }
.dl-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.dl-spinner i { font-size: 2.5rem; color: var(--gold); }
.dl-spinner p { font-size: 1rem; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  :root {
    --card-w: 100%;
    --card-h: auto;
  }
  .card-flip-wrap {
    width: 95vw;
    height: 57vw;
    min-height: 220px;
  }
  .card-back-solo {
    width: 95vw;
    height: 57vw;
    min-height: 220px;
  }
  .bc-ctrl-bar { padding: 0.7rem 1rem; }
  .bc-ctrl-bar h1 { font-size: 0.9rem; }
  .bc-btn-dl { padding: 7px 12px; font-size: 0.75rem; }
  .bc-main { padding: 2rem 1rem 3rem; }
  .cf-svc-item span { display: none; }
  .cb-services { gap: 0.5rem; }
  .cb-svc { min-width: 60px; }
}
