/* Mavi Teras - Ismarlama / Hediye (gift.js). 11 Kasım 2026. Mavi tema (#305CDE), lobi + masa, telefon uyumlu. */
.gift-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:40px;padding:0 8px!important;border:0;border-radius:6px;background:#305CDE!important;color:#fff;cursor:pointer;line-height:1}
.gift-btn svg{width:22px;height:22px;display:block}
.gift-btn:hover{filter:brightness(1.1)}
.gift-btn.on{box-shadow:inset 0 0 0 2px #ffd34d}
.gift-btn[hidden]{display:none!important}
.tc-form .gift-btn{flex:0 0 40px}
#lobbyChatForm .gift-btn{margin-left:3px}
/* Lobi ve özel mesajda mavi zemin yok: yalnızca çay bardağı (kullanıcı isteği) */
#lobbyChatForm .gift-btn,#pmForm .gift-btn{background:transparent!important;box-shadow:none}
#lobbyChatForm .gift-btn:hover,#pmForm .gift-btn:hover{filter:none;background:rgba(48,92,222,.1)!important}
#lobbyChatForm .gift-btn.on,#pmForm .gift-btn.on{box-shadow:none;background:rgba(48,92,222,.15)!important}
#pmForm .gift-btn{flex:0 0 auto}
/* Zeminsizken bardak açık zeminde görünsün: ince koyu çizgi, gri tabak */
#lobbyChatForm .gift-btn svg,#pmForm .gift-btn svg{width:26px;height:26px}
#lobbyChatForm .gl-glass,#pmForm .gl-glass{fill:#f3f6fb;fill-opacity:1;stroke:#4a5260;stroke-width:1.1;stroke-linejoin:round}
#lobbyChatForm .gl-plate,#pmForm .gl-plate{fill:#4a5260}
.gift-picker select:disabled{opacity:1;color:#1d2433}
.gift-line.pm-gift{margin:4px 0}
.gift-line .pm-gt{margin-left:auto;font-weight:normal;font-size:11px;color:#667;white-space:nowrap}
.game-bottom #chatform .gift-btn{border-radius:4px}

.gift-picker{position:fixed;z-index:60;width:min(360px,calc(100vw - 8px));background:#fff;border:1px solid #9fb3d8;border-radius:10px;box-shadow:0 8px 28px rgba(0,20,60,.3);overflow:hidden;display:flex;flex-direction:column;font-size:14px;color:#1d2433}
.gift-picker.hidden{display:none}
.gf-head{display:flex;align-items:center;gap:8px;padding:7px 8px;background:#305CDE;color:#fff}
.gf-title{font-size:15px;white-space:nowrap}
.gf-to{display:flex;align-items:center;gap:5px;flex:1;min-width:0;font-size:13px}
.gf-to select{flex:1;min-width:0;max-width:100%;padding:4px 6px;border:0;border-radius:5px;font-size:14px;color:#1d2433;background:#fff}
.gf-x{border:0;background:rgba(255,255,255,.18);color:#fff;font-size:20px;line-height:1;width:30px;height:30px;border-radius:6px;cursor:pointer;flex:none}
.gf-tabs{display:flex;gap:4px;padding:6px 6px 0;background:#eaf0fb;overflow-x:auto;scrollbar-width:thin}
.gf-tabs button{flex:none;border:0;border-radius:6px 6px 0 0;padding:7px 11px;background:#d3def5;color:#24407e;font-weight:bold;cursor:pointer;font-size:13px}
.gf-tabs button.on{background:#fff;color:#305CDE}
.gf-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:6px;padding:8px;max-height:300px;overflow-y:auto;overscroll-behavior:contain}
.gf-item{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 3px;border:1px solid #d8e1f3;border-radius:8px;background:#f7f9fe;cursor:pointer;min-width:0;color:#1d2433}
.gf-item:hover,.gf-item:focus-visible{border-color:#305CDE;background:#eef3ff}
.gf-ic{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:28px;line-height:1}
.gf-ic img{max-width:100%;max-height:100%;object-fit:contain}
.gf-name{font-size:12px;font-weight:bold;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gf-pts{font-size:11px;color:#fff;background:#305CDE;border-radius:9px;padding:1px 7px}
.gf-empty{grid-column:1/-1;margin:8px;color:#667}

.gf-modal{position:fixed;inset:0;z-index:80;background:rgba(0,10,30,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.gf-modal.hidden{display:none}
.gf-mbox{width:min(460px,100%);background:#fff;border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,.35);overflow:hidden;color:#1d2433}
.gf-mhead{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:#305CDE;color:#fff;font-size:16px}
.gf-mx{border:0;background:rgba(255,255,255,.2);color:#fff;width:30px;height:30px;border-radius:6px;font-size:18px;cursor:pointer}
.gf-mbody{padding:14px 16px 6px;font-size:16px;font-weight:bold;line-height:1.4}
.gf-mbody p{margin:0 0 6px}
.gf-mbody.bad{color:#b3161f}
.gf-macts{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px 14px}
.gf-macts button{border:0;border-radius:6px;padding:9px 20px;font-size:16px;font-weight:bold;cursor:pointer;color:#fff}
.gf-no{background:#2b2f38}
.gf-yes{background:#1d8a3a}
.gf-yes:disabled{opacity:.6;cursor:wait}
.gf-macts button[hidden]{display:none}

/* Sohbet satırı (lobi, Batak masası, Okey/101/Pişti paneli) */
.gift-line{display:flex;align-items:center;gap:6px;margin:3px 0;padding:4px 8px;border-radius:8px;background:linear-gradient(90deg,#e7eeff,#f6f9ff);border-left:4px solid #305CDE;color:#1a3a8f;font-weight:bold;line-height:1.3}
.gift-line .gf-sm{width:24px;height:24px;font-size:20px;flex:none}
.gift-line .gf-text{min-width:0;overflow-wrap:anywhere}
.gift-line b.nick-click{cursor:pointer;color:#0b2a75}
.gift-line.gf-me{border-left-color:#e2a400;background:linear-gradient(90deg,#fff3cf,#fffaf0)}

/* Alana kısa büyük simge */
.gift-pop{position:fixed;left:50%;top:38%;z-index:90;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;animation:gfPop 2.6s ease forwards}
.gift-pop .gf-big{width:96px;height:96px;font-size:80px;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}
.gf-poptxt{background:#305CDE;color:#fff;font-weight:bold;padding:7px 14px;border-radius:18px;box-shadow:0 4px 14px rgba(0,0,0,.3);max-width:86vw;text-align:center}
@keyframes gfPop{0%{opacity:0;transform:translate(-50%,-30%) scale(.5)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}25%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-70%) scale(1)}}
@media (prefers-reduced-motion:reduce){.gift-pop{animation:none}}
@media (max-width:480px){
  .gf-body{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:5px;padding:6px}
  .gf-ic{width:32px;height:32px;font-size:25px}
  .gf-mbody{font-size:15px}
  .tc-form .gift-btn,.gift-btn{min-width:36px;padding:0 6px!important}
  /* Dar lobi sütununda yazı kutusuna yer kalsın: çay düğmesi varken yanındaki düğmeler daralır */
  #lobbyChatForm:has(.gift-btn:not([hidden]))>button{padding:0 5px!important;min-width:0}
  #lobbyChatForm:has(.gift-btn:not([hidden]))>.gift-btn{min-width:32px}
  #lobbyChatForm:has(.gift-btn:not([hidden]))>.gift-btn svg{width:20px;height:20px}
}
