/* AI 인터뷰 에이전트 위젯 — 우측 하단 런처 버튼 + iframe 팝업 패널 */

/* 테마 토글과 한 줄로 정렬: [에이전트][테마 토글] 순서, 둘 다 44px */
.theme-toggle {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

#agent-launcher {
  position: fixed;
  right: 72px; /* 테마 토글(right: 20px, 44px) 왼쪽에 나란히 */
  bottom: 20px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#agent-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(110, 142, 251, 0.5);
}

#agent-launcher .agent-launcher-hint {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 28, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#agent-launcher:hover .agent-launcher-hint,
#agent-launcher.hint-visible .agent-launcher-hint {
  opacity: 1;
}

#agent-launcher.open .agent-launcher-hint {
  display: none;
}

/* 팝업 패널 — 화면 거의 전체 사용 (하단 버튼 줄만 남김) */
#agent-panel {
  position: fixed;
  inset: 20px 20px 76px 20px;
  z-index: 99999;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d10;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#agent-panel.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#agent-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  /* 위·아래 여백을 남겨 팝업창 느낌 유지 (하단은 버튼 줄 공간) */
  #agent-panel {
    inset: 24px 10px 76px 10px;
    border-radius: 16px;
  }

  /* 팝업 위에서도 닫기 버튼이 보이도록 */
  #agent-launcher {
    z-index: 100001;
  }
}

/* ── 문의하기 폼 (포트폴리오 하단 '연락하기' 섹션 인라인) ──────────────────── */

/* 제안하기 컬럼 제거 후 폼이 섹션을 단독 사용 */
.contact-content-full {
  grid-template-columns: 1fr;
}

.contact-content-full .contact-form {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.contact-widget-inline label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-widget-inline input,
.contact-widget-inline textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: var(--bg-primary, #101014);
  color: var(--text-primary, #eee);
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-widget-inline textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-widget-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.contact-widget-actions button {
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-widget-submit {
  color: var(--bg-primary, #fff);
  background: var(--accent-color, #6e8efb);
}

.contact-widget-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-widget-status {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
}
