/* Terminal — Learn System Styles */

/* Language selector */
#learnLang {
  font-family: inherit;
  cursor: pointer;
}
#learnLang:focus {
  outline: 1px solid #E8B341;
}

/* Category header */
.learn-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E8B341;
  padding: 10px 0 4px 0;
  border-bottom: 1px solid #2B3139;
  margin-bottom: 4px;
}
.learn-cat:first-child {
  border-top: none;
}

/* Tool item */
.learn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.15s;
}
.learn-item:hover {
  background: #2B3139;
}
.learn-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.learn-name {
  flex: 1;
  color: #EAECEF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.learn-watch {
  font-size: 9px;
  color: #E8B341;
  background: rgba(232, 179, 65, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  flex-shrink: 0;
}
.learn-item:hover .learn-watch {
  background: #E8B341;
  color: #0B0E11;
}

/* ── Video Modal ──────────────────────────────────────────────── */
.learn-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.learn-modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1E2329;
  border: 1px solid #2B3139;
  border-radius: 12px;
  width: 90vw;
  max-width: 560px;
  max-height: 80vh;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.learn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #2B3139;
  font-size: 13px;
  font-weight: 700;
  color: #EAECEF;
}
.learn-modal-close {
  background: none;
  border: none;
  color: #848E9C;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.learn-modal-close:hover {
  color: #EAECEF;
}
.learn-modal-body {
  padding: 16px;
  overflow-y: auto;
}
.learn-modal-desc {
  font-size: 12px;
  color: #848E9C;
  margin-bottom: 12px;
  line-height: 1.5;
}
.learn-modal-video {
  background: #0B0E11;
  border-radius: 8px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tab badge for Learn */
.tab.learn-tab {
  color: #E8B341 !important;
}
.tab.learn-tab.on {
  background: rgba(232, 179, 65, 0.15);
  color: #E8B341 !important;
}

/* ── Learn row v2: SHORT | full name | 🎬 | 🤖 ─────────────────── */
.learn-short {
  flex-shrink: 0;
  min-width: 46px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #E8B341;
  background: rgba(232, 179, 65, 0.12);
  border: 1px solid rgba(232, 179, 65, 0.25);
  border-radius: 4px;
  padding: 2px 5px;
  text-align: center;
}
.learn-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.learn-act {
  all: unset;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.1s;
}
.learn-act:hover {
  background: rgba(232, 179, 65, 0.18);
  transform: translateY(-1px);
}
.learn-act.is-soon {
  opacity: 0.35;
}

/* ── Tenant badge above the video player ──────────────────────────
   Every tutorial plays under the operator's own name and logo. */
.learn-brand-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, rgba(232, 179, 65, 0.14), rgba(232, 179, 65, 0.02));
  border: 1px solid rgba(232, 179, 65, 0.22);
  border-bottom: 2px solid #E8B341;
}
.learn-brand-logo {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}
.learn-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.learn-brand-name {
  font-size: 12px;
  font-weight: 700;
  color: #E8B341;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.learn-brand-sub {
  font-size: 9px;
  color: #848E9C;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* ── Help icons injected into the chart's Indicators menu ───────── */
.aichart-pro-indicator-modal-list li.row { position: relative; }
.learn-menu-acts {
  margin-left: auto;
  padding-left: 8px;
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.learn-menu-act {
  all: unset;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s;
}
.learn-menu-act:hover {
  opacity: 1;
  background: rgba(232, 179, 65, 0.2);
}
.learn-menu-act.is-soon { opacity: 0.3; }

/* Discoverability line at the top of the Indicators menu */
.learn-menu-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  margin-bottom: 4px;
  font-size: 10px;
  color: #C9A227;
  background: rgba(232, 179, 65, 0.09);
  border: 1px solid rgba(232, 179, 65, 0.22);
  border-radius: 5px;
  list-style: none;
}
.learn-menu-hint-dot { opacity: 0.5; }
