/**
 * AXINOVA 광고 배너 스타일
 * 적용된 배너: 히어로 배너, 좌우 분리형, 플로팅 위젯
 */

/* =========================================
   VERSION 1 — 히어로 배너 (풀스크린)
========================================= */
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a0533 0%, #0a0a0f 60%);
}
/* 배경 그리드 */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138,43,226,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,43,226,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* 빛나는 원 */
.hero-banner::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,.25) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(109,40,217,.2);
  border: 1px solid rgba(139,92,246,.4);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  color: #a78bfa;
  margin-bottom: 32px;
  position: relative; z-index: 1;
  animation: fadeInDown .6s ease both;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 8px #7c3aed;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.4); }
}
@keyframes fadeInDown {
  from{ opacity:0; transform:translateY(-20px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes fadeInUp {
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from{ opacity:0; } to{ opacity:1; }
}
.hero-pre {
  font-size: 16px; font-weight: 300;
  color: #9ca3af; margin-bottom: 16px;
  position: relative; z-index: 1;
  animation: fadeInDown .7s .1s ease both;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  position: relative; z-index: 1;
  animation: fadeInDown .7s .2s ease both;
}
.hero-title .line1 { color: #e2e8f0; }
.hero-title .line2 {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 22px);
  color: #94a3b8;
  font-weight: 400;
  position: relative; z-index: 1;
  animation: fadeInUp .7s .3s ease both;
}
.hero-quote {
  margin: 32px auto 0;
  max-width: 640px;
  padding: 20px 32px;
  border-left: 3px solid #7c3aed;
  background: rgba(124,58,237,.08);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-weight: 500;
  color: #c4b5fd;
  font-style: italic;
  line-height: 1.6;
  position: relative; z-index: 1;
  animation: fadeInUp .7s .4s ease both;
}
.hero-quote strong { font-style: normal; color: #a78bfa; }
.hero-cta-group {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-top: 44px;
  position: relative; z-index: 1;
  animation: fadeInUp .7s .5s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 50px;
  font-size: 16px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 32px rgba(124,58,237,.4);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124,58,237,.6); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: transparent;
  border: 1.5px solid rgba(139,92,246,.5);
  border-radius: 50px;
  font-size: 16px; font-weight: 600; color: #a78bfa;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(139,92,246,.1);
  border-color: #a78bfa;
  transform: translateY(-3px);
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  justify-content: center; margin-top: 60px;
  position: relative; z-index: 1;
  animation: fadeIn .8s .7s ease both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* =========================================
   VERSION 2 — 중간 강조 배너 (좌우 분리)
========================================= */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #0d0d1a;
  border: 1px solid #1e1e3a;
  border-radius: 24px;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1100px;
}
.split-left {
  padding: 64px 56px;
  background: linear-gradient(135deg, #0f0f23 0%, #110e2a 100%);
  display: flex; flex-direction: column; justify-content: center;
}
.split-tag {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: #a78bfa;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px;
  margin-bottom: 24px;
}
.split-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900; line-height: 1.2;
  color: #f1f5f9; margin-bottom: 20px;
}
.split-title span {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.split-desc {
  font-size: 16px; line-height: 1.8; color: #94a3b8;
  margin-bottom: 32px;
}
.split-desc strong { color: #c4b5fd; font-weight: 600; }
.feature-list { list-style: none; margin-bottom: 36px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: #cbd5e1;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .icon {
  width: 28px; height: 28px;
  background: rgba(124,58,237,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.split-right {
  background: linear-gradient(135deg, #0e0e20 0%, #12102a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 48px;
  position: relative;
}
/* AI 채팅 말풍선 UI */
.chat-window {
  width: 100%; max-width: 380px;
  background: #13132a;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(139,92,246,.1);
}
.chat-header {
  background: linear-gradient(135deg, #1e1040, #1a1035);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(139,92,246,.2);
}
.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-header-info .name { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.chat-header-info .status { font-size: 11px; color: #4ade80; display: flex; align-items: center; gap: 4px; }
.chat-header-info .status::before {
  content: ''; width: 6px; height: 6px;
  background: #4ade80; border-radius: 50%;
}
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg.user { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.6;
}
.msg.bot .msg-bubble {
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.2);
  color: #c4b5fd; border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; border-bottom-right-radius: 4px;
}
.msg-bubble .courses { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.course-chip {
  background: rgba(139,92,246,.2); border: 1px solid rgba(139,92,246,.3);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #a78bfa;
}
.typing-dot {
  display: inline-flex; gap: 4px; align-items: center; padding: 4px 0;
}
.typing-dot span {
  width: 6px; height: 6px; border-radius: 50%; background: #7c3aed;
  animation: typing .9s infinite;
}
.typing-dot span:nth-child(2){ animation-delay:.2s; }
.typing-dot span:nth-child(3){ animation-delay:.4s; }
@keyframes typing {
  0%,60%,100%{ transform:translateY(0); opacity:.4; }
  30%{ transform:translateY(-5px); opacity:1; }
}
.chat-input-bar {
  margin: 4px 20px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 50px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  color: #64748b; font-size: 13px;
}
.chat-send-btn {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 14px; cursor: pointer;
}

/* =========================================
   VERSION 5 — 플로팅 배너
========================================= */
.floating-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8888; /* Page Agent (9999)보다 낮게 설정 */
  width: 320px;
}
.floating-panel {
  background: #13132a;
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(124,58,237,.15);
  display: none; /* 기본 숨김 */
}
.floating-panel.show {
  display: block;
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
.floating-header {
  background: linear-gradient(135deg, #1e1040, #1a1035);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(139,92,246,.2);
}
.floating-header-left {
  display: flex; align-items: center; gap: 10px;
}
.float-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.float-title { font-size: 14px; font-weight: 700; color: #e2e8f0; }
.float-status { font-size: 11px; color: #4ade80; }
.float-close {
  font-size: 18px; color: #475569; cursor: pointer;
  transition: color .2s;
}
.float-close:hover { color: #e2e8f0; }
.floating-body { padding: 20px 18px; }
.float-msg {
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  font-size: 14px; line-height: 1.6; color: #c4b5fd;
  margin-bottom: 16px;
}
.float-msg .greeting { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.float-input-area {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px; color: #475569;
  margin-bottom: 12px;
}
.float-btns { display: flex; gap: 8px; }
.float-btn-start {
  flex: 1; padding: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #fff;
  cursor: pointer; transition: opacity .2s;
}
.float-btn-start:hover { opacity: .85; }
.float-btn-close {
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px; color: #64748b; cursor: pointer;
}
.floating-footer {
  padding: 10px 18px 16px;
  font-size: 11px; color: #334155; text-align: center;
}
/* 플로팅 버튼 (숨겨진 상태 표시용) */
.floating-trigger {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 50px; padding: 12px 20px;
  cursor: pointer; box-shadow: 0 8px 30px rgba(124,58,237,.5);
  transition: transform .2s, box-shadow .2s;
}
.floating-trigger.hidden {
  display: none;
}
.floating-trigger:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(124,58,237,.7); }
.floating-trigger span { font-size: 14px; font-weight: 700; color: #fff; }
.pulse-ring {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px;
  border-radius: 50%; background: #ef4444;
  border: 2px solid #13132a;
  font-size: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .split-banner { grid-template-columns: 1fr; }
  .split-left { padding: 48px 28px; }
  .split-right { padding: 40px 28px; }
  .hero-stats { gap: 24px; }
  .floating-widget {
    width: 280px;
    bottom: 20px;
    right: 20px;
  }
}
