/* App Install Banner Styles */
.app-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.app-install-banner-visible {
  transform: translateY(0);
}

.app-install-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
  position: relative;
}

.app-install-banner-close {
  position: absolute;
  top: -4px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.app-install-banner-close:hover,
.app-install-banner-close:active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.app-install-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin-top: 8px;
}

.app-install-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-install-banner-text {
  flex: 1;
  min-width: 0;
  color: #ffffff;
}

.app-install-banner-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  color: #ffffff;
}

.app-install-banner-subtitle {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.app-install-banner-button {
  background-color: #ffffff;
  color: #1976d2;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.1s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
}

.app-install-banner-button:hover {
  background-color: #f5f5f5;
}

.app-install-banner-button:active {
  transform: scale(0.96);
  background-color: #eeeeee;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .app-install-banner-content {
    padding: 10px 12px;
    gap: 8px;
  }

  .app-install-banner-icon {
    width: 40px;
    height: 40px;
  }

  .app-install-banner-title {
    font-size: 14px;
  }

  .app-install-banner-subtitle {
    font-size: 12px;
  }

  .app-install-banner-button {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* Landscape mode on small devices */
@media (max-height: 500px) and (orientation: landscape) {
  .app-install-banner-content {
    padding: 8px 12px;
  }

  .app-install-banner-icon {
    width: 36px;
    height: 36px;
  }

  .app-install-banner-title {
    font-size: 14px;
  }

  .app-install-banner-subtitle {
    display: none;
  }

  .app-install-banner-button {
    padding: 6px 18px;
    font-size: 13px;
  }
}

/* Ensure banner doesn't interfere with safe areas on modern phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .app-install-banner-content {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
