/*
 태쏘 홈 히어로 (2b) — 콘텐츠: 링크 카드/문구 슬라이드/책장/이미지 액자/버튼/모바일 (구역 6-2)
 functions.php의 tasso_enqueue_home_css()가 홈 화면에서만 로드
*/

/* 베이지 패널 위 유튜브/블로그 링크 카드 */
.tasso-hero-links {
  position: absolute;
  top: 56px;
  right: clamp(24px, 5vw, 100px);
  z-index: 5; /* 텍스트 레이어보다 위 → 클릭 보장 */
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(25vw, 350px);
}

.tasso-link-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #14130f;
  padding: 16px 20px;
  border-radius: 10px 26px 12px 22px / 20px 12px 26px 10px; /* 붓터치 모서리 */
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.26);
  text-decoration: none !important;
  transition: transform 0.18s ease, background-color 0.2s ease;
}

.tasso-link-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  background: #1d1b16;
}

.tasso-link-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.tasso-link-card.yt .tasso-link-icon {
  background: var(--tasso-red);
}

.tasso-link-card.blog .tasso-link-icon {
  background: #03c75a; /* 네이버 그린 */
}

.tasso-link-card.book .tasso-link-icon {
  background: #ffffff; /* 교보문고 로고 (초록 새) */
}

.tasso-link-card.book .tasso-link-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.tasso-link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tasso-link-body strong {
  font-family: var(--tasso-brush);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #f0ead8;
  line-height: 1;
}

.tasso-link-body em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--tasso-muted);
}

.tasso-link-arrow {
  margin-left: auto;
  color: var(--tasso-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.tasso-hero-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  z-index: 2;
}

/* 문구 슬라이드: 5초마다 교차, 3장면 (총 15초 주기) */
.tasso-hero-slides {
  display: grid;
  pointer-events: none; /* 투명 레이어가 클릭 가로채지 않게 */
}

.tasso-hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  animation: tasso-slide-a 15s ease-in-out infinite;
}

.tasso-hero-slide:nth-child(2) { animation-name: tasso-slide-b; }
.tasso-hero-slide:nth-child(3) { animation-name: tasso-slide-c; }

@keyframes tasso-slide-a {
  0%, 28%   { opacity: 1; transform: translateY(0); }
  33%, 95%  { opacity: 0; transform: translateY(-8px); }
  100%      { opacity: 1; transform: translateY(0); }
}

@keyframes tasso-slide-b {
  0%, 30%   { opacity: 0; transform: translateY(8px); }
  35%, 61%  { opacity: 1; transform: translateY(0); }
  66%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes tasso-slide-c {
  0%, 63%   { opacity: 0; transform: translateY(8px); }
  68%, 94%  { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* 한 줄 제목 — 어두운 영역 안에서 끝나도록 크기 제한 */
.tasso-hero-title-oneline {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem) !important;
  line-height: 1.1;
  margin-bottom: 18px !important;
  white-space: nowrap;
}

/* 책 표지 진열 (세 번째 슬라이드) — 다른 슬라이드와 같은 높이 유지 */
.tasso-books {
  position: relative;
  display: flex;
  width: fit-content; /* 브래킷이 책 무리 폭에 붙도록 — 먹박스는 아래 줄 유지 */
  align-items: flex-end;
  gap: 14px;
  margin: 8px 0 18px;
  height: 106px; /* 한 줄 제목 + 책 = 슬라이드 1·2와 같은 총높이 */
  perspective: 900px;
}

/* 책장 전체 뒤 금빛 광채 */
.tasso-books::before {
  content: "";
  position: absolute;
  inset: -34px -44px;
  background: radial-gradient(closest-side, rgba(223, 196, 120, 0.17), transparent 78%);
  pointer-events: none;
}

/* 책장 전체를 통으로 감싸는 모서리 브래킷 (왼쪽 위 · 오른쪽 아래) */
.tasso-books .tasso-corner {
  width: 36px;
  height: 36px;
}

.tasso-books .tasso-corner.tl {
  top: -13px;
  left: -16px;
}

.tasso-books .tasso-corner.br {
  bottom: -13px;
  right: -16px;
}

.tasso-books img {
  position: relative;
  width: 72px;
  height: 100px;
  object-fit: cover; /* 모든 표지를 동일 크기로 재단 → 오와열 정렬 */
  border-radius: 3px 7px 7px 3px; /* 책등은 각지고 배는 둥글게 */
  transform: rotateY(-14deg);
  box-shadow:
    12px 14px 26px rgba(0, 0, 0, 0.55),
    2px 3px 8px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(223, 196, 120, 0.25); /* 금빛 은은한 발광 */
  border-left: 3px solid rgba(255, 255, 255, 0.10); /* 책등 하이라이트 */
}

.tasso-hero-sub-books {
  margin-bottom: 0 !important;
}

/* 프로그램 시연 이미지들 (두 번째 슬라이드) */
.tasso-program-shots {
  display: flex;
  align-items: center;
  gap: 34px; /* 두 이미지가 붙어 보이지 않게 간격 확보 */
  margin: 6px 0 18px;
}

/* 금테 베젤 (히어로 슬라이드 이미지) — 가격표 데모 이미지와 같은 액자 세트, 크기만 축소 */
.tasso-shot-wrap {
  position: relative;
  display: block;
  padding: 4px;
  border-radius: 13px;
  background: linear-gradient(120deg, #8a6d3b, #f6e3a1 22%, #c9a34c 45%, #f6e8b0 62%, #a8853f 85%, #8a6d3b);
  background-size: 250% 250%;
  animation: tasso-gold-sheen 7s ease-in-out infinite;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(223, 196, 120, 0.22);
}

/* 어긋난 이중 금선 액자 (가격표와 동일, 축소판) */
.tasso-shot-wrap::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(223, 196, 120, 0.5);
  outline: 1px solid rgba(223, 196, 120, 0.18);
  outline-offset: 4px;
  border-radius: 10px;
  pointer-events: none;
}

/* 화면 위로 지나가는 빛 반사 (가격표와 동일) */
.tasso-shot-wrap::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 9px;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.13) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 140% 0;
  animation: tasso-screen-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}


.tasso-program-shot {
  display: block;
  height: 124px; /* 오른쪽 베이지 경계선과 간격 확보를 위해 살짝 축소 */
  width: auto;
  border-radius: 9px;
  animation: tasso-demo-breathe 6s ease-in-out infinite; /* 가격표와 같은 미세한 호흡 */
}

/* 슬라이드 이미지용 모서리 브래킷 — 작은 이미지에 맞게 축소 (기본 스타일은 tasso-home.css) */
.tasso-shot-wrap .tasso-corner {
  width: 32px;
  height: 32px;
}

.tasso-shot-wrap .tasso-corner.tl {
  top: -11px;
  left: -11px;
}

.tasso-shot-wrap .tasso-corner.br {
  bottom: -11px;
  right: -11px;
}

/* 통계 분포도: 흰 프레임 카드 (왼쪽 태블릿처럼 얇은 여백) */
.tasso-program-shot.framed {
  background: #ffffff;
  padding: 4px;
  height: 124px;
  box-sizing: border-box;
  border-radius: 9px;
}

@media (max-width: 768px) {
  /* 모바일: GIF만 작게 표시, 분포도는 숨겨서 슬라이드 높이 통일 */
  .tasso-program-shots { margin: 4px 0 14px; }
  .tasso-program-shot { height: 34vw; width: auto; }
  .tasso-program-shots .tasso-shot-wrap:nth-child(2) { display: none; }
}

@media (max-width: 768px) {
  .tasso-books { gap: 8px; height: auto; margin: 4px 0 14px; }
  .tasso-books img { height: 24vw; }
}

.tasso-hero-badge {
  display: inline-block;
  font-family: var(--tasso-brush);
  font-size: 1.9rem;
  font-weight: 400;
  color: #f5efdd;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.6);
}

/* 배지 옆 "프로그램 출시" — 붓 레드 강조 */
.tasso-badge-launch {
  font-style: normal;
  color: #e8503c;
}

.tasso-hero-title {
  font-family: var(--tasso-brush) !important;
  font-size: clamp(3.2rem, 7vw, 5.4rem) !important;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 3px;
  margin: 0 0 26px;
  color: var(--tasso-gold) !important;
  text-shadow: 0 0 46px rgba(223, 196, 120, 0.35), 4px 5px 0 rgba(0, 0, 0, 0.55);
}

.tasso-hero-title em {
  font-style: normal;
  color: #f5efdd;
}

/* 먹박스 (배너의 붓터치 텍스트 박스) */
.tasso-hero-sub {
  display: inline-block;
  background: #0e0d0b;
  border-radius: 8px 46px 10px 40px / 32px 10px 42px 12px;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.35);
  padding: 16px 28px;
  transform: rotate(-0.6deg);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--tasso-text) !important;
  line-height: 1.75;
  margin: 0 0 42px;
}

.tasso-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px; /* 슬라이드 문구 박스와 버튼 사이 여유 */
}

.tasso-btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 10px 22px 12px 20px / 18px 12px 22px 10px; /* 붓터치 모서리 */
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tasso-btn-primary {
  background: var(--tasso-accent) !important;
  color: var(--tasso-on-accent) !important;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.35);
}

.tasso-btn-primary:hover {
  background: var(--tasso-accent-hover) !important;
  transform: translateY(-2px);
}

.tasso-btn-ghost {
  border: 1px solid var(--tasso-border);
  color: var(--tasso-text) !important;
  background: rgba(255, 255, 255, 0.03);
}

.tasso-btn-ghost:hover {
  border-color: var(--tasso-gold);
  color: var(--tasso-gold) !important;
  transform: translateY(-2px);
}

/* 모바일 히어로 */
@media (max-width: 768px) {
  .tasso-hero { padding: 64px 20px 84px; }
  .tasso-hero::before { opacity: 0.14; }
  .tasso-hero::after { display: none; }
  .tasso-hero-chart { opacity: 0.22; width: 78vw; right: -10vw; bottom: 8px; }
  .tasso-hero-samurai-wrap { display: none; }
  .tasso-leaves { display: none; }
  .tasso-birds { display: none; }
  .tasso-hero-mountains { display: none; }
  /* 모바일: 링크 카드는 버튼 아래 본문 흐름으로 */
  .tasso-hero { display: flex; flex-direction: column; }
  .tasso-hero-inner { order: 1; }
  .tasso-hero-links {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 28px;
  }
  .tasso-btn { width: 100%; text-align: center; }
}

