/* ======================================
   AI Website Assistant – themes
====================================== */

/* Base layout container */

.chef-ai-chat-wrapper {
  max-width: 760px;
  margin: 4rem auto;
  padding: 1.75rem 1.9rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 26px 80px rgba(12, 4, 60, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: inherit;
}

/* Titelbalk en klein AI-icoon */
.chef-ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.chef-ai-chat-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.chef-ai-chat-title-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, #ffd86f, #ff7ad9);
  box-shadow: 0 0 18px rgba(255, 182, 255, 0.8);
}

.chef-ai-messages {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.4rem 0.1rem 0.4rem 0;
}

.chef-ai-chat-message {
  display: flex;
  margin-bottom: 0.55rem;
}

.chef-ai-chat-bubble {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

/* Gebruiker (rechts) */
.chef-ai-user {
  justify-content: flex-end;
}

.chef-ai-user .chef-ai-chat-bubble {
  margin-left: auto;
  background: linear-gradient(135deg, #6f5cff, #c36bff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(58, 33, 175, 0.8);
}

/* Assistent (links) */
.chef-ai-assistant {
  justify-content: flex-start;
}

.chef-ai-assistant .chef-ai-chat-bubble {
  margin-right: auto;
  border-radius: 20px;
  background: rgba(12, 8, 62, 0.92);
  color: #f6f3ff;
}

/* Systeem / fouten in subtiele badge */
.chef-ai-system {
  justify-content: center;
}

.chef-ai-system .chef-ai-chat-bubble {
  max-width: 100%;
  background: rgba(255, 214, 130, 0.18);
  color: #ffe9ba;
  border-radius: 999px;
}

.chef-ai-chat-summary {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.chef-ai-chat-keypoints {
  margin: 0 0 0.2rem 1rem;
  padding: 0;
}

.chef-ai-chat-keypoints li {
  margin-bottom: 0.16rem;
}

.chef-ai-chat-answer {
  margin: 0.25rem 0 0;
}

.chef-ai-typing-indicator {
  min-height: 18px;
  margin: 0.3rem 0 0.1rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.chef-ai-typing-indicator.is-visible::before {
  content: 'AI is aan het typen…';
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.chef-ai-input-area {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
}

.chef-ai-input-area textarea {
  flex: 1;
  resize: vertical;
  min-height: 50px;
  max-height: 110px;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(13, 9, 64, 0.88);
  color: #ffffff;
}

.chef-ai-input-area textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.chef-ai-input-area button {
  align-self: flex-end;
  padding: 0 1.1rem;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6f5cff, #c36bff);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(61, 34, 190, 0.9);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

/* Pijltje in verzendknop – alleen SVG, geen extra cirkel */
.chef-ai-send-icon {
  display: inline-block;
}

.chef-ai-input-area button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 18px 40px rgba(61, 34, 190, 0.95);
}

.chef-ai-input-area button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Source cards (onder antwoord) */
.chef-ai-source-section {
  width: 100%;
  margin-top: 0.3rem;
}

.chef-ai-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.chef-ai-source-card {
  border-radius: 16px;
  padding: 0.6rem 0.75rem;
  background: rgba(12, 5, 66, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: block;
  text-decoration: none;
}

.chef-ai-source-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.1rem;
}

.chef-ai-source-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: #ffffff;
}

.chef-ai-source-card p {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.chef-ai-source-card a {
  font-size: 0.78rem;
  color: #f7d6ff;
  text-decoration: underline;
}

.chef-ai-followups {
  margin-top: 0.4rem;
}

.chef-ai-followups-label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.chef-ai-followup-btn {
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 9, 90, 0.95);
  color: #f7d6ff;
  cursor: pointer;
}

.chef-ai-followup-btn:hover {
  background: rgba(42, 20, 130, 0.95);
}

@media (max-width: 600px) {
  .chef-ai-chat-wrapper {
    margin: 2.4rem 1rem;
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 22px;
  }

  .chef-ai-chat-bubble {
    max-width: 100%;
  }
}

/* ---------- AI theme (glass / blur) ---------- */

.chef-ai-theme-ai .chef-ai-chat-wrapper {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 26px 80px rgba(12, 4, 60, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.chef-ai-theme-ai .chef-ai-chat-title {
  color: #ffffff;
}

.chef-ai-theme-ai .chef-ai-assistant .chef-ai-chat-bubble {
  background: rgba(12, 8, 62, 0.92);
  color: #f6f3ff;
}

.chef-ai-theme-ai .chef-ai-user .chef-ai-chat-bubble {
  background: linear-gradient(135deg, #6f5cff, #c36bff);
  color: #ffffff;
}

.chef-ai-theme-ai .chef-ai-system .chef-ai-chat-bubble {
  background: rgba(255, 214, 130, 0.18);
  color: #ffe9ba;
}

.chef-ai-theme-ai .chef-ai-input-area textarea {
  background: rgba(13, 9, 64, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.chef-ai-theme-ai .chef-ai-input-area textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.chef-ai-theme-ai .chef-ai-input-area button {
  background: linear-gradient(135deg, #6f5cff, #c36bff);
}

.chef-ai-theme-ai .chef-ai-source-card {
  background: rgba(12, 5, 66, 0.96);
  border-color: rgba(255, 255, 255, 0.22);
}

.chef-ai-theme-ai .chef-ai-source-card h4,
.chef-ai-theme-ai .chef-ai-followups-label {
  color: #ffffff;
}

.chef-ai-theme-ai .chef-ai-source-card p {
  color: rgba(255, 255, 255, 0.8);
}

.chef-ai-theme-ai .chef-ai-followup-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(20, 9, 90, 0.95);
  color: #f7d6ff;
}

.chef-ai-theme-ai .chef-ai-followup-btn:hover {
  background: rgba(42, 20, 130, 0.95);
}

/* ---------- Default theme (minimal) ---------- */

.chef-ai-theme-default .chef-ai-chat-wrapper {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chef-ai-theme-default .chef-ai-chat-title {
  color: #202124;
}

.chef-ai-theme-default .chef-ai-assistant .chef-ai-chat-bubble {
  background: #ffffff;
  color: #222222;
  border: 1px solid #e0e0e0;
}

.chef-ai-theme-default .chef-ai-user .chef-ai-chat-bubble {
  background: #1a73e8;
  color: #ffffff;
}

.chef-ai-theme-default .chef-ai-system .chef-ai-chat-bubble {
  background: #fff4e5;
  color: #744210;
}

.chef-ai-theme-default .chef-ai-input-area textarea {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dadce0;
  color: #202124;
}

.chef-ai-theme-default .chef-ai-input-area textarea::placeholder {
  color: #80868b;
}

.chef-ai-theme-default .chef-ai-input-area button {
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: none;
}

.chef-ai-theme-default .chef-ai-input-area button:hover:not(:disabled) {
  transform: none;
  filter: none;
  box-shadow: none;
}

.chef-ai-theme-default .chef-ai-source-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

.chef-ai-theme-default .chef-ai-source-card h4,
.chef-ai-theme-default .chef-ai-followups-label {
  color: #202124;
}

.chef-ai-theme-default .chef-ai-source-card p {
  color: #5f6368;
}

.chef-ai-theme-default .chef-ai-followup-btn {
  border-color: #dadce0;
  background: #f8f9fa;
  color: #1a73e8;
}

.chef-ai-theme-default .chef-ai-followup-btn:hover {
  background: #e8f0fe;
}

/* ---------- Light theme ---------- */

.chef-ai-theme-light .chef-ai-chat-wrapper {
  border-radius: 22px;
  background: #f9f9fb;
  border: 1px solid #e4e5f1;
  box-shadow: 0 18px 40px rgba(33, 35, 75, 0.12);
}

.chef-ai-theme-light .chef-ai-chat-title {
  color: #1f1f32;
}

.chef-ai-theme-light .chef-ai-assistant .chef-ai-chat-bubble {
  background: #ffffff;
  color: #18192a;
}

.chef-ai-theme-light .chef-ai-user .chef-ai-chat-bubble {
  background: linear-gradient(135deg, #5c6fff, #9a63ff);
}

.chef-ai-theme-light .chef-ai-system .chef-ai-chat-bubble {
  background: #fff4e5;
  color: #744210;
}

.chef-ai-theme-light .chef-ai-input-area textarea {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d3d6ec;
  color: #171826;
}

.chef-ai-theme-light .chef-ai-input-area textarea::placeholder {
  color: #9ea1c2;
}

.chef-ai-theme-light .chef-ai-input-area button {
  background: linear-gradient(135deg, #5c6fff, #9a63ff);
  box-shadow: none;
}

.chef-ai-theme-light .chef-ai-input-area button:hover:not(:disabled) {
  transform: none;
  filter: none;
  box-shadow: none;
}

.chef-ai-theme-light .chef-ai-source-card {
  background: #ffffff;
  border-color: #e5e7f4;
}

.chef-ai-theme-light .chef-ai-source-card h4,
.chef-ai-theme-light .chef-ai-followups-label {
  color: #171826;
}

.chef-ai-theme-light .chef-ai-source-card p {
  color: #6c708f;
}

.chef-ai-theme-light .chef-ai-followup-btn {
  border-color: #d3d6ec;
  background: #f1f3ff;
  color: #5c6fff;
}

.chef-ai-theme-light .chef-ai-followup-btn:hover {
  background: #e2e6ff;
}

/* ---------- Dark theme ---------- */

.chef-ai-theme-dark .chef-ai-chat-wrapper {
  border-radius: 22px;
  background: #101320;
  border: 1px solid #24293d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.chef-ai-theme-dark .chef-ai-chat-title {
  color: #f5f5ff;
}

.chef-ai-theme-dark .chef-ai-assistant .chef-ai-chat-bubble {
  background: #050814;
  color: #f5f5ff;
}

.chef-ai-theme-dark .chef-ai-user .chef-ai-chat-bubble {
  background: linear-gradient(135deg, #4b5cff, #9051ff);
}

.chef-ai-theme-dark .chef-ai-system .chef-ai-chat-bubble {
  background: rgba(255, 214, 130, 0.22);
  color: #ffe9ba;
}

.chef-ai-theme-dark .chef-ai-input-area textarea {
  background: #050814;
  border-radius: 16px;
  border: 1px solid #282f4a;
  color: #ffffff;
}

.chef-ai-theme-dark .chef-ai-input-area textarea::placeholder {
  color: #7a7f9f;
}

.chef-ai-theme-dark .chef-ai-input-area button {
  background: linear-gradient(135deg, #4b5cff, #9051ff);
}

.chef-ai-theme-dark .chef-ai-source-card {
  background: #050814;
  border-color: #282f4a;
}

.chef-ai-theme-dark .chef-ai-source-card h4,
.chef-ai-theme-dark .chef-ai-followups-label {
  color: #f5f5ff;
}

.chef-ai-theme-dark .chef-ai-source-card p {
  color: #a0a4c5;
}

.chef-ai-theme-dark .chef-ai-followup-btn {
  border-color: #282f4a;
  background: #101320;
  color: #f5f5ff;
}

.chef-ai-theme-dark .chef-ai-followup-btn:hover {
  background: #171a2b;
}

