/* VINCIMINDS – TOP bar + HEADER + Chat (yeni tasarım katmanı) */

/* ---- TOP BAR (en üst şerit) ---- */
.vinciminds-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 24px;
  z-index: 1000;
  font-size: 13px;
}
.vinciminds-top a,
.vinciminds-top button {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 4px 8px;
  border-radius: 6px;
}
.vinciminds-top a:hover,
.vinciminds-top button:hover { color: #a78bfa; background: rgba(167,139,250,0.15); }

/* TOP: For Teachers dropdown */
.vinciminds-top .dropdown-wrap { position: relative; }
.vinciminds-top .dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 220px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: none;
}
.vinciminds-top .dropdown-wrap.open .dropdown-panel { display: block; }
.vinciminds-top .dropdown-panel a {
  display: block;
  padding: 10px 16px;
  color: #e2e8f0;
}
.vinciminds-top .dropdown-panel a:hover { background: rgba(167,139,250,0.2); color: #fff; }

/* LANG dropdown */
.vinciminds-top .lang-dropdown .dropdown-panel { min-width: 120px; }

/* ---- HEADER (ana navigasyon) ---- */
.vinciminds-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 999;
}
.vinciminds-header .logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.vinciminds-header .logo:hover { color: #a78bfa; }
.vinciminds-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vinciminds-header .nav-item {
  position: relative;
  padding: 10px 14px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}
.vinciminds-header .nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vinciminds-header .nav-item.has-dropdown .dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: none;
}
.vinciminds-header .nav-item.has-dropdown.open .dropdown-panel { display: block; }
.vinciminds-header .dropdown-panel a {
  display: block;
  padding: 10px 16px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
}
.vinciminds-header .dropdown-panel a:hover { background: rgba(167,139,250,0.2); color: #fff; }
.vinciminds-header .nav-item .caret { margin-left: 4px; opacity: 0.7; font-size: 10px; }

/* Sağ: Help / AI Agent */
.vinciminds-header .header-right { display: flex; align-items: center; gap: 12px; }
.vinciminds-header .btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.vinciminds-header .btn-chat:hover { filter: brightness(1.1); }

/* Body offset (fixed bars) */
body.vinciminds-layout { padding-top: 96px; }

/* ---- CHAT (sağ alt, sabit) ---- */
.vinciminds-chat-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  font-family: inherit;
}
.vinciminds-chat-box {
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vinciminds-chat-box.hidden { display: none; }
.vinciminds-chat-header {
  padding: 14px 16px;
  background: rgba(124, 58, 237, 0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vinciminds-chat-header button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
}
.vinciminds-chat-info {
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.vinciminds-chat-info-text { margin: 0 0 6px 0; }
.vinciminds-chat-support-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
}
.vinciminds-chat-support-link:hover { text-decoration: underline; color: #c4b5fd; }
.vinciminds-chat-header button { cursor: pointer; padding: 4px; }
.vinciminds-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vinciminds-chat-messages .msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.vinciminds-chat-messages .msg.agent {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.vinciminds-chat-messages .msg.user { align-self: flex-end; background: #7c3aed; color: #fff; }
.vinciminds-chat-messages .msg.agent a { color: #a78bfa; text-decoration: none; }
.vinciminds-chat-messages .msg.agent a:hover { text-decoration: underline; }
.vinciminds-chat-messages .vinciminds-chat-typing { opacity: 0.8; }
.vinciminds-chat-input-wrap {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 8px;
}
.vinciminds-chat-input-wrap input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
}
.vinciminds-chat-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.vinciminds-chat-input-wrap input:focus {
  outline: none;
  border-color: #a78bfa;
}
.vinciminds-chat-input-wrap button {
  padding: 12px 18px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.vinciminds-chat-input-wrap button:hover { background: #6d28d9; }

/* FAB: chat aç/kapa */
.vinciminds-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  cursor: pointer;
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.vinciminds-chat-fab:hover { filter: brightness(1.1); transform: scale(1.05); }
.vinciminds-chat-wrap.visible .vinciminds-chat-fab { display: none; }
.vinciminds-chat-wrap .vinciminds-chat-box { display: flex; }
.vinciminds-chat-wrap:not(.visible) .vinciminds-chat-box { display: none; }

/* Light theme overrides (body.light veya .vinciminds-light) */
body.vinciminds-light .vinciminds-top,
body.vinciminds-light .vinciminds-header { background: rgba(255,255,255,0.98); border-bottom-color: rgba(0,0,0,0.08); }
body.vinciminds-light .vinciminds-top a,
body.vinciminds-light .vinciminds-top button { color: #334155; }
body.vinciminds-light .vinciminds-top a:hover,
body.vinciminds-light .vinciminds-top button:hover { color: #6d28d9; background: rgba(109,40,217,0.1); }
body.vinciminds-light .vinciminds-header .logo { color: #0f172a; }
body.vinciminds-light .vinciminds-header .nav-item { color: #334155; }
body.vinciminds-light .vinciminds-header .nav-item:hover { background: rgba(0,0,0,0.06); color: #0f172a; }
body.vinciminds-light .vinciminds-header .dropdown-panel,
body.vinciminds-light .vinciminds-top .dropdown-panel { background: #f8fafc; border-color: rgba(0,0,0,0.1); }
body.vinciminds-light .vinciminds-header .dropdown-panel a,
body.vinciminds-light .vinciminds-top .dropdown-panel a { color: #334155; }
body.vinciminds-light .vinciminds-header .dropdown-panel a:hover,
body.vinciminds-light .vinciminds-top .dropdown-panel a:hover { background: rgba(109,40,217,0.1); color: #6d28d9; }

@media (max-width: 768px) {
  .vinciminds-header nav { display: none; }
  .vinciminds-chat-box { width: 100%; height: 70vh; }
}
