/* =========================
   Bulletin Page
========================= */

.bulletin-page {
  position: relative;
  width: 900px;
  margin: 30px auto;
  padding: 30px 20px 60px;
  background: rgba(255,255,255,0.48);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow:
    0 0 22px rgba(255,255,255,0.9),
    0 0 42px rgba(170,255,255,0.45),
    inset 0 0 18px rgba(255,255,255,0.45);
}

.bulletin-header {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(210,255,255,0.55), rgba(255,210,252,0.55));
  border: 2px solid #ffffff;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.9),
    inset -2px -2px 0 rgba(150,180,255,0.35);
}

.bulletin-header h1 {
  margin: 0 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow:
    0 0 8px #9fffff,
    0 0 16px #ffb6f7,
    2px 2px 0 #9aa8ff;
}

.bulletin-header p {
  margin: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: #8b6aa8;
  letter-spacing: 2px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: #7f91ad;
  text-decoration: none;
  letter-spacing: 1px;
}

.back-link:hover {
  color: #d88db3;
}

/* =========================
   CD Rack — realistic
========================= */

.rack-outer {
  position: relative;
  padding-bottom: 18px; /* room for legs */
}

/* legs */
.rack-outer::before,
.rack-outer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #c8b8e0, #a898c8);
  border-radius: 0 0 3px 3px;
  box-shadow: 2px 2px 0 rgba(140,120,180,0.4);
}

.rack-outer::before { left: 40px; }
.rack-outer::after  { right: 40px; }

.rack {
  position: relative;
  background: linear-gradient(180deg, #f0eaff 0%, #e0d8f4 40%, #cec4e8 100%);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 4px 4px 0 0;
  padding: 0;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.8),
    inset 0 -3px 0 rgba(160,140,200,0.5),
    inset 3px 0 0 rgba(255,255,255,0.6),
    inset -3px 0 0 rgba(160,140,200,0.4),
    4px 4px 0 rgba(160,140,210,0.5),
    0 0 22px rgba(255,255,255,0.7);
}

.rack-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a08cc0;
  padding: 10px 16px 6px;
}

/* =========================
   Shelf row
========================= */

.shelf-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 10px 16px 0;
  position: relative;
  min-height: 130px;
}

/* shelf floor plank */
.shelf-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 8px;
  background: linear-gradient(180deg, #b8aad4, #a898c4);
  border-radius: 0 0 2px 2px;
  box-shadow:
    0 3px 6px rgba(120,100,170,0.35),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.shelf-spacer {
  margin-bottom: 16px;
}

/* =========================
   CD Spine — realistic jewel case
========================= */

.cd-spine {
  /* jewel case is ~10mm spine = roughly 14px at screen scale */
  width: 14px;
  height: 112px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.15s ease;
  flex-shrink: 0;

  /* main spine color — overridden per-cd via inline style */
  background: #f0e8ff;

  /* jewel case layers: left clear plastic edge, right shadow */
  box-shadow:
    inset 2px 0 0 rgba(255,255,255,0.75),   /* left clear plastic highlight */
    inset -1px 0 0 rgba(0,0,0,0.12),         /* right edge shadow */
    inset 0 1px 0 rgba(255,255,255,0.6),      /* top edge */
    inset 0 -1px 0 rgba(0,0,0,0.1);           /* bottom edge */
}

/* clear plastic strip on left edge of each case */
.cd-spine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.3) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* thin dark gap between cases */
.cd-spine::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(80,60,110,0.18);
  pointer-events: none;
  z-index: 2;
}

.cd-spine:hover {
  transform: translateY(-12px);
  z-index: 10;
  box-shadow:
    inset 2px 0 0 rgba(255,255,255,0.75),
    inset -1px 0 0 rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 6px 14px rgba(160,120,220,0.4);
}

.cd-spine.pulled {
  transform: translateY(-26px);
  z-index: 10;
  box-shadow:
    inset 2px 0 0 rgba(255,255,255,0.75),
    inset -1px 0 0 rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 10px 20px rgba(160,120,220,0.5);
}

/* =========================
   Spine label + dot
========================= */

.spine-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: "Share Tech Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(50,30,80,0.7);
  white-space: nowrap;
  overflow: hidden;
  max-height: 95px;
  pointer-events: none;
  padding: 4px 0 0 0;
  margin-left: 3px; /* clear of the plastic strip */
}

.spine-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: auto;
  margin-bottom: 5px;
  flex-shrink: 0;
  opacity: 0.8;
  pointer-events: none;
}

/* =========================
   Lightbox Overlay
========================= */

.case-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(70,50,110,0.38);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.case-overlay.open {
  display: flex;
}

/* =========================
   CD Case (open)
========================= */

.cd-case {
  position: relative;
  width: 480px;
  background: rgba(232,224,255,0.97);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 6px;
  box-shadow:
    0 0 0 4px rgba(200,185,255,0.45),
    10px 10px 0 rgba(170,150,230,0.35),
    0 0 50px rgba(255,255,255,0.85);
  overflow: hidden;
  font-family: "Share Tech Mono", monospace;
}

.case-hinge {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(190,175,230,0.45);
  border-left: 1px solid rgba(255,255,255,0.65);
  border-right: 1px solid rgba(170,155,215,0.35);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.case-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 4;
  border-radius: 6px;
}

.case-inner {
  display: flex;
  position: relative;
  z-index: 3;
}

.case-left {
  flex: 1;
  padding: 28px 18px 28px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(210,200,255,0.25));
  border-right: 2px solid rgba(200,185,255,0.35);
}

/* =========================
   Disc
========================= */

.disc-wrap {
  position: relative;
  width: 162px;
  height: 162px;
}

.disc {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: conic-gradient(
    #f0e8ff 0deg, #dffcff 60deg, #ffb6f7 120deg,
    #f0e8ff 180deg, #dffcff 240deg, #ffb6f7 300deg, #f0e8ff 360deg
  );
  box-shadow:
    0 0 0 2px rgba(200,185,255,0.7),
    3px 3px 0 rgba(175,155,235,0.3);
}

.disc-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: absolute;
  inset: 0;
}

.disc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #b090d0;
  text-align: center;
  padding: 28px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.disc-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.disc-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232,224,255,0.97);
  border: 2px solid rgba(200,185,255,0.7);
  z-index: 3;
}

/* =========================
   Case Info Panel
========================= */

.case-right {
  flex: 1;
  padding: 26px 24px 26px 18px;
  background: linear-gradient(135deg, rgba(210,200,255,0.2), rgba(255,255,255,0.5));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.case-title {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: #7a58a8;
  letter-spacing: 2px;
  margin: 0 0 5px;
}

.case-submitter {
  font-size: 11px;
  color: #a088c0;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.case-note {
  font-size: 11px;
  color: #8070a0;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.cdr-sticker {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.82);
  border: 1px dashed rgba(180,160,220,0.65);
  font-size: 10px;
  color: #9870b8;
  letter-spacing: 1px;
  transform: rotate(-1.5deg);
  width: fit-content;
}

.case-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: #9870b8;
  cursor: pointer;
  z-index: 10;
  padding: 3px 7px;
  letter-spacing: 1px;
}

.case-close:hover {
  color: #d88db3;
}

/* =========================
   Submit Section
========================= */

.submit-section {
  margin-top: 36px;
  padding: 16px;
  background: rgba(255,255,255,0.72);
  border: 2px solid #ffffff;
  box-shadow:
    inset -2px -2px 0 #ffffff,
    inset 2px 2px 0 #efd5ff;
  text-align: center;
  font-family: "Share Tech Mono", monospace;
}

.submit-section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #7f91ad;
  margin: 0 0 8px;
}

.submit-section p {
  font-size: 12px;
  color: #9a6ab0;
  margin: 0 0 10px;
}

.submit-section a {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(#ffffff, #f4dcff);
  border: 2px outset #ffffff;
  color: #6a7f9d;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 2px 2px 0 #d8c7ff;
}

.submit-section a:hover {
  background: linear-gradient(#f4ddff, #dfffff);
  color: #8c5fa8;
}

.admin-note {
  margin-top: 10px;
  font-size: 10px;
  color: #b0b8c8;
  letter-spacing: 1px;
}