/* =========================================================
   YOOHANTECH CTA – EXPORT (LEAK ONLY)
   File: yh-cta-export-leak.css
   Used for:
   - Global Bottom Fixed CTA
   - Content Card CTA (Post/Page)
   - Brand Slogan (yh_top / yh / leak)
   ✅ Mobile: buttons stack + allow 2-line button text
========================================================= */

/* ---------- Reset & Base ---------- */
.yh-cta-root{
  all: initial;
  display: block;
  position: relative;
  z-index: 2147483000;
}

.yh-cta-root,
.yh-cta-root *{
  box-sizing: border-box;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans KR",
    "Apple SD Gothic Neo", "Malgun Gothic",
    Arial, sans-serif;
}

/* ---------- Theme Tokens ---------- */
.yh-cta{
  --bg: rgba(255,255,255,0.92);
  --panel: rgba(255,255,255,0.88);
  --text: #0f172a;
  --muted: rgba(15,23,42,0.65);
  --line: rgba(15,23,42,0.12);
  --shadow: 0 18px 50px rgba(15,23,42,0.18);
  --primary: #0b5cff;
  --primary-text: #ffffff;
  --ghost-bg: rgba(15,23,42,0.06);
  --ghost-text: rgba(15,23,42,0.88);
  --radius-lg: 18px;
  --radius-md: 14px;
}

@media (prefers-color-scheme: dark){
  .yh-cta{
    --bg: rgba(15,23,42,0.82);
    --panel: rgba(2,6,23,0.72);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.62);
    --line: rgba(255,255,255,0.16);
    --shadow: 0 24px 60px rgba(0,0,0,0.45);
    --primary: #4ea1ff;
    --primary-text: #06101f;
    --ghost-bg: rgba(255,255,255,0.12);
    --ghost-text: rgba(255,255,255,0.9);
  }
}

/* =========================================================
   1) GLOBAL BOTTOM FIXED CTA
========================================================= */
.yh-cta-bottom{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Export tone top line (blue → teal) */
  background:
    linear-gradient(90deg, #236fa1 0%, #169179 100%) 0 0 / 100% 3px no-repeat,
    linear-gradient(180deg, var(--panel), var(--bg));

  transform: translateY(140%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.yh-cta-bottom.yh-cta-show{
  transform: translateY(0);
  opacity: 1;
}

.yh-cta-row{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yh-cta-head{
  flex: 1;
  min-width: 0;
}

.yh-cta-title{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);

  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yh-cta-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);

  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yh-cta-badge{
  flex: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.4);
}

@media (prefers-color-scheme: dark){
  .yh-cta-badge{ background: rgba(255,255,255,0.08); }
}

.yh-cta-actions{
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.yh-cta-btn{
  flex: 1;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  white-space: nowrap; /* desktop default */
}

.yh-cta-btn-primary{
  background: var(--primary);
  color: var(--primary-text);
}

.yh-cta-btn-ghost{
  background: var(--ghost-bg);
  color: var(--ghost-text);
  border: 1px solid var(--line);
}

.yh-cta-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

/* =========================================================
   2) CONTENT CARD CTA (POST / PAGE)
========================================================= */
.yh-post-cta{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:28px 0;
}

.yh-post-cta .yh-post-cta-card{
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 18px 16px 18px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.yh-post-cta .yh-post-cta-card::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%;
  height:3px;
  background: linear-gradient(90deg, var(--primary), rgba(34,197,94,0.9));
  opacity: .9;
}

.yh-post-cta .yh-post-cta-head{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  margin: 2px 0 8px 0;
}

.yh-post-cta .yh-post-cta-ic{
  flex:none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}

@media (prefers-color-scheme: dark){
  .yh-post-cta .yh-post-cta-ic{ background: rgba(255,255,255,0.10); }
}

.yh-post-cta .yh-post-cta-title{
  margin:0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.yh-post-cta .yh-post-cta-desc{
  margin: 8px 0 14px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: -0.2px;
}

.yh-post-cta .yh-post-cta-actions{
  display:flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.yh-post-cta .yh-post-cta-btn{
  flex: 1 1 180px;
  min-width: 180px;
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.2px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  box-sizing:border-box;
  white-space: nowrap;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.yh-post-cta .yh-post-cta-btn-email{
  background: rgba(15,23,42,0.05);
  color: var(--text) !important;
  border: 1px solid var(--line);
}

@media (prefers-color-scheme: dark){
  .yh-post-cta .yh-post-cta-btn-email{ background: rgba(255,255,255,0.10); }
}

.yh-post-cta .yh-post-cta-btn-primary{
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #ffffff !important;
  border: 0;
  box-shadow: 0 10px 22px rgba(34,197,94,0.28);
}

@media (hover:hover){
  .yh-post-cta .yh-post-cta-btn-email:hover{ transform: translateY(-1px); }
  .yh-post-cta .yh-post-cta-btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34,197,94,0.32);
  }
  .yh-post-cta .yh-post-cta-btn-email,
  .yh-post-cta .yh-post-cta-btn-primary{
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  }
}

@media (max-width: 380px){
  .yh-post-cta{ padding: 0 12px; }
  .yh-post-cta .yh-post-cta-card{
    padding: 16px 14px 14px 14px;
    border-radius: 16px;
  }
  .yh-post-cta .yh-post-cta-btn{
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    height: 46px;
    border-radius: 16px;
  }
}

/* PC only helper */
.yh-post-cta-pc-only{ display:block; }
@media (max-width: 768px){
  .yh-post-cta-pc-only{ display:none !important; }
}

/* =========================================================
   (B) BRAND SLOGAN – Theme Unified
========================================================= */
.yh-brand-slogan{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 26px 0 0 0;
}

.yh-brand-slogan .yh-brand-slogan-inner{
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
  box-shadow: var(--shadow);
  text-align: center;

  position: relative;
  overflow: hidden;
}

.yh-brand-slogan .yh-brand-slogan-inner::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #236fa1 0%, #2fbf9e 100%);
  opacity: 0.95;
}

.yh-brand-slogan .yh-brand-line{
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.45;
  font-size: 18px;
}

.yh-brand-slogan .yh-brand-line .yh-brand-accent-1{ color: #ba372a; }
.yh-brand-slogan .yh-brand-line .yh-brand-accent-2{ color: #169179; }
.yh-brand-slogan .yh-brand-line .yh-brand-accent-3{ color: var(--primary); }

.yh-brand-slogan .yh-brand-company{
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
}

@media (max-width: 480px){
  .yh-brand-slogan .yh-brand-line{ font-size: 16px; }
  .yh-brand-slogan .yh-brand-company{ font-size: 14px; }
}

/* Primary text stays white (all states) */
.yh-post-cta .yh-post-cta-btn-primary,
.yh-post-cta .yh-post-cta-btn-primary:link,
.yh-post-cta .yh-post-cta-btn-primary:visited,
.yh-post-cta .yh-post-cta-btn-primary:hover,
.yh-post-cta .yh-post-cta-btn-primary:active,
.yh-post-cta .yh-post-cta-btn-primary span{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* =========================================================
   YH CTA – Left on PC / Bottom on Mobile rule
========================================================= */
@media (max-width:1023px){
  .yh-cta-bottom .yh-cta-btn-ghost{
    display: inline-flex !important;
  }
}

@media (min-width:1024px) and (max-width:1439px){
  .yh-cta-bottom{
    left: 24px;
    right: auto;
    bottom: 28px;
    max-width: 420px;
    padding: 16px 16px;
    border-radius: var(--radius-lg);
  }
  .yh-cta-bottom .yh-cta-btn-ghost{ display:none; }
}

@media (min-width:1440px){
  .yh-cta-bottom{
    left: 28px;
    right: auto;
    bottom: 32px;
    max-width: 480px;
    padding: 18px 18px;
    border-radius: var(--radius-lg);
  }
  .yh-cta-bottom .yh-cta-btn-ghost{ display:none; }
}

/* Text no-cut safety net */
.yh-cta-bottom .yh-cta-head{ min-width:0; }
.yh-cta-bottom .yh-cta-title,
.yh-cta-bottom .yh-cta-sub{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

/* =========================================================
   YH TOP CTA – Modern + No Cut (Mobile Safe)
========================================================= */
.yh-top-cta{
  width: 100%;
  max-width: 520px;
  margin: 16px 0 22px 0;
  opacity: .92;
  transition: opacity .18s ease, transform .18s ease;
}

.yh-top-cta.is-dimmed{ opacity: .68; }

@media (hover:hover){
  .yh-top-cta:hover{
    opacity: 1;
    transform: translateY(-1px);
  }
}

.yh-top-cta .yh-brand-slogan-inner{
  position: relative;
  overflow: hidden;
  text-align: left;

  padding: 14px 18px 12px 18px;
  border-radius: 18px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.62));
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.14),
    inset 0 1px 0 rgba(255,255,255,0.45);

  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);

  box-sizing: border-box;
  max-width: 100%;
}

.yh-top-cta .yh-brand-slogan-inner::before{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: rgba(255,255,255,0.65);
  opacity: .9;
}

.yh-top-cta .yh-brand-slogan-inner::after{
  content:"";
  position:absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #0b5cff, #169179);
  opacity: .95;
}

.yh-top-cta .yh-brand-line{
  margin: 0;
  padding-left: 10px;

  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.35px;
  color: rgba(15,23,42,0.92);

  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yh-top-cta .yh-brand-company{
  margin-top: 7px;
  padding-left: 10px;

  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: #0b5cff;
  opacity: .95;
}

@media (prefers-color-scheme: dark){
  .yh-top-cta .yh-brand-slogan-inner{
    background:
      linear-gradient(180deg, rgba(2,6,23,0.74), rgba(15,23,42,0.55));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
      0 22px 46px rgba(0,0,0,0.52),
      inset 0 1px 0 rgba(255,255,255,0.10);
  }
  .yh-top-cta .yh-brand-line{ color: rgba(255,255,255,0.92); }
  .yh-top-cta .yh-brand-company{
    color: #4ea1ff;
    opacity: 1;
  }
}

@media (max-width: 480px){
  .yh-top-cta{ max-width: 100%; }
  .yh-top-cta .yh-brand-slogan-inner{
    padding: 13px 14px 11px 14px;
    border-radius: 16px;
  }
  .yh-top-cta .yh-brand-line{
    font-size: 15px;
    line-height: 1.3;
  }
  .yh-top-cta .yh-brand-company{ font-size: 12px; }
}

/* Remove top accent line only for yh-top-cta */
.yh-top-cta .yh-brand-slogan-inner::before{
  content: none !important;
  display: none !important;
}
.yh-top-cta .yh-brand-slogan-inner{
  background-clip: padding-box;
}

/* =========================================================
   VIDEO ENTRY CTA – Leak Test Video
========================================================= */
.yh-video-entry-cta{
  width:100%;
  max-width:100%;
  margin: 10px 0;
  box-sizing: border-box;
}

.yh-video-entry-card{
  max-width: 520px;
  margin: 0 auto;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
  box-shadow: 0 18px 42px rgba(29,78,216,0.18);
  overflow: hidden;
  position: relative;
  color: inherit;
}

.yh-video-entry-bar{
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #22c55e 100%);
}

.yh-video-entry-body{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px 18px;
}

.yh-video-entry-info{ min-width: 0; }

.yh-video-entry-badge{
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--muted);
}

@media (prefers-color-scheme: dark){
  .yh-video-entry-badge{ background: rgba(255,255,255,0.08); }
}

.yh-video-entry-title{
  margin: 8px 0 4px 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.3px;
  color: var(--text);
}

.yh-video-entry-desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.yh-video-entry-play{
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(34,197,94,0.35);
}

.yh-video-entry-triangle{
  width: 0;
  height: 0;
  border-left: 14px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 2px;
}

@media (hover:hover){
  .yh-video-entry-card{
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .yh-video-entry-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15,23,42,0.22);
  }
}

@media (max-width: 380px){
  .yh-video-entry-body{
    padding: 16px 14px;
    gap: 12px;
  }
  .yh-video-entry-play{
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
   ✅ Mobile: Bottom CTA
   - Stack buttons
   - Allow 2-line button labels (clamp 2)
========================================================= */
@media (max-width: 480px){
  .yh-cta-bottom .yh-cta-actions{
    flex-direction: column;
  }

  .yh-cta-bottom .yh-cta-btn{
    height: auto;
    min-height: 52px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  /* ✅ Mobile: 버튼은 flex로 중앙정렬 유지 + 텍스트만 2줄 클램프 */
@media (max-width: 480px){
  .yh-cta-bottom .yh-cta-actions{
    flex-direction: column;
  }

  .yh-cta-bottom .yh-cta-btn{
    height: auto;
    min-height: 52px;
    padding: 10px 12px;

    /* ✅ 중앙정렬 유지 */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  /* ✅ 텍스트만 2줄 제한 (버튼 자체는 flex 유지) */
  .yh-cta-bottom .yh-cta-btn > span{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}