/* PB Idaho sync UI — share modal, join input, code badge */

.pb-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: none; border-radius: 10px;
  background: rgba(255,255,255,0.15); color: #fff; font-weight: 600;
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
  transition: background .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.pb-share-btn:hover  { background: rgba(255,255,255,0.25); }
.pb-share-btn:active { transform: scale(0.96); }
.pb-share-btn.dark  { background: #1a365d; color: #fff; }
.pb-share-btn.dark:hover { background: #2c5282; }
.pb-share-btn svg   { width: 16px; height: 16px; }

.pb-code-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.18); color: #fff;
  font-family: 'Barlow Condensed', 'Courier New', monospace;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 2px;
}

.pb-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: pb-fade .2s ease;
}
@keyframes pb-fade { from { opacity: 0 } to { opacity: 1 } }

.pb-modal {
  background: #fff; border-radius: 20px; max-width: 420px; width: 100%;
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pb-slide .25s ease; max-height: 92vh; overflow: auto;
}
@keyframes pb-slide { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }

.pb-modal h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
  letter-spacing: 2px; color: #1a365d; margin: 0 0 6px; text-align: center;
}
.pb-modal p.sub {
  text-align: center; color: #718096; font-size: 0.88rem; margin: 0 0 18px;
}

.pb-code-display {
  text-align: center; margin: 16px 0 20px;
  font-family: 'Barlow Condensed', 'Courier New', monospace;
  font-size: 3.2rem; letter-spacing: 10px; font-weight: 700;
  color: #1a365d; background: #f7fafc; border: 2px dashed #cbd5e0;
  border-radius: 14px; padding: 16px 10px;
  user-select: all; -webkit-user-select: all;
  cursor: pointer;
}
.pb-code-display:active { background: #edf2f7; }

.pb-qr-wrap {
  display: flex; justify-content: center; margin: 12px 0 16px;
  padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.pb-qr-wrap canvas, .pb-qr-wrap img { display: block; }

.pb-url-box {
  display: flex; gap: 8px; align-items: center;
  background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 14px;
}
.pb-url-box input {
  flex: 1; border: none; background: transparent; font-size: 0.82rem;
  color: #2d3748; font-family: monospace; outline: none;
}
.pb-url-box button {
  border: none; background: #1a365d; color: #fff; padding: 6px 12px;
  border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}

.pb-modal-actions {
  display: flex; gap: 10px; margin-top: 8px;
}
.pb-modal-actions button {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pb-modal-actions .pb-btn-primary { background: #1a365d; color: #fff; }
.pb-modal-actions .pb-btn-primary:hover { background: #2c5282; }
.pb-modal-actions .pb-btn-secondary { background: #edf2f7; color: #2d3748; }
.pb-modal-actions .pb-btn-secondary:hover { background: #e2e8f0; }

.pb-offline-note {
  background: #fffaf0; border: 1px solid #fbd38d; color: #7b341e;
  padding: 10px 12px; border-radius: 8px; font-size: 0.82rem;
  margin-bottom: 14px; line-height: 1.4;
}

/* Join input on index pages */
.pb-join-card {
  max-width: 420px; margin: 20px auto 0; padding: 20px;
  background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(26,54,93,0.08);
}
.pb-join-card h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem;
  letter-spacing: 2px; color: #1a365d; margin: 0 0 4px; text-align: center;
}
.pb-join-card p {
  text-align: center; color: #718096; font-size: 0.82rem; margin: 0 0 14px;
}
.pb-join-row { display: flex; gap: 8px; }
.pb-join-row input {
  flex: 1; padding: 12px 14px; border: 2px solid #cbd5e0; border-radius: 10px;
  font-family: 'Barlow Condensed', 'Courier New', monospace;
  font-size: 1.3rem; letter-spacing: 6px; text-transform: uppercase;
  text-align: center; color: #1a365d; outline: none;
  transition: border-color .2s;
}
.pb-join-row input:focus { border-color: #1a365d; }
.pb-join-row button {
  padding: 12px 20px; border: none; border-radius: 10px;
  background: #1a365d; color: #fff; font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: background .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  min-width: 72px;
}
.pb-join-row button:hover { background: #2c5282; }
.pb-join-row button:disabled { background: #a0aec0; cursor: not-allowed; }

.pb-join-status {
  margin-top: 10px; font-size: 0.82rem; text-align: center; min-height: 18px;
}
.pb-join-status.err { color: #c53030; }
.pb-join-status.ok  { color: #2f855a; }

.pb-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #1a365d; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; z-index: 10001;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25); animation: pb-toast-in .25s ease;
}
@keyframes pb-toast-in {
  from { transform: translate(-50%, 20px); opacity: 0 }
  to   { transform: translate(-50%, 0); opacity: 1 }
}

@media (max-width: 480px) {
  .pb-code-display { font-size: 2.4rem; letter-spacing: 6px; }
  .pb-join-row input { font-size: 1.1rem; letter-spacing: 4px; }
}
