/* =========================================================
   nav-10-bubbles-tables.css

   Extracted top-contiguous section from frontend/poker-nav.css.

   Ownership:
   - tables bubble
   - table preview rows/cards/pager
   - fullscreen exit button
   - send nav button
   - send bubble
   - receive QR/address bubble

   Production rule:
   This file must load AFTER nav-00-vars-base.css
   and immediately BEFORE poker-nav.css.
   It preserves original cascade order by owning the former next top section.
========================================================= */

/* =========================
   TABLES BUBBLE
========================= */

.tablesBubble{
  position:fixed;
  top:72px;
  left:16px;
  transform:none;
  z-index:9999999;
}

/* make hidden actually hide */
.tablesBubble[hidden]{
  display:none !important;
}

.tablesBubbleInner{
  position:relative;
  width:260px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(120,160,255,.22);
  background:rgba(10,14,24,.92);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
}

/* pointer */
.tablesBubbleInner:before{
  content:"";
  position:absolute;
  top:-7px;
  left:var(--bubbleArrowLeft, 50%);
  width:14px;
  height:14px;
  background:rgba(10,14,24,.92);
  transform:translateX(-50%) rotate(45deg);
  border-left:1px solid rgba(120,160,255,.22);
  border-top:1px solid rgba(120,160,255,.22);
}

.tablesBubbleInner{
  color:#e9eef2;
}

.tablesBubbleTitle{
  font-weight:900;
  margin-bottom:10px;
}

.tablesList{
  display:grid;
  gap:10px;
  overflow:visible;
}

.tablesList.oneCol{
  grid-template-columns:1fr;
}

.tablesList.twoCols{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  column-gap:12px;
  row-gap:10px;
}

.tablesEmpty{
  opacity:.75;
  font-size:.95rem;
}

.tableRow{
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:pointer;
}

.tableStake{
  padding-left:2px;
  font-size:1rem;
  font-weight:900;
  line-height:1.1;
  color:#f7fbff;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}

.tablePreview{
  position:relative;
  min-height:110px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border:none;
  box-shadow:none;
}

.tablePreview{
  position:relative;
  min-height:110px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border:none;
  box-shadow:none;
}

.tablePreviewInner{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(4,8,16,.38) 0%, rgba(4,8,16,.14) 35%, rgba(4,8,16,.58) 100%);
}

.tablePreviewCards{
  display:flex;
  gap:8px;
}

.tablePreviewCard{
  width:28px;
  height:40px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,.30);
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}

.tablePreviewCardBack{
  background:linear-gradient(180deg, rgba(17,28,53,.96), rgba(10,16,31,.96));
}

.tableId{
  font-size:.96rem;
  font-weight:900;
  color:#ffffff;
  text-shadow:0 1px 4px rgba(0,0,0,.55);
}

.tableMeta{
  font-size:.84rem;
  font-weight:800;
  color:rgba(235,242,255,.92);
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}

.tablesPager{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.tablesPagerBtn{
  min-width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(120,160,255,.22);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.tablesPagerBtn:hover:not(:disabled){
  background:rgba(255,255,255,.10);
}

.tablesPagerBtn:disabled{
  opacity:.35;
  cursor:default;
}

.tablesPagerInfo{
  min-width:52px;
  text-align:center;
  font-size:.9rem;
  font-weight:800;
  color:#e9eef2;
}

/* ======================================
   Stake-colored previews (My Tables)
====================================== */

.tablePreview{
  position:relative;
  min-height:110px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border:none;
  box-shadow:none;
}

.tablePreview{
  position:relative;
  min-height:110px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border:none;
  box-shadow:none;
}

.tablePreview{
  position:relative;
  min-height:110px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border:none;
  box-shadow:none;
}


/* centered text inside table preview */

.tableCenterText{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  font-weight:700;
  font-size:14px;
  color:white;
  text-shadow:0 2px 6px rgba(0,0,0,.7);
  pointer-events:none;
}


.tableRow{
  padding:4px 0;
  cursor:pointer;
}

.tablesList{
  gap:10px;
}


/* restore mini table art after tablePreview simplification */
.tableRow.tier100 .tablePreview{
  background-image:url("/assets/PokerTable.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

.tableRow.tier250 .tablePreview{
  background-image:url("/assets/PokerTable250.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

.tableRow.tier500 .tablePreview{
  background-image:url("/assets/PokerTable500.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

.fsExitBtn{
  display:none;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 12px;
  margin-right:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(18,28,43,.92);
  color:#dbe7ff;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
}

.fsExitBtn:hover{
  background:rgba(30,45,68,.96);
}

.fsExitBtn:active{
  transform:translateY(1px);
}

.sendNavBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 12px;
  margin-right:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(18,28,43,.92);
  color:#dbe7ff;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
}

.sendNavBtn:hover{
  background:rgba(30,45,68,.96);
}

.sendNavBtn:active{
  transform:translateY(1px);
}


/* navbar send bubble */
#sendBubble{
  width: 260px;
}

#sendBubble .tablesBubbleInner{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sendInput{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.sendInput::placeholder{
  color: rgba(255,255,255,.55);
}

.sendInput:focus{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.09);
}

.receiveQrWrap{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:4px 0 2px;
}

.receiveQrImg{
  width:200px;
  height:200px;
  display:block;
  border-radius:12px;
  background:#fff;
  padding:8px;
  box-sizing:border-box;
}

.receiveAddr{
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-family:ui-monospace,monospace;
  font-size:12px;
  word-break:break-all;
}
