/* =============================================================
   MediaKlas — Mobi mascotte (gedeeld)
   Pratende telefoon-mascotte met audio-bubble.
   ============================================================= */

.mobi {
  --mobi-size: 130px;
  width: var(--mobi-size);
  height: calc(var(--mobi-size) * 1.6);
  position: fixed; bottom: 24px; left: 24px;
  z-index: 9000;
  filter: drop-shadow(0 12px 36px rgba(254,44,85,0.45));
  cursor: pointer; user-select: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.mobi:hover { transform: translateY(-3px) scale(1.05); }
.mobi:active { transform: scale(0.95); }
.mobi.talking { animation: mobi-bounce 0.6s ease-in-out infinite; }
@keyframes mobi-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mobi-body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #fe2c55 0%, #b13eff 50%, #25f4ee 100%);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 4px rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.mobi-screen {
  position: absolute; top: 8%; left: 8%; right: 8%; bottom: 8%;
  background: linear-gradient(180deg, #1a1d2e 0%, #2c1f3e 100%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.mobi-notch {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 4%; background: #0b0d12;
  border-radius: 999px; z-index: 2;
}
.mobi-eyes { display: flex; gap: 10px; }
.mobi-eye { width: 11px; height: 14px; background: #fff; border-radius: 50%; position: relative; transition: transform .2s; }
.mobi-eye::after { content: ""; position: absolute; width: 5px; height: 5px; background: #1a1d2e; border-radius: 50%; top: 60%; left: 50%; transform: translate(-50%,-50%); }
.mobi.blinking .mobi-eye { animation: mobi-blink 0.2s; }
@keyframes mobi-blink { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.1); } }
.mobi-mouth { width: 18px; height: 9px; border-radius: 0 0 14px 14px; background: #25f4ee; transition: all .15s; }
.mobi.talking .mobi-mouth { animation: mobi-mouth-talk .25s steps(2) infinite; }
@keyframes mobi-mouth-talk { 0% { height: 5px; } 50% { height: 12px; } 100% { height: 5px; } }
.mobi-bubble {
  position: absolute; bottom: 0; left: 100%;
  transform: translate(8px, 0) scale(0); transform-origin: left bottom;
  background: #fff; color: #1a1d2e;
  padding: 16px 20px;
  /* tail in linker-onderhoek wijst naar Mobi */
  border-radius: 18px 18px 18px 4px;
  margin-left: 12px;
  min-width: 280px; max-width: 380px;
  font-size: 15px; line-height: 1.55; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.mobi.show-bubble .mobi-bubble { opacity: 1; transform: translate(8px, 0) scale(1); pointer-events: auto; }
/* === MINI MOBI VOORLEZER — rechtsboven, telefoon-mascotte met play-knop === */
.mobi-reader {
  position: fixed; top: 14px; right: 14px;
  z-index: 9100;
  width: 100px;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; user-select: none;
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
}
.mobi-reader:hover { transform: translateY(-3px) scale(1.04); }
.mobi-reader:active { transform: scale(0.97); }

/* Antenne bovenop */
.mobi-reader-antenna {
  width: 2px; height: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
  position: relative;
  margin-bottom: -1px;
  border-radius: 1px;
}
.mobi-reader-antenna::before {
  content: ""; position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd84d, #ff9a00);
  box-shadow: 0 0 12px rgba(255,154,0,0.7), inset 0 -1px 2px rgba(120,60,0,0.4);
}

/* Telefoon-body */
.mobi-reader-phone {
  width: 88px; height: 128px;
  background: linear-gradient(135deg, #1ec4d4 0%, #16a4b8 55%, #0f7d94 100%);
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.4),
    inset 0 -4px 0 rgba(0,0,0,0.18),
    inset 0 3px 4px rgba(255,255,255,0.35),
    inset 2px 0 4px rgba(255,255,255,0.12);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 11%;
  z-index: 1;
}
/* Notch streepje aan bovenkant */
.mobi-reader-phone::before {
  content: ""; position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 3px;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
}

/* Het schermpje — vult het grootste deel, play-knop hangt onderaan IN het scherm */
.mobi-reader-screen {
  width: 82%; height: 84%;
  background: linear-gradient(180deg, #1a1d2e 0%, #2c1f3e 100%);
  border-radius: 11px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 18%;
  gap: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.7);
  overflow: hidden;
}

/* Ogen */
.mobi-reader-eyes { display: flex; gap: 11px; }
.mobi-reader-eye {
  width: 11px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: relative;
}
.mobi-reader-eye::after {
  content: ""; position: absolute;
  width: 5px; height: 5px;
  background: #1a1d2e; border-radius: 50%;
  top: 58%; left: 50%; transform: translate(-50%,-50%);
}

/* Glimlach */
.mobi-reader-mouth {
  width: 20px; height: 8px;
  border: 2px solid #25f4ee;
  border-top: 0; border-left: 0; border-right: 0;
  border-radius: 0 0 20px 20px;
  margin-top: 4px;
}

/* Play-knop — IN het scherm, onderaan gecentreerd */
.mobi-reader-play {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #c466ff 0%, #8b32d9 50%, #5d18a6 100%);
  border-radius: 50%;
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 4px 12px rgba(140,40,220,0.55),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    inset 0 2px 2px rgba(255,255,255,0.35);
  transition: all .15s ease;
}
.mobi-reader:hover .mobi-reader-play { transform: translateX(-50%) scale(1.08); }
.mobi-reader-play::after {
  content: ""; width: 0; height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* Sparkle-stippen rond Mobi */
.mobi-reader::before,
.mobi-reader::after {
  content: ""; position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,206,255,0.6);
}
.mobi-reader::before { top: 30%; left: -8px; box-shadow: -6px 8px 0 rgba(255,206,255,0.4); }
.mobi-reader::after  { top: 50%; right: -8px; box-shadow: 6px 12px 0 rgba(255,206,255,0.4); }

/* Pratende state */
.mobi-reader.playing .mobi-reader-phone {
  animation: phone-talk 0.6s ease-in-out infinite;
}
.mobi-reader.playing .mobi-reader-mouth {
  animation: phone-mouth-talk 0.3s steps(2) infinite;
}
.mobi-reader.playing .mobi-reader-play {
  background: linear-gradient(135deg, #fe5fa5, #c41666);
  box-shadow:
    0 5px 14px rgba(254,44,85,0.55),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    inset 0 2px 2px rgba(255,255,255,0.35);
}
.mobi-reader.playing .mobi-reader-play { transform: translateX(-50%); }
.mobi-reader.playing:hover .mobi-reader-play { transform: translateX(-50%) scale(1.08); }
.mobi-reader.playing .mobi-reader-play::after {
  content: ""; width: 4px; height: 14px;
  background: #fff;
  border: 0;
  box-shadow: 7px 0 0 #fff;
  margin-left: -4px;
  border-radius: 1px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

@keyframes phone-talk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes phone-mouth-talk {
  0% { height: 3px; }
  50% { height: 8px; }
  100% { height: 3px; }
}

.mobi-bubble .mobi-replay {
  margin-top: 10px;
  background: linear-gradient(135deg, #fe2c55, #b13eff);
  color: #fff; border: 0;
  padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 12px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .mobi { --mobi-size: 80px; bottom: 12px; left: 12px; top: auto; }
  .mobi-reader { top: 10px; right: 10px; width: 84px; }
  .mobi-reader-phone { width: 74px; height: 108px; }
  .mobi-reader-play { width: 32px; height: 32px; }
  .mobi-reader-play::after { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
  .mobi-reader-eyes { gap: 9px; }
  .mobi-reader-eye { width: 9px; height: 12px; }
  .mobi-reader-mouth { width: 16px; height: 7px; }
  .mobi-bubble { min-width: 200px; max-width: 240px; font-size: 13px; padding: 12px 16px; margin-left: 8px; }
}
