/* Site-level styles: real implementations of the Design Canvas components
   (Button, image-slot) plus responsive behaviour the canvas didn't need. */

/* ---- Button (replaces MirriDesignSystem.Button) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-btn, 9px);
  border: 1px solid transparent;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--duration-quick, .15s) var(--ease, cubic-bezier(.4,0,.2,1)),
              border-color var(--duration-quick, .15s) var(--ease, cubic-bezier(.4,0,.2,1)),
              color var(--duration-quick, .15s) var(--ease, cubic-bezier(.4,0,.2,1));
}
.btn-primary { background: #633EFA; color: #fff; }
.btn-primary:hover { background: #7E6FFF; color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.45); color: #fff; text-decoration: none; }
a:has(> .btn) { text-decoration: none; }

/* ---- image-slot placeholder (replaces image-slot.js) ---- */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  padding: 8px;
  box-sizing: border-box;
}
.img-slot.circle { border-radius: 50%; }
.img-slot.rounded { border-radius: var(--radius-card, 12px); }

/* ---- responsive nav ---- */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block; width: 16px; height: 2px; background: #fff;
  box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
}

@media (max-width: 900px) {
  .site-nav {
    display: none !important;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column !important;
    gap: 0 !important;
    background: #12101E;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 8px 0;
  }
  .site-nav.is-open { display: flex !important; }
  .site-nav a { padding: 13px min(64px,5vw); }
  .nav-toggle { display: flex; }
}

/* Wide product/feature grids should collapse cleanly on small screens */
@media (max-width: 560px) {
  [style*="minmax(420px"] { grid-template-columns: 1fr !important; }
}

.btn-ghost { background: transparent; color: #8F7DFF; border-color: transparent; }
.btn-ghost:hover { color: #B4A8FF; background: rgba(109,93,246,0.12); text-decoration: none; }

/* ---- Chip (replaces MirriDesignSystem.Chip) ---- */
.chip { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; line-height:1.6; }
.chip-warning { background:rgba(255,197,49,0.12); color:#FFC531; }
.chip-danger { background:rgba(255,77,94,0.14); color:#FF4D5E; }
.chip-success { background:rgba(62,224,124,0.10); color:#3EE07C; }
.chip-advisory { background:rgba(143,125,255,0.16); color:#8F7DFF; }

/* ---- Button sizes ---- */
.btn-sm { height:34px; padding:0 14px; font-size:12.5px; }
.btn-lg { height:52px; padding:0 26px; font-size:15px; }

/* ---- Navigator demo pills + Input (light theme) ---- */
.nv-pill { padding:11px 20px; border-radius:999px; border:1px solid rgba(0,0,0,0.10); background:#FFFFFF; color:#000; font-family:'Poppins',sans-serif; font-size:14px; font-weight:600; cursor:pointer; transition:border-color .2s, background .2s, color .2s; }
.nv-pill.is-on { border:1.5px solid #633EFA; background:rgba(99,62,250,0.10); color:#633EFA; }
.nv-pill.nv-walk { border:1px dashed rgba(0,0,0,0.25); color:rgba(0,0,0,0.62); }
.nv-pill.nv-walk.is-on { border:1.5px solid #FF9500; background:rgba(255,149,0,0.12); color:#B96D00; }
.input { height:44px; border-radius:9px; border:1px solid rgba(0,0,0,0.15); background:#fff; color:#000; padding:0 14px; font-family:'Poppins',sans-serif; font-size:14px; box-sizing:border-box; }
.input:focus { outline:none; border-color:#633EFA; box-shadow:0 0 0 3px rgba(99,62,250,0.15); }
