/* active logo ring */
.partner-logo-float.pcp-selected .logo-glow-ring {
  box-shadow:
    0 0 0 3px #e1a609,
    0 0 24px rgba(225, 166, 9, 0.45);
}
.partner-logo-float.pcp-selected img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(225, 166, 9, 0.5));
}

/* card fade animation */
@keyframes pcpCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#pcp-card-area > * {
  animation: pcpCardIn 0.3s ease both;
}

/* dot indicator */
.pcp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s;
  display: inline-block;
}
.pcp-dot.active {
  background: #e1a609;
}

/* ── Cyberium-style card panel ──────────────────────────────────── */
#pcp-card-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0;
}

/* level header — teal line style like Cyberium Arena */
.pcp-level-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00d4ff;
  margin-top: 4px;
  margin-bottom: 4px;
  cursor: help;
}
.pcp-level-label::before,
.pcp-level-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 212, 255, 0.3);
}

/* card grid — uniform card width regardless of row count */
.pcp-row,
.pcp-row-2,
.pcp-row-1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── individual card — Cyberium terminal rectangle ── */
.pcp-card {
  position: relative;
  width: calc(33.333% - 6px);
  min-width: 90px;
  padding: 12px 13px 10px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.28);
  cursor: pointer;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
  isolation: isolate;
}
/* world map bg — grayscale, dark — sits behind text via z-index */
.pcp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/world.avif") center center/cover no-repeat;
  filter: grayscale(1) brightness(0.22);
  pointer-events: none;
}
/* corner bracket — bottom-right */
.pcp-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-color: rgba(0, 212, 255, 0.6);
  border-style: solid;
  border-width: 0 1px 1px 0;
  pointer-events: none;
}
/* top-left bracket via a real child span injected by JS */
.pcp-bracket {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-color: rgba(0, 212, 255, 0.6);
  border-style: solid;
  border-width: 1px 0 0 1px;
  pointer-events: none;
}
.pcp-card > *:not(.pcp-bracket) {
  position: relative;
  z-index: 1;
}
.pcp-card:hover {
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow:
    0 0 14px rgba(0, 212, 255, 0.18),
    inset 0 0 18px rgba(0, 212, 255, 0.05);
}
.pcp-card:hover::before {
  filter: grayscale(1) brightness(0.32);
}
.pcp-card:hover::after,
.pcp-card:hover .pcp-bracket {
  border-color: rgba(0, 212, 255, 1);
}

/* front face — teal title top, code bottom */
.pcp-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00d4ff;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.pcp-card-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.pcp-card .el-code {
  font-size: 0.56rem;
  font-family: monospace;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.65);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  letter-spacing: 0.04em;
}
.pcp-card-dur {
  font-size: 0.54rem;
  color: rgba(0, 212, 255, 0.45);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Card hover popup — floats over the card area only ── */
#pcp-popup {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 40px;
  z-index: 20;
  background: rgba(0, 10, 26, 0.97);
  border: 1px solid rgba(0, 212, 255, 0.5);
  padding: 18px 20px 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 212, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  transform: translateY(-4px);
}
#pcp-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#pcp-popup::before,
#pcp-popup::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0, 212, 255, 0.7);
  border-style: solid;
  pointer-events: none;
}
#pcp-popup::before {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}
#pcp-popup::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}
#pcp-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 212, 255, 0.45);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s;
}
#pcp-popup-close:hover {
  color: #00d4ff;
}
#pcp-popup-code {
  font-size: 0.62rem;
  font-family: monospace;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.5);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#pcp-popup-code .pcp-popup-dur {
  font-size: 0.58rem;
  color: rgba(0, 212, 255, 0.32);
}
#pcp-popup-free {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.35);
  padding: 1px 6px;
  border-radius: 2px;
}
#pcp-popup-title {
  font-size: 1rem;
  font-weight: 800;
  color: #00d4ff;
  line-height: 1.3;
  margin-bottom: 10px;
}
#pcp-popup-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(180, 225, 255, 0.62);
  margin-bottom: 12px;
}
#pcp-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#pcp-popup-tags .el-tag {
  font-size: 0.58rem;
  padding: 2px 8px;
  border-color: rgba(0, 212, 255, 0.28);
  color: rgba(0, 212, 255, 0.75);
  background: rgba(0, 212, 255, 0.06);
  border-radius: 2px;
}

/* header bar teal accent */
#pcp-label {
  background: rgba(0, 10, 25, 0.92) !important;
  border-color: rgba(0, 212, 255, 0.2) !important;
}
#pcp-partner-name {
  color: #00d4ff !important;
  letter-spacing: 0.08em;
}
/* nav bar */
#partner-courses-panel > div:last-of-type {
  background: rgba(0, 8, 20, 0.5) !important;
}
