/* ============================================================
   Google Play button — Awn Care pages (shared)
   Black glass badge, 4-colour Play mark, glowing ring on hover.
   Usage: <a class="gplay" href="https://play.google.com/store/apps/details?id=com.awncare.app" …>
   Language: follows body.lang-ar / body.lang-en (.g-ar / .g-en spans).
   ============================================================ */
.gplay {
  --gp-ring: conic-gradient(from 210deg, #4285F4, #34A853, #FBBC04, #EA4335, #4285F4);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  direction: ltr;
  min-height: 60px; padding: 9px 22px 9px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d2430 0%, #070a0f 100%);
  color: #fff; text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .5),
    0 10px 28px rgba(7, 22, 38, .35),
    0 2px 6px rgba(7, 22, 38, .25);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* coloured ring */
.gplay::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px;
  background: var(--gp-ring); opacity: .55;
  transition: opacity .2s ease, filter .2s ease;
}
/* inner face (keeps the ring as a thin border) */
.gplay::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(180deg, #1d2430 0%, #070a0f 100%);
}
.gplay:hover, .gplay:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 16px 40px rgba(66, 133, 244, .30),
    0 4px 10px rgba(7, 22, 38, .3);
}
.gplay:hover::before, .gplay:focus-visible::before { opacity: 1; filter: blur(1px) saturate(1.2); }
.gplay:focus-visible { outline: 3px solid #2492FF; outline-offset: 4px; }
.gplay:active { transform: translateY(-1px); }

.gplay-logo { width: 30px; height: 33px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.gplay-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.gplay-txt small {
  font-size: 12px; font-weight: 500; opacity: .85; letter-spacing: 0;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', Tahoma, sans-serif;
}
.gplay-txt b {
  font-size: 21px; font-weight: 600; letter-spacing: -.01em;
  font-family: 'Product Sans', 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
.gplay .g-en { display: none; }
body.lang-en .gplay .g-en { display: inline; }
body.lang-en .gplay .g-ar { display: none; }

/* light/large variant for hero areas */
.gplay.gplay-lg { min-height: 66px; padding: 10px 26px 10px 18px; }
.gplay.gplay-lg .gplay-logo { width: 34px; height: 37px; }
.gplay.gplay-lg .gplay-txt b { font-size: 23px; }

/* small secondary APK link under the badge */
.gplay-alt {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 13px; font-weight: 500; color: inherit; opacity: .75; text-decoration: underline;
  text-underline-offset: 3px;
}
.gplay-alt:hover { opacity: 1; }

@media (max-width: 480px) {
  .gplay, .gplay.gplay-lg { min-height: 58px; padding: 8px 18px 8px 14px; }
  .gplay-txt b, .gplay.gplay-lg .gplay-txt b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gplay, .gplay::before { transition: none; }
  .gplay:hover { transform: none; }
}
