/* Destek AI chat — MVP + maskot */
.core-support-layout {
  max-width: 960px;
}

.core-support-stage {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.core-support-mascot {
  text-align: center;
  padding-bottom: 0.5rem;
  user-select: none;
}

.core-support-mascot__figure {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  animation: core-support-mascot-bob 4.5s ease-in-out infinite;
}

.core-support-mascot__figure svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.core-support-mascot__bubble {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #2f4a3c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  animation: core-support-mascot-bubble 5s ease-in-out infinite;
}

.core-support-mascot__name {
  margin: 0.65rem 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a2622;
}

.core-support-mascot__tag {
  margin: 0;
  font-size: 0.75rem;
  color: #6b6560;
}

/* Göz kapakları varsayılan açık; arada kırpışır */
.core-support-mascot__lid {
  transform-origin: center;
  transform-box: fill-box;
  transform: scaleY(0);
  animation: core-support-mascot-blink 5.2s ease-in-out infinite;
}

.core-support-mascot__eye--r .core-support-mascot__lid {
  animation-delay: 0.12s;
}

.core-support-chat {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.core-support-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 52vh;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 40%);
}

.core-support-msg {
  max-width: 92%;
}

.core-support-msg p {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.core-support-msg--bot p {
  background: #f1eee8;
  color: #2a2622;
  border-bottom-left-radius: 4px;
}

.core-support-msg--user {
  align-self: flex-end;
}

.core-support-msg--user p {
  background: #2f4a3c;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.core-support-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  align-items: flex-end;
}

.core-support-chat__form textarea {
  flex: 1;
  resize: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  min-height: 2.75rem;
}

.core-support-chat__form textarea:focus {
  outline: 2px solid rgba(47, 74, 60, 0.35);
  outline-offset: 1px;
}

.core-support-chat__send {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  background: #2f4a3c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.core-support-chat__send:disabled {
  opacity: 0.6;
  cursor: wait;
}

.core-support-chat__hint {
  margin: 0;
  padding: 0.5rem 1rem 0.85rem;
  font-size: 0.75rem;
  color: #6b6560;
}

.core-support-chat__hint a {
  color: inherit;
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes core-support-mascot-blink {
  0%, 90%, 100% { transform: scaleY(0); }
  92%, 96% { transform: scaleY(1); }
  94% { transform: scaleY(0.15); }
}

@keyframes core-support-mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes core-support-mascot-bubble {
  0%, 70%, 100% { opacity: 1; transform: translateY(0); }
  80% { opacity: 0.55; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .core-support-mascot__figure,
  .core-support-mascot__lid,
  .core-support-mascot__bubble {
    animation: none !important;
  }
  .core-support-mascot__lid {
    transform: scaleY(0);
  }
}

@media (max-width: 768px) {
  .core-support-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .core-support-mascot {
    order: -1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    padding: 0;
  }

  .core-support-mascot__bubble {
    order: 2;
    margin: 0;
  }

  .core-support-mascot__figure {
    width: 88px;
    height: 88px;
    margin: 0;
  }

  .core-support-mascot__name {
    margin: 0;
    font-size: 0.9rem;
  }

  .core-support-mascot__tag {
    width: 100%;
    text-align: center;
    order: 3;
  }
}

@media (max-width: 576px) {
  .core-support-chat__messages {
    max-height: 58vh;
  }
  .core-support-chat__form {
    flex-direction: column;
    align-items: stretch;
  }
}
