/* MiyaTube Explorer — Explore premium v1
   Presentation-only layer for Blueprint v1.3. */

.explore-view .video-compact {
  margin-bottom: 24px;
  padding: 14px;
  align-items: center;
  background: rgba(255,255,255,.98);
  border: 1px solid #dce6f0;
  box-shadow: 0 9px 24px rgba(8,30,63,.07);
}

.explore-view .video-compact .video-thumb {
  width: 112px;
  border-radius: 16px;
}

.explore-view .video-compact .video-title {
  font-size: 17px;
  line-height: 1.18;
}

.explore-view .video-compact .text-link {
  margin-top: 9px;
  color: var(--premium-navy);
  font-size: 13px;
  font-weight: 800;
}

.explore-heading {
  margin: 0 0 18px;
}

.explore-heading .eyebrow {
  margin-bottom: 9px;
}

.explore-heading h2 {
  font-size: clamp(33px, 9vw, 42px);
  line-height: .98;
  letter-spacing: -.045em;
}

.explore-heading > p:last-child {
  max-width: 610px;
  margin-top: 10px;
  color: var(--premium-muted);
  font-size: 16px;
  line-height: 1.42;
}

.explore-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 7px 0;
  color: #5d6e86;
  font-size: 13px;
  font-weight: 800;
}

/* Primary Explore intent navigation */
.explore-view .intent-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}

.explore-view .intent-tab {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  color: #314b70;
  box-shadow: 0 5px 14px rgba(8,30,63,.045);
  font-size: 14px;
  font-weight: 820;
}

.explore-view .intent-tab svg,
.intent-overview-icon svg,
.dimension-icon svg,
.card-kind-icon svg,
.overview-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explore-view .intent-tab.is-active {
  color: #fff;
  border-color: #bd8720;
  background: linear-gradient(135deg, #d3a43f, #b87e19);
  box-shadow: 0 10px 20px rgba(169,121,32,.2);
}

/* Secondary dimensions */
.dimension-tabs {
  display: flex;
  gap: 7px;
  margin: 0 -2px 18px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dimension-tabs::-webkit-scrollbar { display: none; }

.dimension-tab {
  flex: 1 0 auto;
  min-width: 104px;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #f3f6fa;
  color: #65748a;
  font-size: 13px;
  font-weight: 800;
}

.dimension-tab.is-active {
  border-color: var(--premium-navy);
  background: var(--premium-navy);
  color: #fff;
  box-shadow: 0 7px 16px rgba(11,35,76,.16);
}

/* Overview */
.overview-premium {
  display: grid;
  gap: 16px;
}

.overview-intro-card,
.map-panel,
.overview-highlight-panel,
.overview-topic-panel {
  border: 1px solid #dfe7ef;
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 7px 20px rgba(8,30,63,.052);
}

.overview-intro-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #fff9ec 0%, #fffdf9 46%, #f5f9fe 100%);
  border-color: #eadbb8;
}

.overview-feature-icon,
.card-kind-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0c8;
  color: #ae7715;
}

.overview-intro-card h3 {
  margin: 0;
  color: var(--premium-navy);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.overview-intro-card p {
  margin: 6px 0 0;
  color: var(--premium-muted);
  font-size: 14px;
  line-height: 1.48;
}

.overview-themes {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.overview-themes::-webkit-scrollbar { display: none; }

.overview-themes .theme-chip {
  flex: 0 0 auto;
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2b679a;
  font-size: 12px;
}

.map-panel,
.overview-highlight-panel,
.overview-topic-panel {
  padding: 17px;
}

.overview-panel-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.overview-panel-title .overview-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #edf5ff;
  color: #347ec0;
}

.overview-panel-title h3 {
  margin: 0;
  color: var(--premium-navy);
  font-size: 18px;
  letter-spacing: -.02em;
}

.overview-panel-title p {
  margin: 2px 0 0;
  color: var(--premium-muted);
  font-size: 12px;
}

.map-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.map-stat {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  background: #fbfcfe;
}

.map-stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #236cb1;
  background: #e8f3ff;
  font-size: 17px;
  font-weight: 900;
}

.map-stat:nth-child(2) .map-stat-icon { color: #9d6e0e; background: #fff2ce; }
.map-stat:nth-child(3) .map-stat-icon { color: #28784c; background: #e8f7ee; }
.map-stat:nth-child(4) .map-stat-icon { color: #7551ad; background: #f0eafa; }

.map-stat strong {
  display: block;
  color: var(--premium-navy);
  font-size: 22px;
  line-height: 1;
}

.map-stat span:last-child {
  display: block;
  margin-top: 4px;
  color: #6a788c;
  font-size: 11px;
  line-height: 1.15;
}

.intent-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.intent-overview-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 13px;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 5px 15px rgba(8,30,63,.045);
  color: var(--premium-navy);
  text-align: left;
}

.intent-overview-card:first-child {
  border-color: #e6cf9d;
  background: linear-gradient(145deg, #fff7e5, #fffdf8);
}

.intent-overview-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf4fb;
  color: #315f90;
}

.intent-overview-card:first-child .intent-overview-icon {
  background: #ffeec1;
  color: #a86e0e;
}

.intent-overview-card strong {
  font-size: 14px;
  line-height: 1.1;
}

.intent-overview-card small {
  color: #6a788d;
  font-size: 10.5px;
  line-height: 1.25;
}

.overview-highlight-list,
.overview-topic-list {
  display: grid;
  gap: 8px;
}

.preview-highlight {
  position: relative;
  padding: 12px 52px 12px 14px;
  border: 1px solid #e7ebf0;
  border-radius: 13px;
  background: #fcfdff;
}

.preview-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--premium-gold);
}

.preview-highlight p {
  margin: 0;
  color: #273d5e;
  font-size: 13px;
  line-height: 1.4;
  font-style: italic;
}

.preview-time,
.card-time-pill,
.topic-time-range {
  color: #58779a;
  background: #edf4fb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.preview-time {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
}

.overview-topic-row {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}

.overview-topic-row:last-child { border-bottom: 0; }

.overview-topic-number {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1cf;
  color: #ad7615;
  font-size: 12px;
  font-weight: 900;
}

.overview-topic-row strong {
  color: var(--premium-navy);
  font-size: 13px;
  line-height: 1.2;
}

.overview-open-section {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 0;
  color: var(--premium-navy);
  font-size: 12px;
  font-weight: 850;
}

/* Dimension content */
.dimension-section {
  display: grid;
  gap: 12px;
}

.dimension-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 2px;
}

.dimension-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dimension-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5ff;
  color: #2d71ad;
}

.dimension-section-title h3 {
  margin: 0;
  color: var(--premium-navy);
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -.022em;
}

.dimension-section-title span {
  display: block;
  margin-top: 2px;
  color: var(--premium-muted);
  font-size: 11px;
}

.dimension-copy-button {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #3b5878;
  font-size: 11px;
  font-weight: 800;
}

.explore-view .explore-list {
  display: grid;
  gap: 11px;
}

.explore-view .knowledge-card {
  padding: 15px;
  border: 1px solid #dee7f0;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 6px 18px rgba(8,30,63,.05);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-kind {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.card-kind-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
}

.card-kind small {
  color: #778499;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-time-pill,
.topic-time-range {
  padding: 5px 8px;
}

.card-main-title {
  margin: 0;
  color: var(--premium-navy);
  font-size: 17px;
  line-height: 1.26;
  letter-spacing: -.018em;
}

.card-main-copy {
  margin: 6px 0 0;
  color: #5f7089;
  font-size: 14px;
  line-height: 1.46;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4fa;
  color: #53708f;
  font-size: 10.5px;
  font-weight: 750;
}

/* Topic */
.topic-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.topic-card-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff5dd, #ffedc1);
  color: #a96f0c;
  font-size: 15px;
  font-weight: 900;
}

.topic-card-body { min-width: 0; }

.topic-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 5px;
}

.topic-card .item-actions {
  grid-column: 1 / -1;
}

/* Ideas */
.knowledge-idea .card-kind-icon {
  background: #fff1cc;
  color: #ad7716;
}

.knowledge-idea .card-main-title {
  font-size: 16px;
}

/* Highlights */
.knowledge-highlight {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffaf0 0%, #fff 50%, #f8fbff 100%);
  border-color: #ead9b3;
}

.knowledge-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--premium-gold);
}

.knowledge-highlight .card-kind-icon {
  background: #fff0c5;
  color: #ac720c;
}

.highlight-quote {
  margin: 0;
  color: #203957;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 700;
  font-style: italic;
}

/* Examples */
.knowledge-example .card-kind-icon {
  background: #eaf3ff;
  color: #3677b5;
}

/* Tools */
.knowledge-tool .card-kind-icon {
  background: #e8f6ed;
  color: #2d7b50;
}

/* Entities */
.knowledge-entity .card-kind-icon {
  background: #edf2fb;
  color: #4c6597;
}

/* Numbers */
.knowledge-number {
  background: linear-gradient(145deg, #faf8ff, #fff);
}

.knowledge-number .card-kind-icon {
  background: #f0eafa;
  color: #7250a7;
}

.number-value {
  color: var(--premium-navy);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.035em;
}

/* Steps */
.step-sequence-premium {
  padding: 0 !important;
  overflow: hidden;
}

.step-sequence-head {
  padding: 16px;
  border-bottom: 1px solid #edf1f5;
  background: linear-gradient(135deg, #fff9eb, #fff);
}

.step-sequence-head .card-main-title {
  font-size: 18px;
}

.learning-steps {
  display: grid;
  margin: 0;
  padding: 4px 16px 10px;
  list-style: none;
}

.learning-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}

.learning-step:last-child { border-bottom: 0; }

.learning-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 48px;
  bottom: -13px;
  width: 2px;
  background: #e8d2a4;
}

.learning-step-order {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d5aa4e, #b77c18);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  z-index: 1;
}

.learning-step-text {
  color: #304663;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.learning-step-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-tool-button {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #506a87;
  font-size: 11px;
  font-weight: 800;
}

.step-tool-button.is-time {
  min-width: auto;
  color: #835d13;
  background: #fff2d5;
}

.sequence-actions {
  padding: 0 16px 16px;
}

/* Actions */
.explore-view .item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #edf1f5;
}

.explore-view .item-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f2f6fa;
  color: #38597b;
  font-size: 11px;
  font-weight: 800;
}

.explore-view .item-actions .watch-action {
  margin-left: auto;
  color: #855f13;
  background: #fff2d5;
}

.explore-view .item-actions .more-action {
  width: 36px;
  padding: 0;
  font-size: 15px;
  letter-spacing: .08em;
}

.action-mini-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Search */
.search-premium-intro {
  margin-bottom: 12px;
  color: var(--premium-muted);
  font-size: 13px;
  line-height: 1.4;
}

.explore-view .search-field {
  min-height: 55px;
  border-radius: 17px;
}

.search-result-card .card-kind-icon {
  background: #eef3fa;
  color: #4a6888;
}

@media (max-width: 390px) {
  .explore-view .video-compact .video-thumb { width: 100px; }
  .intent-overview-card { padding: 11px; }
  .intent-overview-card small { display: none; }
  .explore-view .intent-tab { font-size: 13px; padding-inline: 6px; }
  .explore-view .item-actions button { padding-inline: 8px; }
}

@media (min-width: 640px) {
  .map-grid-premium { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intent-overview-card { min-height: 120px; }
}
