/* =========================
   BASE WRAPPER
========================= */

.ai-kw-wrapper{
    max-width: 820px;
    margin: 100px auto;
    padding: 0 24px;
    font-family: Inter, system-ui, sans-serif;
    color: #fff;
    position: relative;
  }
  
  /* glow background */
  .ai-glow{
    position:absolute;
    inset:0;
    background: radial-gradient(circle at 30% 10%, rgba(108,92,231,0.25), transparent 40%);
    filter: blur(60px);
    z-index:-1;
  }
  
  /* =========================
     TITLE
  ========================= */
  
  .ai-title{
    text-align:center;
    margin-bottom: 20px;
  }
  
  .ai-title h1{
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  .ai-title p{
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
  }
  
  /* =========================
     HERO BOX
  ========================= */
  
  .ai-hero-box{
    position: relative;
    border-radius: 28px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    overflow: hidden;
  }
  
  /* =========================
     VERCEL STYLE BORDER ANIMATION
  ========================= */
  
  .ai-border-glow{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:0;
  }
  
  /* moving gradient ring */
  .ai-border-glow::before{
    content:"";
    position:absolute;
    width:200%;
    height:200%;
    top:-50%;
    left:-50%;
  
    background: conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(108,92,231,0.9) 70deg,
      rgba(0,212,255,0.9) 140deg,
      transparent 220deg,
      transparent 360deg
    );
  
    animation: spin 6s linear infinite;
    filter: blur(18px);
    opacity: 0.75;
  }
  
  /* inner mask */
  .ai-border-glow::after{
    content:"";
    position:absolute;
    inset: 2px;
    background: rgba(10,10,15,0.88);
    border-radius: 26px;
  }
  
  @keyframes spin{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
  }
  




  /* =========================
     FORM
  ========================= */
  
  .ai-form{
    position: relative;
    z-index: 2;
  }
  
  .ai-input-wrap{
    padding: 6px;
  }
  
  .ai-textarea{
    width:100%;
    min-height: 90px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
  }
  
  .ai-textarea::placeholder{
    color: rgba(255,255,255,0.35);
  }
  
  /* =========================
     BOTTOM BAR
  ========================= */
  
  .ai-bottom-bar{
    display:flex;
    justify-content: space-between;
    align-items:center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  
  .ai-left{
    display:flex;
    gap:10px;
  }
  
  /* icon buttons */
  .ai-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
  
    color: rgba(255,255,255,0.7);
  
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .ai-icon-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
  }


.ai-submit-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(135deg, #6c5ce7, #00d4ff);
  color: white;

  border: none;
  cursor: pointer;

  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(108,92,231,0.25);
}

.ai-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(108,92,231,0.4);
}

  /* =========================
     CHIPS
  ========================= */
  
  .ai-suggestions{
    margin-top: 16px;
    margin-bottom: 45px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
  }
  
  .chip{
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255, 255, 255, 0.719);
    cursor:pointer;
    transition:0.2s;
  }
  
  .chip:hover{
    background: rgba(255,255,255,0.08);
    color:white;
    transform: translateY(-1px);
  }
  
  /* =========================
     ACCESSIBILITY
  ========================= */
  
  .sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }



  
/* wrapper 기준 필요 */
.ai-input-wrap{
    position: relative;
  }
  
  /* overlay text */
  .typing-overlay{
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
  
    font-size: 15px;
    line-height: 1.6;
  
    color: rgba(255,255,255,0.45);
    pointer-events: none;
  
    white-space: nowrap;
    overflow: hidden;
  }
  
  /* cursor */
  .typing-cursor{
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    color: rgba(255,255,255,0.6);
  }
  
  @keyframes blink{
    0%,100%{opacity:0;}
    50%{opacity:1;}
  }
  
  /* textarea 위로 올리기 */
  .ai-textarea{
    position: relative;
    z-index: 2;
    background: transparent;
  }

  .prompt_box {
    position: relative;
  }
  
  .input-wrap {
    position: relative;
  }
  
  /* overlay가 textarea 위에 정확히 겹쳐야 함 */
  .typing-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
  
    pointer-events: none;
    z-index: 1;
  
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
  }
  
  /* textarea는 overlay 위 */
  .ai-textarea {
    position: relative;
    z-index: 2;
  
    background: transparent;
    color: white;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
  }
  
  /* 커서 깜빡임 */
  .cursor {
    animation: blink 1s infinite;
    opacity: 0.7;
  }
  
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }