/*
 * meeting-ready.css — "Your meeting's ready" card (meeting-ready.js).
 *
 * INTEGRATION: index.html <head>, after style.css:
 *     <link rel="stylesheet" href="/meeting-ready.css?v=1">
 *
 * Uses the #screen-call tokens from style.css when present (the card is
 * appended inside #screen-call), with literal fallbacks.
 * --mr-bottom is set from JS = distance from viewport bottom to the top of
 * .call-controls-wrap, so the card always clears the control bar.
 */

.mr-card {
  position: fixed;
  left: 16px;
  bottom: calc(var(--mr-bottom, 88px) + 12px);
  z-index: 25; /* above the stage, below the control bar's popovers (30) */
  width: 360px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 20px 20px 16px 24px;
  border-radius: 16px;
  background: var(--call-menu, #28292a);
  color: var(--call-text, #e3e3e3);
  box-shadow: 0 4px 8px 3px var(--shadow-a15), 0 1px 3px var(--shadow-a30);
  font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  pointer-events: none;
}
.mr-card.mr-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mr-card *,
.mr-card *::before,
.mr-card *::after { box-sizing: border-box; }

.mr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -8px 16px 0;
}
.mr-title {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--call-text, #e3e3e3);
}

.mr-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--call-text, #e3e3e3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.mr-icon-btn:hover { background: var(--fg-e3-a08); }
.mr-icon-btn:active { background: var(--fg-e3-a12); }
.mr-icon-btn:focus-visible,
.mr-add:focus-visible {
  outline: 2px solid var(--call-focus, #ff7f3d);
  outline-offset: 2px;
}

.mr-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--call-accent, #FF6B1F);
  color: var(--call-accent-ink, #1a1a1a);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.mr-add:hover {
  background: var(--call-accent-hover, #ff7f3d);
  box-shadow: 0 1px 3px 1px var(--shadow-a15), 0 1px 2px var(--shadow-a30);
}
.mr-add:active { background: var(--call-accent-pressed, #e85a10); }

.mr-text {
  margin: 16px 0 12px;
  color: var(--call-text-muted, #a8abaf);
}

.mr-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 4px 0 16px;
  border-radius: 8px;
  background: var(--call-panel, #1e1f20);
}
.mr-link-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--call-text, #e3e3e3);
  font-size: 15px;
  letter-spacing: 0.1px;
  user-select: all;
  -webkit-user-select: all;
}
.mr-copy.mr-copied { color: var(--success-text); }

.mr-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  color: var(--call-text-muted, #a8abaf);
  font-size: 13px;
  line-height: 18px;
}
.mr-info-icon {
  flex: 0 0 20px;
  display: inline-flex;
  color: var(--call-text-muted, #a8abaf);
}

.mr-status {
  height: 0;
  overflow: hidden;
  color: var(--success-text);
  font-size: 13px;
  line-height: 18px;
  transition: height 150ms ease-out;
}
.mr-status.mr-status-on { height: 26px; padding-top: 8px; }

.mr-foot {
  margin: 12px 0 0;
  color: var(--call-text-muted, #a8abaf);
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Phone: full-width bottom sheet docked just above the control bar. */
@media (max-width: 600px) {
  .mr-card {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: calc(var(--mr-bottom, 88px) + 8px);
    padding: 16px 16px 14px 20px;
    border-radius: 16px;
    max-height: calc(100vh - var(--mr-bottom, 88px) - 72px);
    overflow-y: auto;
  }
  .mr-head { margin-bottom: 12px; }
  .mr-text { margin: 12px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-card { transition: opacity 120ms linear; transform: none; }
}
