/* ---------- Browser Mockup ---------- */
.browser-mockup {
  position: relative;
  background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace;
}
.browser-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.browser-bar .dot.red    { background: #ff5f57; }
.browser-bar .dot.yellow { background: #febc2e; }
.browser-bar .dot.green  { background: #28c840; }
.browser-bar .url {
  margin-left: 16px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.05);
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-screen {
  height: 240px;
  position: relative;
}

/* Image-based screen with scroll-on-hover (for tall page screenshots) */
.browser-screen-scroll {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}
@media (min-width: 768px) {
  .browser-screen-scroll {
    height: 100%;
    min-height: 380px;
    max-height: 520px;
  }
}
.browser-screen-scroll img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 8s ease-in-out;
}
/* On hover, slide the image up to reveal the rest of the page */
.browser-mockup:hover .browser-screen-scroll img,
.browser-mockup:focus-within .browser-screen-scroll img {
  transform: translateY(calc(-100% + 380px));
}
@media (max-width: 767px) {
  .browser-mockup:hover .browser-screen-scroll img,
  .browser-mockup:focus-within .browser-screen-scroll img {
    transform: translateY(calc(-100% + 320px));
  }
}
/* Subtle fade-out gradient at the bottom hints there's more */
.browser-screen-scroll::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.85));
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s;
}
.browser-mockup:hover .browser-screen-scroll::after {
  opacity: 0;
}

/* --- per-mockup designs --- */
.browser-screen[data-mock="fops"] {
  background:
    radial-gradient(circle at 20% 30%, rgba(49,156,255,0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26,125,245,0.15), transparent 50%),
    linear-gradient(135deg, #0a0f1f 0%, #0d1525 100%);
}
.browser-screen[data-mock="fops"]::before {
  content: ""; position: absolute; inset: 16px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/100% 28px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/120px 100%;
  border-radius: 8px;
}
.browser-screen[data-mock="fops"]::after {
  content: "✈ FOPS · 170 users · 6 modules";
  position: absolute; top: 16px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #58baff;
  background: rgba(49,156,255,0.1);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(49,156,255,0.3);
}

.browser-screen[data-mock="elearning"] {
  background:
    radial-gradient(circle at 70% 30%, rgba(217,70,239,0.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(168,85,247,0.15), transparent 50%),
    linear-gradient(135deg, #1a0a1f 0%, #150d25 100%);
}
.browser-screen[data-mock="elearning"]::before {
  content: "";
  position: absolute; inset: 24px;
  background:
    linear-gradient(90deg, rgba(217,70,239,0.5) 0%, rgba(217,70,239,0.5) 65%, transparent 65%) top/100% 6px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.06) 90%, transparent 90%) 0 30px/100% 6px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.06) 75%, transparent 75%) 0 60px/100% 6px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.06) 85%, transparent 85%) 0 90px/100% 6px no-repeat;
  border-radius: 8px;
}
.browser-screen[data-mock="elearning"]::after {
  content: "📚 PDF → Moodle SCORM · NLP pipeline";
  position: absolute; top: 16px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #f0abfc;
  background: rgba(217,70,239,0.1);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(217,70,239,0.3);
}

.browser-screen[data-mock="viewer"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(6,182,212,0.3), transparent 60%),
    linear-gradient(135deg, #061a1f 0%, #0a2025 100%);
}
.browser-screen[data-mock="viewer"]::before {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 100px;
  background:
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(6,182,212,0.6) 90deg, transparent 180deg, rgba(6,182,212,0.6) 270deg, transparent 360deg);
  filter: blur(0.5px);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.7;
}
.browser-screen[data-mock="viewer"]::after {
  content: "▶ Three.js · GLB · hotspots";
  position: absolute; top: 16px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #67e8f9;
  background: rgba(6,182,212,0.1);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.3);
}

.browser-screen[data-mock="innobox"] {
  background:
    radial-gradient(circle at 20% 50%, rgba(245,158,11,0.2), transparent 50%),
    linear-gradient(135deg, #1a1408 0%, #1f1a0d 100%);
}
.browser-screen[data-mock="innobox"]::before {
  content: ""; position: absolute; inset: 32px 28px 16px;
  background:
    linear-gradient(180deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.15) 100%) left/30% 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.04) 100%) center/30% 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.04) 100%) right/30% 100% no-repeat;
  border-radius: 6px;
}
.browser-screen[data-mock="innobox"]::after {
  content: "💡 Ideas · Challenges · Bilingual";
  position: absolute; top: 16px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #fbbf24;
  background: rgba(245,158,11,0.1);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(245,158,11,0.3);
}

.browser-screen[data-mock="course"] {
  background:
    radial-gradient(circle at 30% 70%, rgba(16,185,129,0.2), transparent 50%),
    linear-gradient(135deg, #061f15 0%, #0a2519 100%);
}
.browser-screen[data-mock="course"]::before {
  content: ""; position: absolute; inset: 32px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.08) 60%, transparent 60%) 0 0/100% 8px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 90%, transparent 90%) 0 22px/100% 5px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 85%, transparent 85%) 0 36px/100% 5px no-repeat,
    linear-gradient(90deg, rgba(16,185,129,0.4) 0%, rgba(16,185,129,0.4) 25%, transparent 25%) 0 58px/100% 4px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 80%, transparent 80%) 0 72px/100% 5px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 70%, transparent 70%) 0 86px/100% 5px no-repeat;
  border-radius: 6px;
}
.browser-screen[data-mock="course"]::after {
  content: "🛩 9 modules · EN/DE · SOP callouts";
  position: absolute; top: 16px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #6ee7b7;
  background: rgba(16,185,129,0.1);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(16,185,129,0.3);
}

/* smooth scroll */
html { scroll-behavior: smooth; }

/* selection color */
::selection { background: rgba(49,156,255,0.4); color: white; }

/* admin */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Lightbox ---------- */
.browser-screen-scroll img { cursor: zoom-in; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  animation: lightbox-fade 0.2s ease-out;
}
#lightbox.hidden { display: none; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.lightbox-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.lightbox-actions button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.lightbox-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scroll-behavior: auto;
}
.lightbox-scroll::-webkit-scrollbar { width: 10px; }
.lightbox-scroll::-webkit-scrollbar-track { background: transparent; }
.lightbox-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}
.lightbox-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }

.lightbox-scroll img {
  max-width: min(1200px, 95%);
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  align-self: flex-start;
}

.lightbox-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
#lightboxProgressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #319cff, #d946ef);
  transition: width 0.1s linear;
}
