/* C2 Tennis Academy — shared footer + app-store CTA styles. */

/* Sticky footer: keeps <footer> at viewport bottom on short pages */
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer {
  margin-top: auto;
}

/* 3D app-icon tile (used on hero section #get-app and in footer) */
.app-tile {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 22%;
  background: linear-gradient(180deg, #1f1f1f 0%, #050505 100%);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.55),
    0 12px 24px -8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
  will-change: transform;
}
.app-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 35%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.app-tile img {
  width: 65%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  position: relative;
  z-index: 1;
}
.app-tile:hover {
  transform: translateY(-6px) rotateX(4deg);
  box-shadow:
    0 40px 80px -18px rgba(0, 0, 0, 0.65),
    0 16px 30px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
}

/* Footer-specific tile: smaller, flat black, no glossy overlay */
.app-tile.app-tile--footer {
  width: 150px;
  height: 150px;
  flex: none;
  background: #000;
}
.app-tile.app-tile--footer::before { display: none; }

/* Store buttons */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 1rem;
  min-width: 230px;
  box-shadow:
    0 8px 16px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 24px -8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.app-store-btn .store-glyph { width: 28px; height: 28px; flex: none; }
.app-store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.app-store-btn .store-text .small {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.app-store-btn .store-text .big {
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  #get-app .app-tile { width: 160px; height: 160px; }
  #get-app .app-store-btn { min-width: 220px; }
  .app-tile.app-tile--footer { width: 130px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-tile, .app-store-btn { transition: none; }
  .app-tile:hover, .app-store-btn:hover { transform: none; }
}
