/* ============================
   GhidClinic AI Search Widget
   v2 - with clinics + filters
   ============================ */

.gc-ai-bubble,
.gc-ai-window {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}

.gc-ai-bubble *,
.gc-ai-window * {
  box-sizing: border-box;
}

/* --- Universal SVG sizing inside widget --- */
.gc-ai-bubble svg,
.gc-ai-window svg {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Inline icons next to text (greeting wave, sparkles) */
.gc-ai-icon-inline {
  display: inline-flex;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  color: #1976d2;
}

.gc-ai-icon-inline svg {
  width: 1em;
  height: 1em;
}

.gc-ai-icon-sparkle {
  color: #f59e0b;
}

/* --- Bubble --- */
.gc-ai-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.35);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

/* Outer pulsing halo - draws attention without being annoying */
.gc-ai-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(25, 118, 210, 0.4);
  z-index: -1;
  animation: gc-ai-halo-pulse 2.2s ease-out infinite;
}

@keyframes gc-ai-halo-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.gc-ai-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.5);
}

.gc-ai-bubble:hover::before {
  animation: none;
  opacity: 0;
}

.gc-ai-bubble:hover .gc-ai-bubble-icon {
  animation: none;
}

/* Subtle icon-only pulse - gently scales the SVG */
.gc-ai-bubble-icon svg {
  animation: gc-ai-icon-pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes gc-ai-icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .gc-ai-bubble-icon svg,
  .gc-ai-bubble::before {
    animation: none;
  }
  .gc-ai-bubble::before { opacity: 0; }
}

.gc-ai-bubble-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.gc-ai-bubble-icon svg { width: 22px; height: 22px; }

.gc-ai-bubble-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* --- Window --- */
.gc-ai-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.gc-ai-window.gc-ai-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* --- Header --- */
.gc-ai-header {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.gc-ai-header-title strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.gc-ai-header-title small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.gc-ai-close {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
  padding: 0;
}

.gc-ai-close svg { width: 18px; height: 18px; }

.gc-ai-close:hover { background: rgba(255, 255, 255, 0.3); }

/* --- Body --- */
.gc-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #f8fafc;
}

.gc-ai-intro p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

/* --- Quick filters (Toate / Medici / Clinici) --- */
.gc-ai-quickfilters {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.gc-ai-filter-btn {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.gc-ai-filter-btn:hover { color: #1976d2; }

.gc-ai-filter-btn.gc-ai-active {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
}

/* --- Suggestion chips --- */
.gc-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}

.gc-ai-suggestions small {
  font-size: 12px;
  color: #64748b;
  width: 100%;
  margin-bottom: 4px;
}

.gc-ai-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gc-ai-chip:hover {
  border-color: #1976d2;
  color: #1976d2;
  background: #eff6ff;
}

/* --- Loading / errors --- */
.gc-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 14px;
  gap: 12px;
}

.gc-ai-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: gc-ai-spin 0.8s linear infinite;
}

@keyframes gc-ai-spin {
  to { transform: rotate(360deg); }
}

.gc-ai-error,
.gc-ai-empty {
  background: #fff;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 14px 16px;
  color: #7f1d1d;
  font-size: 14px;
}

.gc-ai-empty {
  border-color: #fde68a;
  border-left-color: #f59e0b;
  color: #78350f;
}

.gc-ai-empty p { margin: 0 0 6px; line-height: 1.5; }

/* --- Summary --- */
.gc-ai-summary {
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid #1976d2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-ai-share-link {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
}

.gc-ai-share-link:hover { text-decoration: underline; }

/* --- Cards --- */
.gc-ai-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.gc-ai-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.gc-ai-card:hover {
  border-color: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.12);
}

.gc-ai-card-clinic {
  border-left: 3px solid #14b8a6;
}

.gc-ai-card-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gc-ai-card-clinic .gc-ai-card-img {
  border-radius: 12px;
}

.gc-ai-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-ai-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  text-wrap: pretty;
}

.gc-ai-tag-specialty {
  background: #dbeafe;
  color: #1e40af;
}

.gc-ai-tag-location {
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap; /* keep "📍 City" on one line */
}

.gc-ai-tag-more {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(30, 64, 175, 0.15);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.gc-ai-card-excerpt {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.gc-ai-card-info h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gc-ai-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  max-width: 100%;
  min-width: 0;
}

.gc-ai-card-info {
  flex: 1;
  min-width: 0; /* CRITICAL: allows flex child to shrink and wrap */
  max-width: 100%;
  overflow: hidden;
}

/* --- Footer --- */
.gc-ai-footer {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

#gc-ai-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

#gc-ai-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  font-family: inherit;
  background: #f8fafc;
}

#gc-ai-input:focus {
  border-color: #1976d2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

#gc-ai-submit {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
  padding: 0;
}

#gc-ai-submit svg { width: 18px; height: 18px; }

#gc-ai-submit:hover:not(:disabled) { transform: scale(1.05); }

#gc-ai-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Tablet (small) --- */
@media (max-width: 600px) {
  .gc-ai-window {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .gc-ai-quickfilters {
    flex-wrap: wrap;
  }

  .gc-ai-filter-btn {
    font-size: 12px;
    padding: 7px 10px;
  }

  .gc-ai-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .gc-ai-window {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .gc-ai-bubble {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .gc-ai-bubble-text { display: none; }
  .gc-ai-bubble-icon { width: 26px; height: 26px; }
  .gc-ai-bubble-icon svg { width: 26px; height: 26px; }

  .gc-ai-header {
    padding: 14px 16px;
  }

  .gc-ai-header-title strong { font-size: 15px; }
  .gc-ai-header-title small { font-size: 11px; }

  .gc-ai-body {
    padding: 14px;
  }

  .gc-ai-card {
    padding: 10px;
    gap: 10px;
  }

  .gc-ai-card-img {
    width: 56px;
    height: 56px;
  }

  .gc-ai-card-info h4 { font-size: 14px; }
  .gc-ai-card-excerpt { font-size: 11px; }
  .gc-ai-tag { font-size: 10px; padding: 2px 7px; }

  /* CTA banner stacks vertically on small screens */
  .gc-ai-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    padding: 12px;
  }

  .gc-ai-cta-icon { font-size: 20px; }
  .gc-ai-cta-emphasized .gc-ai-cta-icon { font-size: 22px; }

  /* Debug box scrolls horizontally instead of breaking layout */
  .gc-ai-debug pre {
    overflow-x: auto;
    max-width: 100%;
    font-size: 10px;
  }

  /* Suggestion chips wrap nicely */
  .gc-ai-chip {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Form input on mobile - prevent iOS auto-zoom by ensuring 16px font */
  #gc-ai-input {
    font-size: 16px; /* Critical: prevents iOS Safari from zooming on focus */
  }
}

/* --- Tiny phones (iPhone SE etc. <360px) --- */
@media (max-width: 360px) {
  .gc-ai-quickfilters {
    padding: 3px;
  }

  .gc-ai-filter-btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .gc-ai-section-title { font-size: 12px; }

  .gc-ai-card-img {
    width: 48px;
    height: 48px;
  }
}

/* --- Touch devices: bigger tap targets --- */
@media (hover: none) and (pointer: coarse) {
  .gc-ai-close,
  #gc-ai-submit {
    min-width: 44px;
    min-height: 44px;
  }

  .gc-ai-filter-btn,
  .gc-ai-chip,
  .gc-ai-card {
    -webkit-tap-highlight-color: rgba(25, 118, 210, 0.1);
  }
}

/* --- Listing CTA (for doctors/clinics not yet listed) --- */
.gc-ai-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

/* TOP CTA - compact, sits above greeting, more refined */
.gc-ai-cta-top {
  margin-top: 0;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-style: solid;
  font-size: 12px;
  padding: 10px 12px;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.gc-ai-cta-top::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #1976d2, #0d47a1);
}

.gc-ai-cta-top .gc-ai-cta-icon {
  background: rgba(25, 118, 210, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1976d2;
}

.gc-ai-cta-top .gc-ai-cta-icon svg {
  width: 18px;
  height: 18px;
}

.gc-ai-cta-top .gc-ai-cta-text strong {
  color: #0f172a;
  font-size: 13px;
}

.gc-ai-cta-top .gc-ai-cta-text span {
  color: #475569;
  font-size: 11.5px;
}

.gc-ai-cta-emphasized {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-style: solid;
  color: #78350f;
  font-size: 13px;
  padding: 14px 16px;
}

.gc-ai-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
}

.gc-ai-cta-icon svg {
  width: 22px;
  height: 22px;
}

.gc-ai-cta-emphasized .gc-ai-cta-icon {
  color: #b45309;
}

.gc-ai-cta-emphasized .gc-ai-cta-icon svg {
  width: 26px;
  height: 26px;
}

.gc-ai-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gc-ai-cta-text strong {
  font-weight: 600;
  color: #334155;
}

.gc-ai-cta-emphasized .gc-ai-cta-text strong {
  color: #78350f;
}

.gc-ai-cta-text span {
  color: inherit;
  opacity: 0.95;
}

.gc-ai-cta-text a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
}

.gc-ai-cta-emphasized .gc-ai-cta-text a {
  color: #92400e;
  text-decoration: underline;
}

.gc-ai-cta-text a:hover {
  text-decoration: underline;
}

/* --- Greeting refinements --- */
.gc-ai-greeting {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gc-ai-greeting .gc-ai-icon-inline {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #f59e0b;
}

.gc-ai-greeting .gc-ai-icon-inline svg {
  width: 18px;
  height: 18px;
}

/* --- Section title icons (Clinici / Medici) --- */
.gc-ai-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 18px 0 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-ai-section-title:first-child { margin-top: 0; }

.gc-ai-section-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
}

.gc-ai-section-clinics::before {
  background: #14b8a6;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M5 21V7l8-4v18'/><path d='M19 21V11l-6-4'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M5 21V7l8-4v18'/><path d='M19 21V11l-6-4'/></svg>") center/contain no-repeat;
}

.gc-ai-section-doctors::before {
  background: #1976d2;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>") center/contain no-repeat;
}

/* Card noimg fallback */
.gc-ai-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.gc-ai-card-noimg svg {
  width: 28px;
  height: 28px;
}

/* --- Symptom recommendation bubble --- */
.gc-ai-symptom-rec {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  animation: gc-ai-fadein 0.3s ease;
}

.gc-ai-symptom-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.gc-ai-symptom-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  background: #059669;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.gc-ai-symptom-icon svg { width: 12px; height: 12px; }

.gc-ai-symptom-text {
  color: #064e3b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.gc-ai-symptom-disclaimer {
  display: flex;
  align-items: flex-start;
  font-size: 11px;
  color: #047857;
  background: rgba(255, 255, 255, 0.5);
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.4;
}

.gc-ai-symptom-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Conversational info answer (RAG-style response) --- */
.gc-ai-info-answer {
  margin-bottom: 18px;
  animation: gc-ai-fadein 0.3s ease;
}

@keyframes gc-ai-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gc-ai-info-bubble {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  position: relative;
}

.gc-ai-info-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.gc-ai-info-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gc-ai-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.gc-ai-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.gc-ai-info-source {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-top: 4px;
}

.gc-ai-info-source strong {
  color: #fff;
  font-weight: 600;
}

.gc-ai-info-source:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Admin debug box --- */
.gc-ai-provider-badge {
  margin-top: 14px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 11px;
  color: #15803d;
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
}

.gc-ai-debug {
  margin-top: 16px;
  padding: 12px;
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
}

.gc-ai-debug strong {
  display: block;
  margin-bottom: 8px;
  color: #fbbf24;
}

.gc-ai-debug pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.4;
}
