/* ==========================================================================
   PURWAVERSE SCIENCE ENGINE - BLUEPRINT DESIGN SYSTEM
   CAD Schematic Frames, Blueprint Grid & 21-Unit Learning Pathway Map
   ========================================================================== */

/* Blueprint Technical Grid Pattern */
.blueprint-bg {
  background-color: #08111e;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  position: relative;
}

.blueprint-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Blueprint Technical Panels */
.blueprint-frame {
  background: rgba(10, 18, 32, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.04);
}

/* Crosshair Markers on Corners */
.blueprint-frame::before,
.blueprint-frame::after {
  content: '+';
  position: absolute;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--holo-cyan);
  line-height: 1;
  pointer-events: none;
  opacity: 0.7;
}

.blueprint-frame::before {
  top: 4px;
  left: 6px;
}

.blueprint-frame::after {
  bottom: 4px;
  right: 6px;
}

.blueprint-header {
  border-bottom: 1px dashed rgba(56, 189, 248, 0.25);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blueprint-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--holo-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blueprint-code {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--text-sub);
  background: rgba(56, 189, 248, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   PETA PEMBELAJARAN (21 UNIT LEARNING MAP)
   ========================================================================== */

.learning-map-section {
  padding: 32px 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.map-header-banner {
  text-align: center;
  margin-bottom: 36px;
}

.map-main-heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: var(--brass-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.map-sub-heading {
  font-size: 14px;
  color: var(--text-muted);
}

/* Chapters Timeline Pathway */
.chapters-path-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.chapter-track-card {
  background: rgba(14, 23, 38, 0.88);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.chapter-track-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.chapter-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chapter-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chapter-lab-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--brass-light);
  border: 1px solid var(--brass-border);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.chapter-academic-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.chapter-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* Individual Unit Node in Map */
.map-unit-node {
  background: rgba(18, 29, 48, 0.9);
  border: 1.5px solid var(--steel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.map-unit-node:hover {
  transform: translateY(-3px);
  border-color: var(--holo-cyan);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.2);
}

.map-unit-node.node-active {
  border-color: var(--brass-main);
  background: linear-gradient(145deg, rgba(28, 43, 68, 0.95) 0%, rgba(18, 29, 48, 0.95) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.08);
  animation: pulseGoldGlow 3s infinite;
}

.map-unit-node.node-completed {
  border-color: var(--status-online);
}

.map-unit-node.node-locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.map-unit-node.node-locked:hover {
  transform: none;
  border-color: var(--steel-border);
  box-shadow: none;
}

.node-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-unit-order {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--brass-main);
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.node-status-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.node-status-pill.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--brass-light);
  border: 1px solid var(--brass-main);
}

.node-status-pill.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid var(--status-online);
}

.node-status-pill.locked {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-sub);
  border: 1px solid var(--steel-border);
}

.node-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.node-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-action-btn {
  margin-top: auto;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.node-action-btn.primary {
  background: var(--brass-gradient);
  color: #1a1402;
}

.node-action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--steel-border);
}

.node-action-btn.locked {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-sub);
  cursor: not-allowed;
}
