/* Deck fullscreen overlay styles (external to avoid CSP issues) */

.board-deck-slideshow,
.board-deck-slideshow * {
  box-sizing: border-box;
}

.board-deck-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0B0B10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 2147483647; /* max overlay */
  opacity: 1;
  transition: opacity .28s ease-out;
}

.board-deck-slideshow.deck-closing { opacity: 0; }

.board-deck-slideshow:fullscreen,
.board-deck-slideshow:-webkit-full-screen,
.board-deck-slideshow:-moz-full-screen,
.board-deck-slideshow:-ms-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.deck-animated-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.deck-floating-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle, #7F7FFF, transparent); animation: deckFloat 6s ease-in-out infinite; }
.deck-floating-orb:nth-child(1) { width: 200px; height: 200px; top: 20%; left: 10%; animation-delay: 0s; }
.deck-floating-orb:nth-child(2) { width: 150px; height: 150px; top: 60%; right: 15%; animation-delay: 2s; }
.deck-floating-orb:nth-child(3) { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes deckFloat { 0%,100%{ transform: translateY(0) scale(1); opacity:.1 } 50%{ transform: translateY(-20px) scale(1.1); opacity:.2 } }

.deck-header { height: 80px; min-height: 80px; max-height: 80px; display: flex; align-items: center; padding: 0 40px; background: rgba(11,11,16,.9); border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0; z-index: 10; }
.deck-header .deck-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.deck-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.deck-logo img { height: 36px; width: auto; }
.deck-logo-text { background: linear-gradient(135deg, #fff, #7F7FFF); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.8rem; line-height: 1; }
.deck-close-btn { padding: 8px 20px; border-radius: 25px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer; font-weight: 600; }

.deck-slideshow-content { flex: 1 1 auto; width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; color: #fff; position: relative; overflow: hidden; min-height: 0; }
.deck-slide { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100%; }
.deck-slide.has-accent { position: relative; overflow: hidden; width: 100%; max-width: 100%; }
.deck-accent { position: absolute; pointer-events: none; z-index: 0; filter: none; opacity: 0.25; }
/* Extend beyond title/cards vertically and horizontally */
.deck-accent.accent-left { left: 0; top: -12vh; bottom: -12vh; width: 36%; border-right: 1px solid rgba(255,255,255,.12); }
.deck-accent.accent-right { right: 0; top: -12vh; bottom: -12vh; width: 36%; border-left: 1px solid rgba(255,255,255,.12); }
.deck-accent.accent-top { left: 0; right: 0; top: -10vh; height: 36%; border-bottom: 1px solid rgba(255,255,255,.12); }
.deck-accent.accent-bottom { left: 0; right: 0; bottom: -10vh; height: 36%; border-top: 1px solid rgba(255,255,255,.12); }
.deck-fade-in { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.25,.8,.25,1); }
.deck-fade-in.deck-visible { opacity: 1; transform: translateY(0); }
.deck-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.deck-meta-card { background: rgba(26,26,35,0.58); border: 2px solid rgba(var(--bs-primary-rgb, 127,127,255), 0.9); border-radius: 24px; padding: 44px 44px 56px; box-shadow: 0 10px 36px rgba(var(--bs-primary-rgb, 127,127,255), 0.18), 0 12px 34px rgba(0,0,0,0.38); backdrop-filter: blur(10px); }
.deck-meta-card .deck-section-title { margin-top: 6px; margin-bottom: 36px; }

/* Per-topic vibrant border/halo variants (CSP-safe classes) */
.deck-meta-card.variant-0 { border-color: #7F7FFF; box-shadow: 0 10px 36px rgba(127,127,255,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-1 { border-color: #4AC1FF; box-shadow: 0 10px 36px rgba(74,193,255,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-2 { border-color: #FF7FD1; box-shadow: 0 10px 36px rgba(255,127,209,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-3 { border-color: #7CFFB2; box-shadow: 0 10px 36px rgba(124,255,178,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-4 { border-color: #FFB86C; box-shadow: 0 10px 36px rgba(255,184,108,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-5 { border-color: #6EFACC; box-shadow: 0 10px 36px rgba(110,250,204,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-6 { border-color: #F7B3FF; box-shadow: 0 10px 36px rgba(247,179,255,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-meta-card.variant-7 { border-color: #FFD166; box-shadow: 0 10px 36px rgba(255,209,102,0.18), 0 12px 34px rgba(0,0,0,0.38); }
.deck-section-title { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, #EAEAEA, #7F7FFF); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 30px; }
.deck-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.deck-feature-card { background: #1A1A23; padding: 30px; border-radius: 20px; border: 1px solid #2a2a3a; }
.deck-feature-card p { font-size: 1.2rem; line-height: 1.75; color: #B8B8C8; margin: 8px 0 0 0; }

.deck-slideshow-nav { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 15px; background: rgba(26,26,35,.95); padding: 15px 25px; border-radius: 50px; border: 1px solid rgba(255,255,255,.2); z-index: 11; }
.deck-nav-btn { background: linear-gradient(135deg, #7F7FFF, #9B6BFF); border: 0; color: #fff; padding: 10px 20px; border-radius: 25px; font-weight: 600; }
.deck-slide-counter { color: #EAEAEA; font-weight: 600; display: flex; align-items: center; padding: 0 15px; }
.deck-keyboard-hint { position: absolute; top: 100px; right: 30px; background: rgba(26,26,35,.9); padding: 10px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); color: #B8B8C8; font-size: .9rem; z-index: 11; }

@media (max-width: 768px) {
  .deck-hero-content h1 { font-size: 2.5rem; }
  .deck-section-title { font-size: 2rem; }
  .deck-feature-grid { grid-template-columns: 1fr; }
}


