/* ============================================================
   chat12 - 새 디자인 (풀 와이드 + 다크 히어로 + 인터랙티브)
   모든 선택자는 #tg-chat12-wrapper 내부로 격리
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800;900&display=swap');

/* 썸네일 히든 */
.tg-c12__thumb-hidden { display: none !important; }

/* ── 래퍼 리셋 ── */
#tg-chat12-wrapper {
  --c12-teal:    #00d4aa;
  --c12-cyan:    #22d3ff;
  --c12-green:   #10b981;
  --c12-blue:    #3b82f6;
  --c12-indigo:  #6366f1;
  --c12-amber:   #f59e0b;
  --c12-dark:    #0a0f1e;
  --c12-dark2:   #111827;
  --c12-dark3:   #1f2937;
  --c12-dark4:   #374151;
  --c12-light:   #f9fafb;
  --c12-muted:   #9ca3af;
  --c12-border:  rgba(255,255,255,0.08);
  --c12-font:    'Pretendard',-apple-system,BlinkMacSystemFont,sans-serif;
  --c12-ease:    cubic-bezier(0.4,0,0.2,1);

  font-family: var(--c12-font) !important;
  color: var(--c12-light);
  line-height: 1.7;
  background: transparent;
  width: 100%;
  overflow-x: hidden;
}

#tg-chat12-wrapper *, #tg-chat12-wrapper *::before, #tg-chat12-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c12-dark);
  overflow: hidden;
  padding: 5rem 1.5rem;
}

/* 움직이는 배경 오브 */
#tg-chat12-wrapper .tg-c12__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#tg-chat12-wrapper .tg-c12__hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: c12-float 8s ease-in-out infinite;
}

#tg-chat12-wrapper .tg-c12__hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.25), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
#tg-chat12-wrapper .tg-c12__hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,211,255,0.2), transparent 70%);
  bottom: -80px; right: 10%;
  animation-delay: -3s;
}
#tg-chat12-wrapper .tg-c12__hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
  top: 30%; right: 0;
  animation-delay: -6s;
}

@keyframes c12-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

#tg-chat12-wrapper .tg-c12__hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

#tg-chat12-wrapper .tg-c12__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--c12-teal);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

#tg-chat12-wrapper .tg-c12__eyebrow .material-symbols-outlined {
  font-size: 1.1rem;
}

#tg-chat12-wrapper .tg-c12__hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.03em;
}

#tg-chat12-wrapper .tg-c12__hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c12-teal), var(--c12-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#tg-chat12-wrapper .tg-c12__hero-desc {
  font-size: 1.125rem;
  color: var(--c12-muted);
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

#tg-chat12-wrapper .tg-c12__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--c12-teal), var(--c12-cyan));
  color: var(--c12-dark) !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.25s var(--c12-ease), box-shadow 0.25s var(--c12-ease);
  box-shadow: 0 0 30px rgba(0,212,170,0.4);
}

#tg-chat12-wrapper .tg-c12__cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(0,212,170,0.6);
  text-decoration: none !important;
}

/* ══════════════════════════════════════
   공통 섹션 타이틀
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__section-title {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--c12-dark) !important;
  margin-bottom: 0.75rem !important;
}

#tg-chat12-wrapper .tg-c12__section-title--light {
  color: #fff !important;
}

#tg-chat12-wrapper .tg-c12__section-title .material-symbols-outlined {
  font-size: 1.75rem;
}

#tg-chat12-wrapper .tg-c12__section-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════
   문제 제기
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__problem {
  width: 100%;
  background: var(--c12-light);
  padding: 4rem 1.5rem;
}

#tg-chat12-wrapper .tg-c12__problem-inner {
  max-width: 900px;
  margin: 0 auto;
}

#tg-chat12-wrapper .tg-c12__problem .tg-c12__section-title {
  color: var(--c12-dark) !important;
}


#tg-chat12-wrapper .tg-c12__chaos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

#tg-chat12-wrapper .tg-c12__chaos-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s var(--c12-ease), box-shadow 0.3s var(--c12-ease);
  opacity: 0;
  transform: translateY(20px);
}

#tg-chat12-wrapper .tg-c12__chaos-item.is-visible {
  animation: c12-slideUp 0.5s var(--c12-ease) forwards;
}

@keyframes c12-slideUp {
  to { opacity: 1; transform: translateY(0); }
}

#tg-chat12-wrapper .tg-c12__chaos-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#tg-chat12-wrapper .tg-c12__chaos-icon {
  font-size: 1.75rem;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

#tg-chat12-wrapper .tg-c12__chaos-item p {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

#tg-chat12-wrapper .tg-c12__solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  margin-top: 0.5rem;
  width: 100%;
}

#tg-chat12-wrapper .tg-c12__solution-badge .material-symbols-outlined {
  color: var(--c12-green);
  font-size: 1.5rem;
}

/* ══════════════════════════════════════
   폴더 템플릿 (아코디언 카드)
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__templates {
  width: 100%;
  background: var(--c12-dark2);
  padding: 4.5rem 1.5rem;
}

#tg-chat12-wrapper .tg-c12__templates-inner {
  max-width: 900px;
  margin: 0 auto;
}

#tg-chat12-wrapper .tg-c12__folder-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

#tg-chat12-wrapper .tg-c12__folder-card {
  background: var(--c12-dark3);
  border: 1px solid var(--c12-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s var(--c12-ease), box-shadow 0.3s var(--c12-ease);
  cursor: pointer;
}

#tg-chat12-wrapper .tg-c12__folder-card:hover,
#tg-chat12-wrapper .tg-c12__folder-card[aria-expanded="true"] {
  border-color: rgba(0,212,170,0.35);
  box-shadow: 0 0 0 1px rgba(0,212,170,0.15), 0 8px 32px rgba(0,0,0,0.35);
}

#tg-chat12-wrapper .tg-c12__folder-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  user-select: none;
}

#tg-chat12-wrapper .tg-c12__folder-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#tg-chat12-wrapper .tg-c12__folder-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: #fff !important;
}

#tg-chat12-wrapper .tg-c12__folder-icon--green  { background: linear-gradient(135deg,#059669,#10b981); }
#tg-chat12-wrapper .tg-c12__folder-icon--blue   { background: linear-gradient(135deg,#2563eb,#3b82f6); }
#tg-chat12-wrapper .tg-c12__folder-icon--purple { background: linear-gradient(135deg,#7c3aed,#8b5cf6); }

#tg-chat12-wrapper .tg-c12__folder-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#tg-chat12-wrapper .tg-c12__folder-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
}

#tg-chat12-wrapper .tg-c12__folder-sub {
  font-size: 0.8125rem;
  color: var(--c12-muted);
}

#tg-chat12-wrapper .tg-c12__folder-toggle {
  color: var(--c12-muted);
  font-size: 1.5rem;
  transition: transform 0.3s var(--c12-ease);
  flex-shrink: 0;
}

#tg-chat12-wrapper .tg-c12__folder-card[aria-expanded="true"] .tg-c12__folder-toggle {
  transform: rotate(180deg);
  color: var(--c12-teal);
}

#tg-chat12-wrapper .tg-c12__folder-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--c12-border);
}

#tg-chat12-wrapper .tg-c12__folder-card[aria-expanded="true"] .tg-c12__folder-body {
  display: flex;
  animation: c12-slideDown 0.3s var(--c12-ease);
}

@keyframes c12-slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#tg-chat12-wrapper .tg-c12__rule {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

#tg-chat12-wrapper .tg-c12__rule .material-symbols-outlined { font-size: 1.2rem; flex-shrink:0; margin-top: 0.1rem; }

#tg-chat12-wrapper .tg-c12__rule--in {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: #a7f3d0;
}
#tg-chat12-wrapper .tg-c12__rule--in .material-symbols-outlined { color: var(--c12-green); }

#tg-chat12-wrapper .tg-c12__rule--out {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
#tg-chat12-wrapper .tg-c12__rule--out .material-symbols-outlined { color: #f87171; }

#tg-chat12-wrapper .tg-c12__tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #fcd34d;
  line-height: 1.6;
  margin-top: 0.25rem;
}
#tg-chat12-wrapper .tg-c12__tip .material-symbols-outlined { font-size: 1.1rem; flex-shrink:0; color: var(--c12-amber); margin-top: 0.1rem; }

/* ══════════════════════════════════════
   3단계 가이드
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__howto {
  width: 100%;
  background: var(--c12-light);
  padding: 4.5rem 1.5rem;
}

#tg-chat12-wrapper .tg-c12__howto-inner {
  max-width: 700px;
  margin: 0 auto;
}

#tg-chat12-wrapper .tg-c12__howto .tg-c12__section-title {
  color: var(--c12-dark) !important;
  margin-bottom: 2.5rem !important;
}

#tg-chat12-wrapper .tg-c12__steps-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#tg-chat12-wrapper .tg-c12__step-line {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c12-teal), var(--c12-cyan), var(--c12-indigo));
  opacity: 0.3;
}

#tg-chat12-wrapper .tg-c12__step-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--c12-ease), transform 0.5s var(--c12-ease);
}

#tg-chat12-wrapper .tg-c12__step-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

#tg-chat12-wrapper .tg-c12__step-dot {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c12-dark2), var(--c12-dark3));
  border: 2px solid rgba(0,212,170,0.5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(0,212,170,0.2);
}

#tg-chat12-wrapper .tg-c12__step-dot .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--c12-teal) !important;
}

#tg-chat12-wrapper .tg-c12__step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  flex: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s var(--c12-ease);
}

#tg-chat12-wrapper .tg-c12__step-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

#tg-chat12-wrapper .tg-c12__step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c12-teal);
  margin-bottom: 0.4rem;
}

#tg-chat12-wrapper .tg-c12__step-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--c12-dark) !important;
  margin-bottom: 0.5rem !important;
}

#tg-chat12-wrapper .tg-c12__step-text {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.7;
}

#tg-chat12-wrapper .tg-c12__step-text strong {
  color: var(--c12-dark) !important;
  font-weight: 700;
}

/* ══════════════════════════════════════
   프로팁 배너
══════════════════════════════════════ */
#tg-chat12-wrapper .tg-c12__protip {
  width: 100%;
  background: linear-gradient(135deg, var(--c12-dark) 0%, #0d1b2a 100%);
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(0,212,170,0.15);
}

#tg-chat12-wrapper .tg-c12__protip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

#tg-chat12-wrapper .tg-c12__protip-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--c12-amber), #fbbf24);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

#tg-chat12-wrapper .tg-c12__protip-icon .material-symbols-outlined {
  font-size: 2.25rem;
  color: #fff !important;
}

#tg-chat12-wrapper .tg-c12__protip-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 1.25rem !important;
}

#tg-chat12-wrapper .tg-c12__protip-list {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0 !important;
}

#tg-chat12-wrapper .tg-c12__protip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

#tg-chat12-wrapper .tg-c12__protip-list li .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--c12-teal) !important;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

#tg-chat12-wrapper .tg-c12__protip-list li strong {
  color: #fff !important;
  font-weight: 700;
}

/* ══════════════════════════════════════
   반응형
══════════════════════════════════════ */
@media (max-width: 768px) {
  #tg-chat12-wrapper .tg-c12__hero { min-height: 420px; padding: 4rem 1.25rem; }
  #tg-chat12-wrapper .tg-c12__problem,
  #tg-chat12-wrapper .tg-c12__templates,
  #tg-chat12-wrapper .tg-c12__howto,
  #tg-chat12-wrapper .tg-c12__protip { padding: 3rem 1.25rem; }
  #tg-chat12-wrapper .tg-c12__protip-inner { flex-direction: column; gap: 1.5rem; }
  #tg-chat12-wrapper .tg-c12__step-line { left: 23px; }
  #tg-chat12-wrapper .tg-c12__section-title { font-size: 1.5rem !important; }
}

@media (max-width: 480px) {
  #tg-chat12-wrapper .tg-c12__chaos-list { grid-template-columns: 1fr; }
  #tg-chat12-wrapper .tg-c12__folder-header { gap: 0.75rem; }
  #tg-chat12-wrapper .tg-c12__folder-icon { width: 40px; height: 40px; }
}
