/* ──────────────────────────────────────────────────────────
   medıaFace · kreditní odznak "web by medıaFace"
   Self-hosted verze pro therockinvest.cz (bez Google Fonts).
   ──────────────────────────────────────────────────────── */

/* Space Grotesk — self-hosted (latin + latin-ext) */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/SpaceGrotesk-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/SpaceGrotesk-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/SpaceGrotesk-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/SpaceGrotesk-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* JetBrains Mono — self-hosted (pro 'ticket' variantu) */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.mfb,
.mfb * { box-sizing: border-box; }

.mfb {
  --mfb-coral: #FF5C2E;
  --mfb-ink:   #0E0E10;
  --mfb-paper: #ECEEF1;
  --mfb-slate: #5E6873;
  --mfb-slate-2: #7E8893;
  --mfb-line:  #C9CFD7;
  --mfb-line-d: rgba(236,238,241,0.2);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.mfb .mfb-wm { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.mfb .mfb-wm .f { color: var(--mfb-coral); }

/* ── EYE ── */
.mfb--eye .ey { width: 30px; height: 30px; border-radius: 50%; background: var(--mfb-coral); position: relative; flex: none; }
.mfb--eye .ey .p { position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--mfb-ink); }
.mfb--eye .ey .p { animation: mfb-eye 2.6s ease-in-out infinite; }
.mfb--eye.mfb--static .ey .p { animation: none; }
@keyframes mfb-eye { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity:.7; } }
.mfb--eye .mfb-wm { font-size: 14px; color: var(--mfb-ink); }
.mfb--eye:hover { transform: translateY(-1px); }

/* ── Pulzující tečka (sdílí ji ticket) ── */
.mfb .mfb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mfb-coral); flex: none; position: relative; }
.mfb .mfb-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--mfb-coral); animation: mfb-ping 2.2s ease-out infinite; }
@keyframes mfb-ping { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }

/* ── MONO TICKET ── */
.mfb--ticket { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mfb-slate); gap: 8px; }
.mfb--ticket .arr { color: var(--mfb-coral); }
.mfb--ticket b { color: var(--mfb-ink); font-weight: 700; letter-spacing: 0.1em; }
.mfb--ticket:hover b { color: var(--mfb-coral); }

/* NEGATIV — na tmavé pozadí (.mfb--neg) */
.mfb--neg.mfb--eye .mfb-wm { color: var(--mfb-paper); }
.mfb--neg.mfb--ticket { color: var(--mfb-slate-2); }
.mfb--neg.mfb--ticket b { color: var(--mfb-paper); }

@media (prefers-reduced-motion: reduce) {
  .mfb--eye .ey .p { animation: none; }
  .mfb .mfb-dot::after { animation: none; }
}
