/* GameKinley PWA Plus — pwa-style.css v2.0.5 */

/* ── Progress bar ── */
#gkpwa-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: var(--gkpwa-theme, #163A45);
  transition: width .3s ease; z-index: 2147483647;
}

/* ── Shortcode install button (full width, icon + label) ── */
.pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: var(--gkpwa-theme, #163A45);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: opacity .2s, transform .15s;
}
.pwa-install-btn:hover { opacity: .88; transform: translateY(-1px); }
.pwa-install-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.pwa-btn-icon {
  width: 32px; height: 32px;
  border-radius: 7px; object-fit: cover; flex-shrink: 0;
}

/* ── FAB (circular, SVG only) ── */
#gkpwa-fab {
  position: fixed; left: 16px; bottom: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  background: var(--gkpwa-theme, #163A45);
  color: #fff; border: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  z-index: 2147483647; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#gkpwa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.32); }
#gkpwa-fab[aria-hidden="true"]  { display: none !important; }
#gkpwa-fab[aria-hidden="false"] { display: flex; }
#gkpwa-fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ── Offline / Online banners ── */
#gkpwa-offline-banner, #gkpwa-online-banner {
  position: fixed; bottom: 84px; left: 16px; right: 16px; max-width: 360px;
  background: var(--gkpwa-theme, #163A45); color: #fff;
  padding: 10px 14px; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 2147483646; display: none;
}

/* ── iOS Safari Install Toast Banner ── */
#gkpwa-ios-banner {
  position: fixed; bottom: 80px; left: 12px; right: 12px;
  z-index: 2147483647;
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
#gkpwa-ios-banner.gkpwa-ios-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#gkpwa-ios-banner.gkpwa-ios-hide { opacity: 0; transform: translateY(16px); pointer-events: none; }
.gkpwa-ios-inner {
  background: var(--gkpwa-theme, #163A45); color: #fff;
  border-radius: 16px; padding: 14px 14px 14px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  display: flex; align-items: flex-start; gap: 12px;
}
.gkpwa-ios-text { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.5; }
.gkpwa-ios-text strong { font-size: 14px; }
.gkpwa-ios-text small  { opacity: .7; font-size: 11px; }
.gkpwa-ios-close {
  background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 50%; font-size: 13px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
