/* ============================================
   Smart App Banner — Custom (Android/Chrome)
   Hiện banner ở bottom page cho user mobile chưa cài app.
   iOS Safari: dùng native <meta> tag, không cần custom.
   ============================================ */
.smart-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-banner--visible {
  display: flex;
  transform: translateY(0);
}

.smart-banner__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.smart-banner__close:active {
  color: rgba(255,255,255,0.8);
}

.smart-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
}

.smart-banner__info {
  flex: 1;
  min-width: 0;
}

.smart-banner__title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.smart-banner__desc {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.3;
}

.smart-banner__rating {
  color: #f5a623;
  font-size: 10px;
  margin-top: 2px;
  letter-spacing: 1px;
}

.smart-banner__btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.smart-banner__btn:hover {
  opacity: 0.92;
}

.smart-banner__btn:active {
  transform: scale(0.96);
}

/* Offset body content khi banner visible */
body.smart-banner-active {
  padding-bottom: 62px;
}

/* Desktop: hide - desktop users không cần */
@media (min-width: 1024px) {
  .smart-banner {
    display: none !important;
  }
  body.smart-banner-active {
    padding-bottom: 0;
  }
}
