/* Vista de detalle de maestría (pantalla completa)
   (archivo: css/pages/mastery-detail.css) */
/* ============================================================
   DETAIL VIEW — FULLSCREEN OVERLAY
   ============================================================ */
#detail-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,8,8,0.98);
  flex-direction: column;
  animation: fadeInDetail .22s ease;
}
#detail-view.open { display: flex; }

#detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: linear-gradient(90deg, #0a0a0a 0%, #181818 100%);
  border-bottom: 4px solid var(--yellow-bright);
  flex-shrink: 0;
}
#detail-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--yellow-bright);
  text-shadow: 0 0 16px rgba(255,215,0,0.6), 2px 2px 0 #000;
  letter-spacing: 1.5px;
}
#btn-close-detail {
  background: var(--red-close);
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  width: 44px; height: 44px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #000;
  transition: filter .15s, transform .1s;
  display: flex; align-items: center; justify-content: center;
}
#btn-close-detail:hover  { filter: brightness(1.2); }
#btn-close-detail:active { transform: scale(0.91); }

/* detail body: two-column */
#detail-body {
  flex: 1;
  display: grid;
  grid-template-columns: 400px 1fr;
  overflow: hidden;
  min-height: 0;
}

/* LEFT COLUMN */
#detail-left {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  background: #181818;
  border-right: 3px solid #2a2a2a;
  overflow-y: auto;
  min-height: 0;
}
#detail-left::-webkit-scrollbar { width: 5px; }
#detail-left::-webkit-scrollbar-thumb { background: var(--yellow-dark); border-radius: 4px; }

/* banner */
#detail-banner-wrap {
  position: relative;
  width: 100%;
  border-radius: 11px;
  overflow: hidden;
  border: 3px solid #333;
  background: #0d0d0d;
  aspect-ratio: 640 / 411;
  flex-shrink: 0;
}
#detail-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
#detail-banner-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: repeating-linear-gradient(-45deg,#1e1600 0,#1e1600 18px,#130f00 18px,#130f00 36px);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #555;
}
#detail-banner-placeholder .ph-emoji { font-size: 3rem; }

/* glove row */
#detail-glove-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  flex-shrink: 0;
}
#detail-glove-img-wrap {
  width: 96px;
  background: #0d0d0d;
  border: 3px solid #333;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  height: auto;
}
#detail-glove-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}
#detail-glove-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  font-size: 2.8rem;
  width: 100%;
  min-height: 64px;
}
#detail-glove-placeholder.show {
  display: flex;
}
#detail-glove-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#detail-glove-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  color: var(--yellow-bright);
  text-shadow: 1px 1px 0 #000;
}
.detail-section-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.72rem;
  color: var(--text-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1px;
}
#detail-description-text {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.55;
  font-style: italic;
}
#detail-date-text {
  font-size: 0.78rem;
  color: #8a8a8a;
  line-height: 1.3;
  font-style: italic;
  margin-top: -2px;
}
#detail-completed-text {
  font-size: 0.8rem;
  color: #7e7e7e;
  line-height: 1.3;
  font-style: italic;
  margin-top: 2px;
}
#detail-completed-text:empty { display: none; }

.detail-hide-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}
.detail-hide-btn {
  min-width: 146px;
  padding: 7px 14px;
  background: #151515;
  border: 2px solid #3d3d3d;
  border-radius: 999px;
  color: #8a8a8a;
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: filter .15s, transform .1s, background .2s, color .2s, border-color .2s;
  align-self: flex-start;
  box-shadow: 0 2px 0 #000;
}
.detail-hide-btn:hover { filter: brightness(1.15); }
.detail-hide-btn.active {
  background: #0e2230;
  color: #8ad6ff;
  border-color: #4fa3ff;
}
.detail-hide-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

